List which customers hold which cylinders
const url = 'https://example.com/stock/customer-holdings?show=all&productId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f&sort=name&dir=asc&limit=20&offset=0';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/stock/customer-holdings?show=all&productId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f&sort=name&dir=asc&limit=20&offset=0' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Every customer who is not archived, with the cylinders they hold per size and whether their opening balance has been confirmed. Until it has, the count covers only what Bottle recorded and may leave out cylinders held before Bottle.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”A name, typed roughly
A name, typed roughly
Everyone, those holding cylinders, or balances not yet checked
Everyone, those holding cylinders, or balances not yet checked
Only customers holding this cylinder
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fOnly customers holding this cylinder
Order by name or by cylinders held. Left out: the closest name when searching, otherwise the most cylinders first
Order by name or by cylinders held. Left out: the closest name when searching, otherwise the most cylinders first
Which way to order them
Which way to order them
How many customers to return
How many customers to return
How many customers to skip
How many customers to skip
Responses
Section titled “Responses”One page of customers, with figures for the whole business
object
object
UUID v7
object
UUID v7
UUID v7
object
Example
{ "items": [ { "customerId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "holdings": [ { "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "gasTypeId": "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"}Validation failed
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}