Suggest postcodes
GET
/geocode/postcodes
const url = 'https://example.com/geocode/postcodes?q=example';const options = { method: 'GET', headers: {cookie: 'bottle.session_token=<bottle.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/geocode/postcodes?q=example' \ --cookie bottle.session_token=<bottle.session_token>Postcodes that begin the way somebody has typed so far, up to eight, for a form to offer as they type. Empty for fewer than two characters, and empty when the postcode service is off or down.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”q
required
string
Responses
Section titled “Responses”Suggestions
Media typeapplication/json
object
items
required
Array<string>
Examplegenerated
{ "items": [ "example" ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}