sale.delivery.handler.add
Scope: catalog Permissions to execute: for all
Method adds a delivery service handler.
Example
Query:
https://my.bitrix24.com/rest/sale.delivery.handler.add
JSON call:
{ CODE: "uber", NAME: "Uber", DESCRIPTION: "Uber Description", SETTINGS: { CALCULATE_URL: "http://gateway.bx/calculate.php", CREATE_DELIVERY_REQUEST_URL: "http://gateway.bx/create_delivery_request.php", CANCEL_DELIVERY_REQUEST_URL: "http://gateway.bx/cancel_delivery_request.php", HAS_CALLBACK_TRACKING_SUPPORT: "Y", CONFIG: [ { TYPE: "STRING", CODE: "SETTING_1", NAME: "Setting 1", }, { TYPE: "STRING", CODE: "SETTING_2", NAME: "Setting 2", }, ], }, PROFILES: [ { NAME: "Taxi", CODE: "TAXI", DESCRIPTION: "Taxi Delivery", }, { NAME: "Cargo", CODE: "CARGO", DESCRIPTION: "Cargo Delivery", }, ], }
JSON response:
{ result: 45, time: { start: 1638524653.148473, finish: 1638524653.535473, duration: 0.38700008392333984, processing: 0.023000001907348633, date_start: "2021-12-03T11:44:13+02:00", date_finish: "2021-12-03T11:44:13+02:00", }, }
© «Bitrix24», 2001-2024