(Quick Reference) Service: Delete an operation (order,pre-order, invoice or delivery note)

Description: Returns a json response.

URL:

https://BASE_URL/api/VERSION/orders/{id}

URL with external_id:

https://BASE_URL/api/VERSION/orders/reference/{id}

Method: DELETE

Parameters:

NameDescriptionTypeRequiredExample values
idThe ID of the desired operationLong/Stringyes123

Success Output

Success case: response.status=200

{
  "success": "true",
  "success_description": "Instance deleted successfully"
}

Failure Output

Failure case:response.status = 400

{
  "error": "delete_failed",
  "error_description": "Failed to delete instance."
}

Failure case:response.status = 404

{
  "error": "not_found",
  "error_description": "The order with the id 706 doesn't exist."
}