Get orders by query
Retrieves orders based on query model passed in the request body.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
Body
Query object to retrieve matched orders
JSON to do filtration of records. to filter records json structure should be similar to target entity structure i.e order, shipment etc
Numbers of records to be returned
Number of records to skipped
Item property on which data needed to be sorted on
Direction of sorting- ascending or descending
asc
, desc
Response
Response object based on query model
Total number of order records
Number of records returned on a single page
Number of records skipped before selecting matched records
Was this page helpful?