Download a customer's price sheet
const url = 'https://example.com/customers/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/prices.pdf?prices=all';const options = { method: 'GET', headers: {cookie: '__Host-bottle.session_token=<__Host-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/customers/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/prices.pdf?prices=all' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Every product the business sells to this customer (not archived, and not one kept for the other kind of customer) at what they pay today: their agreed rate, else their price list, else the trade price for a trade customer, else the list price, with any quantity prices, and the cylinder deposits they pay. Before VAT and with VAT when the business is registered. In the business’s own name, address and logo: the same document the Send rates email attaches. A plain link may carry tenantId in the query. Downloaded as a file, or opened in the browser with view=true.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Query Parameters
Section titled “Query Parameters”Open it in the browser (inline) rather than download it.
Open it in the browser (inline) rather than download it.
Which products to list: everything sold to them (all, the default), or only those whose price was agreed with them.
Which products to list: everything sold to them (all, the default), or only those whose price was agreed with them.
Responses
Section titled “Responses”The price sheet
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"}Not found
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}