Cancel Delivery Order CANCEL_DELIVERY_REQUEST_URL
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The request is sent to the address specified in CANCEL_DELIVERY_REQUEST_URL when creating a delivery handler using the method sale.delivery.handler.add.
Request Parameters
|
Name |
Description |
|
DELIVERY_ID |
Identifier of the delivery service. You can obtain the identifiers of delivery services using the method sale.delivery.getlist |
|
REQUEST_ID |
Identifier of the transport request. The identifier is assigned by the external system in response to the webhook for creating a delivery order (for more details, see the webhook description Create Delivery Request CREATE_DELIVERY_REQUEST_URL) |
Example Request
{
"DELIVERY_ID": 694,
"REQUEST_ID": "4757aca4931a4f029f49c0db4374d13d"
}
Response Parameters
Required parameters are marked with *
|
Name |
Description |
|
SUCCESS* |
Indicator of the success of the delivery order cancellation. Possible values:
|
|
REASON |
Reason for the error. Provided in case of an unsuccessful attempt to cancel the delivery order (detailed description is provided below) |
REASON
|
Name |
Description |
|
TEXT* |
Description of the error |
Example Response with Successful Delivery Order Cancellation
{
"SUCCESS": "Y"
}
Example Response with Error in Cost Calculation
{
"SUCCESS": "N",
"REASON": {
"TEXT": "The order has been already delivered"
}
}
Continue Learning
- Webhooks for Delivery Operations
- Calculate Delivery Costs CALCULATE_URL
- Create Delivery Request CREATE_DELIVERY_REQUEST_URL