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
  • Update order line status
Documentation for version v74

Update order line status

Description​

The request updates the status of an order line in the Market.

Request URL​

Method: POST

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

Request parameters​

ParameterTypeExampleRequiredDescrption
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
formatstring"json"NoResponse data format
(by default – json)
order_external_idstring"order_1"YesOrder external ID
order_line_external_idstring"line_DBSrmlVYD"YesOrder item external ID
status_external_idstring
  • delivering
  • processing
  • new
  • refunded
  • canceled
  • delivered
  • <custom_status_id>
YesOrder item status ID

Request example​

  • JSON
  • XML
{
"token": "abcdefghijklmnqrstuvwxyz",
"format":"json",
"order_external_id":"order_1",
"order_line_external_id":"line_DBSrmlVYD",
"status_external_id":"delivered"
}
<xml>
<token>abcdefghijklmnqrstuvwxyz</token>
<format>json</format>
<order_external_id>order_1</order_external_id>
<order_line_external_id>line_DBSrmlVYD</order_line_external_id>
<status_external_id>delivered</status_external_id>
</xml>

Response example​

  • JSON
  • XML
{
"data": {
"order_external_id": "order_1",
"order_line_external_id": "line_DBSrmlVYD",
"status_external_id": "delivered"
},
"error": 0,
"error_text": "Successful operation"
}
<xml>
<data>
<order_external_id>order_1</order_external_id>
<order_line_external_id>line_DBSrmlVYD</order_line_external_id>
<status_external_id>delivered</status_external_id>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>

Response parameters​

ParameterTypeDescrption
errorintError code
error_textstringError text
dataobjectUpdated order item data
Last updated on Feb 28, 2024
Previous
Get order status
Next
Products and SKU
  • Description
  • Request URL
  • Request parameters
  • Request example
  • Response example
  • Response parameters
© 2015 - 2025 Altcraft, LLC. All rights reserved.