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
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
id | int | 1 | Yes | Internal order ID (not external_id) |
group_id | int | 1 | No | Access group ID |
with_fire | bool | true | No | Completely 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
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |