List the ids of matching orders
const url = 'https://example.com/orders/ids?status=draft&excludeCancelled=true&excludeRefunded=true&customerId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f&unassigned=true&deliveryStage=waiting&fulfilment=delivery&shopId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f&paid=yes&late=true&sort=placed&order=asc';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/orders/ids?status=draft&excludeCancelled=true&excludeRefunded=true&customerId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f&unassigned=true&deliveryStage=waiting&fulfilment=delivery&shopId=019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f&paid=yes&late=true&sort=placed&order=asc' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token>Every match for the same filters as GET /orders, in the same order, up to 500, with the full count: for selecting all of them across pages.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Customer name, order reference, invoice number or product name.
Customer name, order reference, invoice number or product name.
Exclude cancelled orders before counting and pagination.
Exclude cancelled orders before counting and pagination.
Exclude orders with a full or partial shop refund or a recorded Bottle refund.
Exclude orders with a full or partial shop refund or a recorded Bottle refund.
UUID v7
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Only these orders: up to 200 order ids, separated by commas. Ids from another business are ignored.
Only these orders: up to 200 order ids, separated by commas. Ids from another business are ignored.
Only the orders on these invoices: up to 200 invoice ids, separated by commas. Covers both an invoice raised for one order and a weekly, monthly or quarterly invoice that billed several.
Only the orders on these invoices: up to 200 invoice ids, separated by commas. Covers both an invoice raised for one order and a weekly, monthly or quarterly invoice that billed several.
The day they are wanted.
The day they are wanted.
Only orders that are not currently on a round.
Only orders that are not currently on a round.
Only open deliveries waiting to be planned, assigned to a planned round, or currently out.
Only open deliveries waiting to be planned, assigned to a planned round, or currently out.
Placed on or after this day.
Placed on or after this day.
Placed on or before this day.
Placed on or before this day.
Delivery: goes on a round. collection: the customer picks it up from the yard; never planned onto a van, and comes off stock when marked collected.
Delivery: goes on a round. collection: the customer picks it up from the yard; never planned onto a van, and comes off stock when marked collected.
Only orders that came from this connected shop.
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fOnly orders that came from this connected shop.
Whether they have been paid for. ‘no’ is orders that still owe money: not on account, not cancelled, not marked paid.
Whether they have been paid for. ‘no’ is orders that still owe money: not on account, not cancelled, not marked paid.
Only placed orders wanted on a day already gone.
Only placed orders wanted on a day already gone.
Only orders delivered or collected on this day.
Only orders delivered or collected on this day.
What to put the list in order by: placed (when it was taken, the default), wanted (the day wanted) or customer (the customer name).
What to put the list in order by: placed (when it was taken, the default), wanted (the day wanted) or customer (the customer name).
Which way. Placed is newest first unless asc; wanted is soonest first and customer A to Z unless desc.
Which way. Placed is newest first unless asc; wanted is soonest first and customer A to Z unless desc.
Responses
Section titled “Responses”Ids
object
Example
{ "ids": [ "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, or a line names something not sold
object
object
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}