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
Parameter | Type | Example | Required | Descrption |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format (by default – json) |
order_external_id | string | "order_1" | Yes | Order external ID |
order_line_external_id | string | "line_DBSrmlVYD" | Yes | Order item external ID |
status_external_id | string |
| Yes | Order 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
Parameter | Type | Descrption |
---|---|---|
error | int | Error code |
error_text | string | Error text |
data | object | Updated order item data |