DocOrderDeliveryStatusChanged

Событие DocOrderDeliveryStatusChanged срабатывает при изменения статуса документа розничных заказов. В этом случае в объект data для webhook содержит:

data

Название Тип данных Обязательность Описание параметра
document DocOrderDelivery Обязательный Документ розничных заказов - Объект класса DocOrderDelivery
operations Array of OrderDeliveryOperation Обязательный Массив операций розничного заказа - Объекты класса OrderDeliveryOperation

Пример запроса

{
    "action": 1,
    "token": "c30640e61836e932c3b4a2dadf164c04",
    "data": {
        "document": {
            "id": 3,
            "date": 1629801661,
            "code": "ODL-0000002",
            "stock": {
                "id": 1,
                "name": "Склад",
                "firm": {
                    "id": 1,
                    "group": {
                        "id": 1,
                        "parent_id": 0,
                        "name": "Предприятие",
                        "child_count": 0,
                        "last_update": 1623234128
                    },
                    "deleted_mark": false,
                    "last_update": 1623234128,
                    "name": "Предприятие",
                    "fullname": null,
                    "boss_name": null,
                    "address": null,
                    "phones": null,
                    "description": null,
                    "inn": null,
                    "bank_name": null,
                    "mfo": null,
                    "rs": null,
                    "oked": null,
                    "vat_index": null
                },
                "deleted_mark": false,
                "last_update": 1623234152
            },
            "stock_id": 1,
            "customer": null,
            "customer_id": -1,
            "card_id": -1,
            "card_barcode_value": null,
            "operating_cash_id": 0,
            "amount": 11000.000,
            "status": {
                "id": 23,
                "document_type_id": 22,
                "name": "Утвержден",
                "order": 5,
                "last_update": 1623234137
            },
            "status_id": 23,
            "delivery_date": null,
            "description": null,
            "address": null,
            "phone": null,
            "external_code": null,
            "from": {
                "id": 1,
                "name": "Телефон",
                "deleted": false,
                "last_update": 1629801597
            },
            "from_id": 1,
            "location": null,
            "delivery_type": null,
            "courier": null,
            "price_type": {
                "id": 1,
                "name": "Розничная цена",
                "round_to": 0.01,
                "markup": 0.00,
                "max_discount": 100.00,
                "currency": {
                    "id": 1,
                    "code_num": 860,
                    "code_chr": "UZS",
                    "name": "Узбекский сум",
                    "exchange_rate": 1.00000000,
                    "is_base": true,
                    "deleted": false,
                    "last_update": 1623234128
                },
                "last_update": 1623234128
            },
            "price_type_id": 1,
            "payment_type_id": -1,
            "payment_type_name": null,
            "blocked": false,
            "deleted_mark": false,
            "last_update": 1641293237
        },
        "operations": [
            {
                "id": 10,
                "document_id": 3,
                "item": {
                    "id": 10,
                    "group": {
                        "id": 1,
                        "parent_id": 0,
                        "path": "НАПИТКИ",
                        "name": "НАПИТКИ",
                        "child_count": 0,
                        "last_update": 1693395955
                    },
                    "department": null,
                    "vat": {
                        "id": 1,
                        "value": -1,
                        "name": "Без НДС",
                        "enabled": true,
                        "last_update": 1664715017
                    },
                    "barcode_list": "4780069000017, 4780069000659",
                    "base_barcode": "4780069000017",
                    "unit": {
                        "id": 1,
                        "name": "шт",
                        "type": "pcs",
                        "description": null,
                        "kkm_code": 1,
                        "last_update": 1693395102
                    },
                    "unit2": null,
                    "color": null,
                    "size": null,
                    "brand": null,
                    "producer": null,
                    "country": null,
                    "compound": false,
                    "deleted_mark": false,
                    "image_url": null,
                    "last_update": 1693396116,
                    "parent_id": 0,
                    "has_child": false,
                    "type": "Item",
                    "partner_id": 0,
                    "code": 10,
                    "name": "COCA-COLA, ширин, Шиша бутилка 0,25 л.",
                    "fullname": null,
                    "description": null,
                    "articul": null,
                    "kdt": 1,
                    "min_quantity": 0,
                    "icps": "",
                    "assemblable": false,
                    "disassemblable": false,
                    "is_labeled": false,
                    "comission_tin": null,
                    "package_code": null
                },
                "item_id": 1,
                "quantity": 1.000,
                "quantity_const": 1.000,
                "price": 11000.000,
                "vat_value": 15.00,
                "vat_calculation_type": "Exclude",
                "last_update": 1641291886
            }
        ]
    }
}