DeleteOrder

Function to delete order. The order is only hidden (visible = 0), the record stays in the database.

DELETE https://rest.crmango.com/api/DeleteOrder

Authorization

1 Sent in the request headers
Bearer varchar

Auth token (required in Authorization header)

Body data

1 Sent in the request body
order_id integer

Id of the deleted order
Reference: GetAllOrders

Response

2 HTTP 200

Function to delete order

code integer

Return code

message varchar

Info message

Example request

curl --request DELETE \
  --url 'https://rest.crmango.com/api/DeleteOrder' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    {
      "order_id": 123
    }
  }'
{
    "code": 200,
    "message": "Order was successfully deleted"
}