cdek_create_order
Creates a delivery order in CDEK system for shipping from your warehouse to recipient's pickup point or door, or for receiving returns to your pickup point.
Instructions
Регистрация заказа на доставку (POST /v2/orders).
Создает в ИС СДЭК заказ на доставку. Работает асинхронно — статус ACCEPTED не гарантирует создание, результат проверяется через методы получения информации.
Two directions:
"from_me": send from my warehouse/PVZ to recipient's PVZ (tariff 136) or door (tariff 137)
"to_me": receive from sender to my PVZ (returns, tariff 136). Requires my_pvz in config.
If product parameters are not specified, defaults from goods catalog or config are used.
Args: direction: "from_me" or "to_me" recipient_name: Recipient full name (получатель) recipient_phone: Phone in international format (e.g. "+79001234567") pvz: PVZ code (e.g. "MSK005") or address for PVZ search. For from_me warehouse delivery. address: Full delivery address for door delivery (from_me) or sender address (to_me) recipient_email: Email (optional) product_name: Product name (overrides defaults) weight: Weight per unit in kg (overrides defaults) height: Height in cm (overrides defaults) width: Width in cm (overrides defaults) length: Length in cm (overrides defaults) quantity: Number of items (default 1) price: Declared value per unit in rubles (overrides defaults)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pvz | No | ||
| price | No | ||
| width | No | ||
| height | No | ||
| length | No | ||
| weight | No | ||
| address | No | ||
| quantity | No | ||
| direction | Yes | ||
| product_name | No | ||
| recipient_name | Yes | ||
| recipient_email | No | ||
| recipient_phone | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |