Documentation

sale.delivery.extra.service.add

Scope: catalog Permissions to execute: for all

Method adds an additional delivery service.

JSON query schema

Example

Query:

https://my.bitrix24.com/rest/sale.delivery.extra.service.add

  • For checkbox type

    JSON call:

    {
        DELIVERY_ID: 623,
        ACTIVE: "Y",
        CODE: "door_delivery",
        NAME: "Door Delivery",
        TYPE: "checkbox",
        PRICE: 59.99,
        SORT: 100,
    }

    JSON response:

    {
        "result": 988,
        "time": {
            "start": 1638367387.32351,
            "finish": 1638367387.72551,
            "duration": 0.40199995040893555,
            "processing": 0.051999807357788086,
            "date_start": "2021-12-01T16:03:07+02:00",
            "date_finish": "2021-12-01T16:03:07+02:00"
        }
    }

  • For enum type

    JSON call:

    {
        DELIVERY_ID: 689,
        ACTIVE: "Y",
        CODE: "cargo_type",
        NAME: "Cargo Type",
        TYPE: "enum",
        ITEMS: [
            {
                TITLE: "Small Package(s)",
                CODE: "small_package",
                PRICE: 129.99,
            },
            {
                TITLE: "Documents",
                CODE: "documents",
                PRICE: 69.99,
            },
        ],
        SORT: 100,
    }

    JSON response:

    {
        "result": 989,
        "time": {
            "start": 1638367586.86651,
            "finish": 1638367587.27851,
            "duration": 0.4120001792907715,
            "processing": 0.057000160217285156,
            "date_start": "2021-12-01T16:06:26+02:00",
            "date_finish": "2021-12-01T16:06:27+02:00"
        }
    }


© «Bitrix24», 2001-2024