Get prices for the signed-in buyer
const url = 'https://example.com/storefront/sites/northgate.shop.getbottle.app/prices?customerId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f';const options = {method: 'GET'};
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/storefront/sites/northgate.shop.getbottle.app/prices?customerId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f'Deliberately without a staff session: a signed-in shopper. The shop’s published products priced for the chosen customer (customerId, else the first they may order for), trade or household, as an order for them is priced: their own price rules, their agreed rate, their rate set’s rules and prices, trade or consumer rules, then the trade or list price. volume gives the bands where a rule makes more than one price. priceDisplay is ex for a trade customer of a VAT-registered business, and pricePence is in that basis; both readings are given. Never cached.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
northgate.shop.getbottle.appQuery Parameters
Section titled “Query Parameters”UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Responses
Section titled “Responses”Prices
object
UUID v7
object
UUID v7
object
object
Example
{ "priceDisplay": "inc", "customerId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "prices": [ { "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "rentPeriod": "daily", "volume": { "counting": "stepped" } } ]}Refused: the message says why
object
Example
{ "error": "not_found", "message": "Customer not found"}Not signed in
object
Example
{ "error": "not_found", "message": "Customer not found"}Not from the shop itself, or the email is not confirmed yet
object
Example
{ "error": "not_found", "message": "Customer not found"}Not a shop. No body.
A real shop not selling now (shop_closed)
object
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}Too many tries
object
Example
{ "error": "not_found", "message": "Customer not found"}