Get every price a product has
const url = 'https://example.com/products/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/prices';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/products/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/prices \ --cookie bottle.session_token=<bottle.session_token>The Consumer price, the Trade price (null: trade pays the Consumer price), then one row per price list that is not archived, by name, with the list’s price (null: members pay the Trade price). Each row has its quantity breaks: from so many in one order, every one of them is that price. Who pays what: a customer’s own agreed price, then their price list’s price, then the Trade price for trade customers or the Consumer price for everyone else. Quantity breaks go with whichever price applies. Deposits, rent and delivery have no price table (422).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Responses
Section titled “Responses”The price table
object
UUID v7
object
From this many of the product in one order, every one of them is this unit price (“10 or more: £30.00 each”).
object
object
From this many of the product in one order, every one of them is this unit price (“10 or more: £30.00 each”).
object
object
UUID v7
From this many of the product in one order, every one of them is this unit price (“10 or more: £30.00 each”).
object
Example
{ "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "priceLists": [ { "rateSetId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ]}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"}No such product
object
Example
{ "error": "not_found", "message": "Customer not found"}A deposit, rent or delivery, which has no price table
object
Example
{ "error": "not_found", "message": "Customer not found"}