Skip to main content

Get orders list

Description

Retrieves a list of all orders in an account or orders for a specific touchpoint.

Request URL

Method: POST

https://example.com/api/v1.1/market/orders/list

Request parameters

ParameterTypeExampleRequiredDescrption
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
from_idstring"2oDantiaiPtY-b7b41276360564d4"NoThe pointer to the next page. It is taken from the previous request, or passed empty for the first one.
limitint3NoOrder list limit
endpointstring"website"NoTouchpoint. Passed if it is necessary to get a list of orders for a specific touchpoint.

Request example

{
"token": "abcdefghijklmnqrstuvwxyz",
"from_id": "",
"limit": 1,
"endpoint": "qwerty"
}

Response example

{
"error": 0,
"error_text": "",
"next_from_id": "2p2FXnb7zzoh-26167c2af5162ca4",
"result": [
{
"profile": {
"profile_id": "61addfc13f62fc8440i8b013",
"xxh": "636gcaf5614536asf"
},
"external_id": "12345678-0001",
"endpoint": "website",
"status": "new",
"delivery_cost": "50000",
"total_price": "4549000",
"currency": "RUB",
"custom_fields": {},
"lines": [
{
"external_id": "line_DwWuNkAYV",
"product": "xiaomi_11T",
"base_price_per_item": "4499000",
"min_price_per_item": "0",
"final_price_per_item": "4499000",
"count": 1,
"custom_fields": {},
"currency": "RUB"
}
],
"create_time": "2021-12-27T09:38:39Z",
"update_time": "2021-12-27T09:38:39Z"

}
]
}

Response parameters

ParameterTypeDescrption
errorintError code
error_textstringError text
next_from_idstringThe pointer must be passed in the next request to get another piece of data until the output of the result contains 0 lines of history.
resultarrayArray of received data on orders