Documentation

sale.delivery.handler.update

Scope: catalog Permissions to execute: for all

Method updates a delivery service handler.

JSON call schema

Example

Query:

https://my.bitrix24.ru/rest/sale.delivery.handler.update

JSON call:

{
    ID: 43,
    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: true,
    time: {
        start: 1638371182.61351,
        finish: 1638371182.99051,
        duration: 0.377000093460083,
        processing: 0.02500009536743164,
        date_start: "2021-12-01T17:06:22+02:00",
        date_finish: "2021-12-01T17:06:22+02:00",
    },
}


© «Bitrix24», 2001-2024