Skip to main content

Get Orders

Allows you to retrieve an order list with pagination support. You can use it to check the latest status of specific orders.

GET /v2/orders​

Request​

HTTP Headers​

To use this endpoint, you must include the following headers for authentication:

HeaderTypeRequiredDescription
x-api-keyStringYesAPI key assigned to your account for service access.
AuthorizationStringYesBearer token to authenticate the API request.

Query Parameters​

Use the following parameters in the query string to filter orders based on your requirements:

ParameterTypeRequiredDefault ValueDescription
limitIntegerNo10The number of items to be shown per page.
pageIntegerNo1Page number to retrieve.
transactionIdStringNoNoneOptional filter by transaction id for order lookups.
clientOrderNumberStringNoNoneOptional filter by clientOrderNumber for order lookups.

Example Request​

GET /v2/orders?limit=10&page=1&transactionId=1234&clientOrderNumber=1234 HTTP/1.1
Host: api.example.com
Content-Type: application/json
x-api-key: <API_KEY>
Authorization: Bearer <BEARER_ACCESS_TOKEN>

Response​

HTTP Status Codes​

Status CodeDescription
200OK - The list of orders is returned successfully in the response body.
400Bad Request - The request was invalid, often due to incorrect query parameters.
500Internal Server Error - An error occurred on the server side.

Schema​

PropertyTypeNullableDescription
requestIdStringNoUnique identifier assigned to each request for tracking purposes.
dataPaginationResponseNoPagination response.

PaginationResponse​

PropertyTypeNullableDescription
totalIntegerNoTotal number of items available.
pageIntegerNoCurrent page number.
pageSizeIntegerNoNumber of items per page.
totalPageIntegerNoTotal number of pages available.
itemsOrderResponse[]NoList of orders on the current page.

OrderResponse​

PropertyTypeNullableDescription
transactionIdStringNoThe transaction identifier.
clientOrderNumberStringNoThe client's order number.
grandTotalMoneyResponseNoThe grand total amount and currency.
createdAtStringNoTimestamp of when the order was created.
statusOrderStatusNoThe status of the order.
productsProductResponse[]NoList of products in the order.

ProductResponse​

PropertyTypeNullableDescription
skuStringNoThe SKU of the product.
quantityIntegerNoThe quantity of the product.
unitPriceMoneyResponseNoThe unit price of the product.
totalPriceMoneyResponseNoThe total price of the product.
statusOrderStatusNoThe status of the product.

MoneyResponse​

PropertyTypeNullableDescription
amountStringNoThe monetary amount.
currencyStringNoThe currency of amount.

OrderStatus​

ValueTypeDescription
PROCESSINGStringThe order is currently being processed.
COMPLETEDStringThe order has been completed successfully.
CANCELLEDStringThe order has been cancelled and will not be processed.

Example 200 OK Response​

{
"requestId": "c4c7b997-79a5-4bde-9f17-47ad7eac9ed4",
"data": {
"total": 1,
"page": 1,
"pageSize": 10,
"totalPage": 1,
"items": [
{
"transactionId": "1234",
"ezOrderNumber": "1234",
"clientOrderNumber": "1234",
"grandTotal": {
"amount": "10.00",
"currency": "USD"
},
"createdAt": "2023-10-17T09:00:00Z",
"status": "COMPLETED",
"products": [
{
"sku": "8PX-UF-Y5U",
"quantity": 1,
"unitPrice": {
"amount": "10.00",
"currency": "USD"
},
"totalPrice": {
"amount": "10.00",
"currency": "USD"
},
"status": "COMPLETED"
}
]
}
]
}
}