Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guideDeveloper guideAdmin guide
Company siteHelp center
English
  • Русский
  • English
v74
  • v74
  • v73
  • v72
Login
  • User API documentation
  • API interaction
  • Matching
  • Profiles
  • Databases
  • Resources
  • Segments
  • Suppression lists
  • Templates and fragments
  • Campaigns
  • Mailings
  • Automation scenarios
  • Loyalty Programs
  • Promo codes
  • Goals
  • Application push notifications
  • Market
    • Market objects
    • Orders
      • Import order and item statuses
      • Get orders list
      • Delete order
      • Get order status
      • Update order line status
    • Products and SKU
  • Analytic reports
  • SendersDev
  • External datatables queries
  • Objects
  • Miscellaneous
  • Importing the API collection in Postman
  • List of API endpoints
  • SDK
  • Market
  • Orders
  • Get orders list
Documentation for version v74

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​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"from_id": "",
"limit": 1,
"endpoint": "qwerty"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<from_id></from_id>
<limit>1</limit>
<endpoint>qwerty</endpoint>
</xml>

Response example​

  • JSON
  • XML
{
"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"

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

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
Last updated on Feb 28, 2024
Previous
Import order and item statuses
Next
Delete order
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.