Get historical orders

Get all historical orders. Multiple filters are available.

Request
Security:
query Parameters
fromDate
string

The start date of when the orders were created. Format is YYYY-MM-DD.

toDate
string

The end date of when the orders were created. Format is YYYY-MM-DD.

pageNumber
integer <int32> >= 1

The requested page number. By default the page number is 1

Example: pageNumber=1
pageSize
integer <int32> [ 1 .. 100 ]

The number of orders to be returned. By default the number is 10

Example: pageSize=100
orderStatus
string

To filter your Orders by a given order status

Available values: "AUTHFAILED", "DIDNOTSHIP", "CANCELED", "COMPLETED", "RETURNED"

Example: orderStatus=CANCELED
productId
string

Unique StockX product ID

variantId
string

Unique StockX variant ID

Responses
200

Ok

400

Bad Request

401

Unauthorized

500

Internal Server Error

get/selling/orders/history
Request samples
curl -i -X GET \
  'https://api.stockx.com/v2/selling/orders/history?fromDate=string&toDate=string&pageNumber=1&pageSize=1&orderStatus=string&productId=string&variantId=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'
Response samples
application/json
{
  • "count": 266,
  • "pageSize": 10,
  • "pageNumber": 1,
  • "hasNextPage": true,
  • "orders": [
    ]
}