Skip to main content

Delete order

Description

Delete an order in the market, including from the profile history.

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
idint1YesInternal order ID (not external_id)
group_idint1NoAccess group ID
with_firebooltrueNoCompletely delete an order from the database.

If the parameter is not passed, the order is flagged as deleted, but the data remains in the database.

Request example

{           
"token": "abcdefghijklmnqrstuvwxyz",
"id": 1,
"group_id": 2,
"with_fire": true
}

Response example

{
"error": 0,
"error_text": "",
"result": []
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text