sale.delivery.handler.add
Scope: sale, delivery Права на выполнение: для всех
Метод добавляет обработчик служб доставки.
Пример
Запрос:
https://my.bitrix24.ru/rest/sale.delivery.handler.add
Вызов JSON:
{ 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:
{ 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", }, }
© «Битрикс», 2001-2024, «1С-Битрикс», 2024