Loqate Find containers are full postcodes and BFPO numbers

The Loqate-compatible Find now drills into a full postcode or a BFPO number only. A partial postcode or free text as Container is refused free; search it with Text. Also: HEAD requests no longer reach the address routes.

Summary

On the Loqate-compatible GET /Capture/Interactive/Find/v1.1/json3.ws, Container must now be a full postcode (SW1A 2AA, any spacing or case), a BFPO number (BFPO16), or the Id of a continuation item we returned. A partial postcode (M20 2), an outward code (M20) or free text is refused before any search, with 400 invalid_container (error item 1002 when Loqate error items are on), and isn't charged. Search those with Text, which works as before.

Why: Royal Mail's PAF licence counts records returned. A free list of up to 100 one-line entries is browsing, and each further 100 is a Transaction. A full postcode never holds more than 100 standard PAF addresses, so a full-postcode drill-down stays inside free browsing. A partial-postcode container could list a whole postcode sector free. This is a licence requirement, so it applies straight away.

Changes that may affect your integration

RequestBeforeNow
Find?Container=M20 2 (partial postcode)Up to 10,000 one-line entries, free, paged by continuation400 invalid_container, free; use Text=M20 2
Find?Container=M20 (outward code)422 postcode_too_broad, free400 invalid_container, free
Find?Container=SWIA OAA (letter for a digit)Corrected when the text as typed found nothingCorrected to SW1A 0AA up front
Find?Container=Old Inn (text that reads as a postcode)Searched as textRead as the postcode O1D 1NN; returns 200 with no items. Search names with Text, which still tries the name first
A continuation Id we issued earlier for a partial postcodeThe next page400 invalid_container; start again with Text
HEAD on an address route (/v1/postcodes, /v1/addresses, /v1/autocomplete, /find, /get, /autocomplete, Loqate Find and Retrieve)Answered like a GET with no body; on a charged route that could spend a credit and return nothing404, never charged

Unchanged

  • A full-postcode or BFPO Container, and continuations within it, return exactly what they did. Both are free.
  • Text searches, including partial postcodes, return the same suggestions.
  • Retrieve is unchanged: one credit when it returns an address.
  • HEAD still answers on /health, /plan and the docs, for uptime monitors.