Filtering Orders

Filter response data from the /orders endpoint based on Order Status

Setup

You may consider filtering your Response Data to only display a certain Order Type based on the Status.
This can be done by either:

  • Applying additional parameters to your /orders GET request:
Key (Required)Value (Example Values)
page1
pageSize1000
statusOrderSubmitted
  • Copying the cURL request below:
curl --location --request GET 'https://lsapi-supplier-orders.lightspeedapp.com/orders?page=1&pageSize=1000&status=OrderSubmitted' \
--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Cookie: __cfduid=db3f55b26010d1c667daa923d8b7cb4d51570802749' \
--data-raw ''

To view a full list of possible Statuses to filter by, navigate here:
Ordering workflow


What’s Next