Skip to main content

Delete order

Description

Delete an order in the market, including from the profile history (the request completely deletes the order data from the database).

In the request, you need to use a token that is assigned a role with the appropriate access rules.

URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint1Not if external_id is passedInternal order ID
external_idstring"A598t32D"Not if id is passedExternal order ID

Request example

{           
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1
}

{
"token": "abcdefghijklmnqrstuvwxyz",
"external_id": "A598t32D"
}

Response example

{
"error": 0,
"error_text": ""
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text