Skip to main content

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

{
"token": "abcdefghijklmnqrstuvwxyz",
"format":"json",
"order_external_id":"order_1",
"order_line_external_id":"line_DBSrmlVYD",
"status_external_id":"delivered"
}

Response example

{
"data": {
"order_external_id": "order_1",
"order_line_external_id": "line_DBSrmlVYD",
"status_external_id": "delivered"
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescrption
errorintError code
error_textstringError text
dataobjectUpdated order item data