<- Orders API

Orders API

All versions ->

Batch retrieve orders

POST

 /v2/orders/batch-retrieve

Retrieves a set of orders by their IDs.

If a given order ID does not exist, the ID is ignored instead of generating an error.

Permissions:ORDERS_READ
Try in API Explorer
Link to section

Request body

Example code

Link to section

location_id

string

The ID of the location for these orders. This field is optional: omit it to retrieve orders within the scope of the current authorization's merchant ID.

Link to section

order_ids

string [ ]

Required

The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request.

Link to section

Response fields

Link to section

orders

The requested orders. This will omit any requested orders that do not exist.

Link to section

errors

Any errors that occurred during the request.