Raw schema
{
"type": "object",
"properties": {
"idempotency_key": {
"type": "string",
"description": "Ключ повтора, до 80 символов"
},
"lines": {
"type": "array",
"description": "Строки: goods_id, min_qty ступени, cards — сколько таких упаковок",
"items": {
"type": "object",
"properties": {
"goods_id": {
"type": "integer",
"description": "Идентификатор товара, как в адресе /catalog/{id}"
},
"min_qty": {
"type": "integer",
"description": "Ступень с карточки: сколько штук в одной упаковке"
},
"cards": {
"type": "integer",
"description": "Сколько таких упаковок. Пусто — одна"
}
},
"required": [
"goods_id",
"min_qty"
]
}
},
"mode": {
"type": "string",
"description": "pickup, city или distant"
},
"name": {
"type": "string",
"description": "Имя получателя"
},
"phone": {
"type": "string",
"description": "Не передавайте. Телефон берётся из аккаунта вошедшего клиента и обязателен"
},
"email": {
"type": "string",
"description": "Почта"
},
"personal_data": {
"type": "string",
"description": "Согласие на обработку данных: 1"
},
"service": {
"type": "string",
"description": "cdek или dostavista"
},
"city": {
"type": "string",
"description": "Город"
},
"region": {
"type": "string",
"description": "Регион"
},
"street": {
"type": "string",
"description": "Улица"
},
"house": {
"type": "string",
"description": "Дом"
},
"flat": {
"type": "string",
"description": "Квартира"
},
"postal_code": {
"type": "string",
"description": "Индекс"
},
"tariff_code": {
"type": "integer",
"description": "Тариф СДЭК"
},
"pvz_code": {
"type": "string",
"description": "Код пункта выдачи"
},
"slot": {
"type": "string",
"description": "Слот Достависты"
},
"comment": {
"type": "string",
"description": "Комментарий"
}
},
"required": [
"idempotency_key",
"lines",
"mode",
"name",
"personal_data"
],
"additionalProperties": false
}