{
    "openapi": "3.0.3",
    "info": {
        "title": "ext.zstExp-cardMail-s-rest-v1",
        "description": "Адаптер между ВТБ API и службой доставки Measoft (версия API 1.0.0). Все POST-запросы требуют Basic Auth и Content-Type: application\/json. Среду (PROD \/ TEST \/ DSO) и параметр extra выбирайте в панели авторизации над документацией.",
        "version": "1.0.0",
        "contact": {
            "url": "https:\/\/sfera.vtb.ru\/knowledge\/pages?id={pageNumber}",
            "email": "",
            "name": ""
        }
    },
    "servers": [
        {
            "url": "https:\/\/gate-2.zest.ru",
            "description": "PROD (выбор в панели над документацией)"
        },
        {
            "url": "https:\/\/gate-2.zest.ru\/test",
            "description": "TEST (выбор в панели над документацией)"
        },
        {
            "url": "https:\/\/gate-2.zest.ru\/dev",
            "description": "DSO (выбор в панели над документацией)"
        }
    ],
    "security": [
        {
            "basicAuth": []
        }
    ],
    "paths": {
        "\/neworder": {
            "post": {
                "summary": "Создание заказа",
                "description": "Параметр extra необязателен; если передан, должен соответствовать контуру (PROD — 12, TEST и DSO — 8).",
                "security": [
                    {
                        "basicAuth": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "$ref": "#\/components\/schemas\/NewOrderRequest"
                            },
                            "example": {
                                "extra": "12",
                                "order": [
                                    {
                                        "orderno": "OOO00000011700",
                                        "barcode": "OOO00000011700",
                                        "sender": {
                                            "company": "TEST COMPANY",
                                            "phone": "+79781111111111",
                                            "town": "Москва",
                                            "address": "Днепропетровский пр-д, д. 4а, стр. 31а",
                                            "date": "2026-08-18"
                                        },
                                        "receiver": {
                                            "company": "TEST COMPANY",
                                            "person": "TEST PERSON",
                                            "phone": "+79781111111111",
                                            "zipcode": "107045",
                                            "town": "Москва",
                                            "address": "Рыбников пер., д.8"
                                        },
                                        "weight": "0.0035",
                                        "quantity": "1",
                                        "service": "2",
                                        "type": "1",
                                        "department": "ПБ001",
                                        "costcode": "1683",
                                        "package": [
                                            {
                                                "strbarcode": "1503370"
                                            }
                                        ]
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Успешный ответ или ошибка внешнего API",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "oneOf": [
                                        {
                                            "$ref": "#\/components\/schemas\/NewOrderResponse"
                                        },
                                        {
                                            "$ref": "#\/components\/schemas\/ExternalApiErrorResponse"
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Ошибка авторизации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Ошибка валидации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/cancelorder": {
            "post": {
                "summary": "Отмена заказа",
                "security": [
                    {
                        "basicAuth": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "$ref": "#\/components\/schemas\/CancelOrderRequest"
                            },
                            "example": {
                                "extra": "12",
                                "order": [
                                    {
                                        "orderno": "VTB00000011598"
                                    },
                                    {
                                        "orderno": "VTB00000011612"
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Успешный ответ",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/CancelOrderResponse"
                                },
                                "examples": {
                                    "ok": {
                                        "$ref": "#\/components\/examples\/cancelorder-response"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Ошибка авторизации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Ошибка валидации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/statusreq": {
            "post": {
                "summary": "Запрос статуса заказа",
                "description": "Два режима: по списку orderno[] или выборка ONLY_LAST. Параметр extra необязателен. streamid опционален: при наличии непустого orderno[] запрос принимается и без streamid.",
                "security": [
                    {
                        "basicAuth": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "$ref": "#\/components\/schemas\/StatusreqRequest"
                            },
                            "examples": {
                                "byOrderno": {
                                    "$ref": "#\/components\/examples\/statusreq-by-orderno"
                                },
                                "onlyLast": {
                                    "$ref": "#\/components\/examples\/statusreq-only-last"
                                }
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Список статусов или ошибка внешнего API",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "oneOf": [
                                        {
                                            "$ref": "#\/components\/schemas\/StatusreqResponse"
                                        },
                                        {
                                            "$ref": "#\/components\/schemas\/ExternalApiErrorResponse"
                                        }
                                    ]
                                },
                                "examples": {
                                    "orders": {
                                        "$ref": "#\/components\/examples\/statusreq-response"
                                    },
                                    "externalError": {
                                        "$ref": "#\/components\/examples\/statusreq-external-error"
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Ошибка авторизации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Ошибка валидации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/commitlaststatus": {
            "post": {
                "summary": "Подтверждение получения статусов",
                "security": [
                    {
                        "basicAuth": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "$ref": "#\/components\/schemas\/CommitlaststatusRequest"
                            },
                            "example": {
                                "extra": "12",
                                "client": "CLIENT",
                                "streamid": "1234"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Успешный ответ",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/CommitlaststatusResponse"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Ошибка авторизации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Ошибка валидации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "\/report": {
            "post": {
                "summary": "Отчёт по log_queries",
                "description": "Поле extra не используется. Требуется Basic Auth (логин и пароль из запроса).",
                "security": [
                    {
                        "basicAuth": []
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application\/json": {
                            "schema": {
                                "$ref": "#\/components\/schemas\/ReportRequest"
                            },
                            "example": {
                                "name": "neworder",
                                "startdate": "2026-06-16",
                                "enddate": "2026-06-17",
                                "limit": "100"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Успешный ответ",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ReportResponse"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Ошибка авторизации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Ошибка валидации",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "$ref": "#\/components\/schemas\/ApiErrorResponse"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "basicAuth": {
                "type": "http",
                "scheme": "basic",
                "description": "Basic Auth: логин и пароль выбранного контура (панель над документацией)."
            }
        },
        "schemas": {
            "ApiErrorResponse": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string",
                                "example": "VALIDATION_ERROR"
                            },
                            "message": {
                                "type": "string",
                                "example": "Некорректный JSON: Syntax error"
                            }
                        },
                        "required": [
                            "code",
                            "message"
                        ]
                    }
                },
                "required": [
                    "error"
                ]
            },
            "ExternalApiErrorResponse": {
                "type": "object",
                "description": "Ошибка от внешнего API (HTTP 200)",
                "properties": {
                    "error": {
                        "type": "string",
                        "example": "1"
                    },
                    "errormsg": {
                        "type": "string",
                        "example": "authorization error"
                    }
                },
                "required": [
                    "error",
                    "errormsg"
                ]
            },
            "NewOrderRequest": {
                "type": "object",
                "properties": {
                    "extra": {
                        "type": "string",
                        "description": "Необязательный код службы доставки: PROD — 12, TEST и DSO — 8"
                    },
                    "order": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/NewOrderItem"
                        }
                    }
                },
                "required": [
                    "order"
                ]
            },
            "NewOrderItem": {
                "type": "object",
                "properties": {
                    "orderno": {
                        "type": "string",
                        "description": "Номер заказа",
                        "example": "OOO00000011700"
                    },
                    "barcode": {
                        "type": "string",
                        "description": "Штрихкод",
                        "example": "OOO00000011700"
                    },
                    "sender": {
                        "type": "object",
                        "properties": {
                            "company": {
                                "type": "string",
                                "description": "Компания"
                            },
                            "phone": {
                                "type": "string",
                                "description": "Телефон"
                            },
                            "town": {
                                "type": "string",
                                "description": "Город"
                            },
                            "address": {
                                "type": "string",
                                "description": "Адрес"
                            },
                            "date": {
                                "type": "string",
                                "format": "date",
                                "description": "Дата"
                            }
                        }
                    },
                    "receiver": {
                        "type": "object",
                        "properties": {
                            "company": {
                                "type": "string",
                                "description": "Компания"
                            },
                            "person": {
                                "type": "string",
                                "description": "Контактное лицо"
                            },
                            "phone": {
                                "type": "string",
                                "description": "Телефон"
                            },
                            "zipcode": {
                                "type": "string",
                                "description": "Почтовый индекс"
                            },
                            "town": {
                                "type": "string",
                                "description": "Город"
                            },
                            "address": {
                                "type": "string",
                                "description": "Адрес"
                            },
                            "date": {
                                "type": "string",
                                "format": "date",
                                "description": "Дата"
                            }
                        }
                    },
                    "weight": {
                        "type": "string",
                        "example": "0.0035"
                    },
                    "quantity": {
                        "type": "string",
                        "example": "1"
                    },
                    "service": {
                        "type": "string",
                        "example": "2"
                    },
                    "type": {
                        "type": "string",
                        "example": "1"
                    },
                    "department": {
                        "type": "string",
                        "example": "ПБ001"
                    },
                    "costcode": {
                        "type": "string",
                        "description": "Код затрат (также передаётся в extrafields)",
                        "example": "1683"
                    },
                    "price": {
                        "type": "string"
                    },
                    "package": {
                        "type": "array",
                        "description": "Грузовые места заказа",
                        "items": {
                            "$ref": "#\/components\/schemas\/Package"
                        }
                    }
                },
                "required": [
                    "orderno",
                    "barcode"
                ]
            },
            "Package": {
                "type": "object",
                "description": "Грузовое место",
                "properties": {
                    "strbarcode": {
                        "type": "string",
                        "description": "Идентификатор отправления",
                        "example": "1503370"
                    }
                }
            },
            "NewOrderResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "string",
                        "example": "1"
                    },
                    "order": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/NewOrderResultItem"
                        }
                    }
                },
                "required": [
                    "count",
                    "order"
                ]
            },
            "NewOrderResultItem": {
                "type": "object",
                "properties": {
                    "orderno": {
                        "type": "string"
                    },
                    "barcode": {
                        "type": "string"
                    },
                    "error": {
                        "type": "string",
                        "example": "0"
                    },
                    "errormsg": {
                        "type": "string"
                    },
                    "errormsgru": {
                        "type": "string"
                    },
                    "orderprice": {
                        "type": "string",
                        "example": "0"
                    }
                }
            },
            "CancelOrderRequest": {
                "type": "object",
                "properties": {
                    "extra": {
                        "type": "string",
                        "description": "Необязательный код службы доставки: PROD — 12, TEST и DSO — 8"
                    },
                    "order": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/CancelOrderItem"
                        }
                    }
                },
                "required": [
                    "order"
                ]
            },
            "CancelOrderItem": {
                "type": "object",
                "properties": {
                    "orderno": {
                        "type": "string",
                        "example": "VTB02000152454"
                    }
                },
                "required": [
                    "orderno"
                ]
            },
            "CancelOrderResponse": {
                "type": "object",
                "properties": {
                    "order": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/CancelOrderResultItem"
                        }
                    }
                },
                "required": [
                    "order"
                ]
            },
            "CancelOrderResultItem": {
                "type": "object",
                "properties": {
                    "orderno": {
                        "type": "string",
                        "example": "VTB02000152454"
                    },
                    "ordercode": {
                        "type": "string",
                        "example": "123456789"
                    },
                    "error": {
                        "type": "string",
                        "example": "0"
                    },
                    "errormsg": {
                        "type": "string",
                        "example": "OK"
                    },
                    "errormsgru": {
                        "type": "string",
                        "example": "Успешно"
                    }
                },
                "required": [
                    "orderno",
                    "error",
                    "errormsg",
                    "errormsgru"
                ]
            },
            "StatusreqRequest": {
                "type": "object",
                "description": "Режим 1: непустой orderno[] (streamid опционален). Режим 2: changes=ONLY_LAST. extra необязателен.",
                "properties": {
                    "extra": {
                        "type": "string",
                        "description": "Необязательный код службы доставки: PROD — 12, TEST и DSO — 8"
                    },
                    "streamid": {
                        "type": "string",
                        "description": "Идентификатор потока (опционально при orderno[])",
                        "example": "1101411"
                    },
                    "changes": {
                        "type": "string",
                        "description": "ONLY_LAST — последние изменения без orderno",
                        "example": "ONLY_LAST"
                    },
                    "orderno": {
                        "type": "array",
                        "description": "Список номеров заказов",
                        "items": {
                            "type": "string"
                        },
                        "example": [
                            "1081ABC3287",
                            "1081ABC3286"
                        ]
                    }
                }
            },
            "StatusreqResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "string",
                        "example": "1"
                    },
                    "order": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/StatusreqOrderItem"
                        }
                    }
                },
                "required": [
                    "count",
                    "order"
                ]
            },
            "StatusreqOrderItem": {
                "type": "object",
                "description": "Элемент массива order в ответе statusreq",
                "properties": {
                    "orderno": {
                        "type": "string",
                        "description": "Номер накладной",
                        "example": "VTB00000011598"
                    },
                    "barcode": {
                        "type": "string",
                        "description": "Штрихкод",
                        "example": "VTB00000011598"
                    },
                    "sender": {
                        "type": "object",
                        "properties": {
                            "company": {
                                "type": "string",
                                "description": "Компания"
                            },
                            "phone": {
                                "type": "string",
                                "description": "Телефон"
                            },
                            "town": {
                                "type": "string",
                                "description": "Город"
                            },
                            "address": {
                                "type": "string",
                                "description": "Адрес"
                            },
                            "date": {
                                "type": "string",
                                "format": "date",
                                "description": "Дата"
                            }
                        }
                    },
                    "receiver": {
                        "type": "object",
                        "description": "Получатель в ответе statusreq",
                        "properties": {
                            "company": {
                                "type": "string",
                                "description": "Компания"
                            },
                            "person": {
                                "type": "string",
                                "description": "Контактное лицо"
                            },
                            "phone": {
                                "type": "string",
                                "description": "Телефон"
                            },
                            "zipcode": {
                                "type": "string",
                                "description": "Почтовый индекс"
                            },
                            "town": {
                                "type": "string",
                                "description": "Город"
                            },
                            "address": {
                                "type": "string",
                                "description": "Адрес"
                            }
                        }
                    },
                    "weight": {
                        "type": "string",
                        "description": "Общий вес заказа в килограммах",
                        "example": "1.2"
                    },
                    "quantity": {
                        "type": "string",
                        "description": "Количество мест",
                        "example": "2"
                    },
                    "service": {
                        "type": "string",
                        "description": "Режим доставки",
                        "example": "2"
                    },
                    "type": {
                        "type": "string",
                        "description": "Тип корреспонденции",
                        "example": "1"
                    },
                    "department": {
                        "type": "string",
                        "description": "Номер клиентского договора",
                        "example": "ПБ001"
                    },
                    "costcode": {
                        "type": "string",
                        "description": "Код точки доставки (из extrafields внешнего API)",
                        "example": "0100"
                    },
                    "delivereddate": {
                        "type": "string",
                        "format": "date",
                        "description": "Дата доставки"
                    },
                    "deliveredtime": {
                        "type": "string",
                        "description": "Время доставки",
                        "example": "17:25:58.235222820"
                    },
                    "status": {
                        "type": "string",
                        "description": "Статус доставки",
                        "example": "COMPLETE"
                    },
                    "package": {
                        "type": "array",
                        "description": "Грузовые места заказа",
                        "items": {
                            "$ref": "#\/components\/schemas\/Package"
                        }
                    },
                    "comment": {
                        "type": "string",
                        "description": "Комментарий курьера при доставке"
                    }
                },
                "required": [
                    "orderno",
                    "barcode",
                    "sender",
                    "receiver",
                    "weight",
                    "quantity",
                    "service",
                    "type",
                    "department",
                    "costcode",
                    "status",
                    "package"
                ]
            },
            "CommitlaststatusRequest": {
                "type": "object",
                "properties": {
                    "extra": {
                        "type": "string",
                        "description": "Необязательный код службы доставки: PROD — 12, TEST и DSO — 8"
                    },
                    "client": {
                        "type": "string",
                        "description": "Код клиента",
                        "example": "CLIENT"
                    },
                    "streamid": {
                        "type": "string",
                        "example": "1234"
                    }
                }
            },
            "CommitlaststatusResponse": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "string",
                        "description": "Номер ошибки",
                        "example": "0"
                    },
                    "status": {
                        "type": "string",
                        "description": "Статус: OK либо описание ошибки",
                        "example": "OK"
                    }
                },
                "required": [
                    "error"
                ]
            },
            "ReportRequest": {
                "type": "object",
                "description": "Все поля необязательны. extra не используется. По умолчанию: startdate — вчера, enddate — завтра, limit — 100.",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Фильтр по endpoint (neworder, statusreq, …)",
                        "example": "neworder"
                    },
                    "startdate": {
                        "type": "string",
                        "format": "date",
                        "example": "2026-06-16"
                    },
                    "enddate": {
                        "type": "string",
                        "format": "date",
                        "example": "2026-06-17"
                    },
                    "limit": {
                        "type": "string",
                        "example": "100"
                    }
                }
            },
            "ReportResponse": {
                "type": "object",
                "properties": {
                    "count": {
                        "type": "string",
                        "example": "1"
                    },
                    "queries": {
                        "type": "array",
                        "items": {
                            "$ref": "#\/components\/schemas\/ReportQueryItem"
                        }
                    }
                },
                "required": [
                    "count",
                    "queries"
                ]
            },
            "ReportQueryItem": {
                "type": "object",
                "properties": {
                    "datetime": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2026-06-17 10:00:00"
                    },
                    "request": {
                        "type": "string",
                        "description": "JSON входящего запроса"
                    },
                    "response": {
                        "type": "string",
                        "description": "JSON ответа API"
                    },
                    "ip": {
                        "type": "string",
                        "example": "127.0.0.1"
                    },
                    "endpoint": {
                        "type": "string",
                        "example": "neworder"
                    }
                }
            }
        },
        "examples": {
            "neworder-request": {
                "summary": "Создание заказа",
                "value": {
                    "extra": "12",
                    "order": [
                        {
                            "orderno": "OOO00000011700",
                            "barcode": "OOO00000011700",
                            "sender": {
                                "company": "TEST COMPANY",
                                "phone": "+79781111111111",
                                "town": "Москва",
                                "address": "Днепропетровский пр-д, д. 4а, стр. 31а",
                                "date": "2026-08-18"
                            },
                            "receiver": {
                                "company": "TEST COMPANY",
                                "person": "TEST PERSON",
                                "phone": "+79781111111111",
                                "zipcode": "107045",
                                "town": "Москва",
                                "address": "Рыбников пер., д.8"
                            },
                            "weight": "0.0035",
                            "quantity": "1",
                            "service": "2",
                            "type": "1",
                            "department": "ПБ001",
                            "costcode": "1683",
                            "package": [
                                {
                                    "strbarcode": "1503370"
                                }
                            ]
                        }
                    ]
                }
            },
            "cancelorder-request": {
                "summary": "Отмена заказа",
                "value": {
                    "extra": "12",
                    "order": [
                        {
                            "orderno": "VTB00000011598"
                        },
                        {
                            "orderno": "VTB00000011612"
                        }
                    ]
                }
            },
            "cancelorder-response": {
                "summary": "Успешный ответ",
                "value": {
                    "order": [
                        {
                            "orderno": "VTB00000011598",
                            "ordercode": "123456",
                            "error": "0",
                            "errormsg": "OK",
                            "errormsgru": "Успешно"
                        },
                        {
                            "orderno": "VTB00000011612",
                            "error": "52",
                            "errormsg": "order not found",
                            "errormsgru": "Заказ не найден"
                        }
                    ]
                }
            },
            "statusreq-by-orderno": {
                "summary": "Статусы по списку orderno",
                "value": {
                    "orderno": [
                        "1081ABC3287",
                        "1081ABC3286"
                    ],
                    "extra": "12",
                    "changes": "",
                    "streamid": "1101411"
                }
            },
            "statusreq-only-last": {
                "summary": "Последние изменения ONLY_LAST",
                "value": {
                    "extra": "12",
                    "changes": "ONLY_LAST",
                    "streamid": "1101411"
                }
            },
            "statusreq-response": {
                "summary": "Успешный ответ",
                "value": {
                    "count": "1",
                    "order": [
                        {
                            "orderno": "OOO00000011700",
                            "barcode": "OOO00000011700",
                            "sender": {
                                "company": "TEST COMPANY",
                                "phone": "+79781111111111",
                                "town": "Москва",
                                "address": "Днепропетровский пр-д, д. 4а, стр. 31а",
                                "date": "2026-08-18"
                            },
                            "receiver": {
                                "company": "TEST COMPANY",
                                "person": "TEST PERSON",
                                "phone": "+79781111111111",
                                "zipcode": "107045",
                                "town": "Москва",
                                "address": "Рыбников пер., д.8"
                            },
                            "weight": "0.0035",
                            "quantity": "1",
                            "service": "2",
                            "type": "1",
                            "department": "ПБ001",
                            "costcode": "0100",
                            "delivereddate": "2026-06-17",
                            "deliveredtime": "14:30",
                            "status": "COMPLETE",
                            "package": [
                                {
                                    "strbarcode": "OOO00000011700-1"
                                }
                            ],
                            "comment": ""
                        }
                    ]
                }
            },
            "statusreq-external-error": {
                "summary": "Ошибка внешнего API",
                "value": {
                    "error": "1",
                    "errormsg": "authorization error"
                }
            },
            "commitlaststatus-request": {
                "summary": "Подтверждение статусов",
                "value": {
                    "extra": "12",
                    "client": "CLIENT",
                    "streamid": "1234"
                }
            },
            "report-request": {
                "summary": "Выборка логов",
                "value": {
                    "name": "neworder",
                    "startdate": "2026-06-16",
                    "enddate": "2026-06-17",
                    "limit": "100"
                }
            }
        }
    }
}