Search the business
const url = 'https://example.com/search?q=example&limit=5';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/search?q=example&limit=5' \ --cookie bottle.session_token=<bottle.session_token>Customers, delivery addresses, orders, invoices, products, people, vehicles and bases, by what a person remembers them by: a name, part of a name, a postcode, a phone number, an email, an invoice number (42 or INV-BTL00042) or a tracking reference. Every word must match somewhere, and near misses of four letters or more still match. Results are best first across every kind, each with the app page that shows it. Kinds the caller has no scope to read are left out: customers and addresses need customers:read, orders orders:read, invoices invoices:read, products products:read, people members:read, vehicles and bases rounds:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”What to look for: a name, postcode, phone, email, or an invoice or tracking number.
What to look for: a name, postcode, phone, email, or an invoice or tracking number.
Only these kinds, comma separated: customer, address, order, invoice, product, person, vehicle, base. Every kind you may read, if left out.
Only these kinds, comma separated: customer, address, order, invoice, product, person, vehicle, base. Every kind you may read, if left out.
Most results of each kind. 5 unless said.
Most results of each kind. 5 unless said.
Responses
Section titled “Responses”Best first
object
object
Example
{ "items": [ { "kind": "customer" } ]}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a member, or without the permission this needs
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}