# СДЭК

Доставка — заказы, расчёт тарифов, отслеживание, ПВЗ, вызов курьера

## Scenarios

### Delivery quote and transit time
The agent calculates the cost and delivery time for a given route, weight and dimensions, and picks the pickup point closest to your customer.

### Creating a shipment
The agent creates the delivery order, books a courier and returns the tracking number, with no manual trips to the lk.cdek.ru account.

### Parcels in transit under control
The agent catches every parcel status change over a webhook and sends a summary of the ones stuck in transit longer than usual.

### Picking a pickup point
The agent finds a pickup point by the customer city and address, taking parcel dimensions and the point opening hours into account.

## How to connect

### Sign a contract with CDEK
API access is granted only under an active contract with a company or sole proprietor. Until it is signed, the account stays retail-only and shows no API key section.

### Log in to the cabinet at lk.cdek.ru
Use the account the contract is attached to: keys are issued within that contract. A retail sender account cannot issue API keys.

### Open the «Интеграция» (Integration) section
Pick «Интеграция» (Integration) in the cabinet menu — the page lives at lk.cdek.ru/integration. Webhooks are configured there too, so parcel statuses arrive in the same contract scope as the key.

### Click «Создать новый ключ» and copy the pair
The cabinet issues an Account (the client_id) and a Secure password (the client_secret). The Secure password is shown only once at creation — if you lose it, you must issue a new key.

## FAQ

### How do I connect CDEK?
With a key pair from the lk.cdek.ru account: go to the Integration section and choose Create new key. Account is your client_id, Secure password is your client_secret, and it is shown only once at creation. API access is granted only under a contract with a company or sole trader.

### What can the agent see in CDEK?
Orders and their status history, tariff calculations, reference lists of regions, cities and pickup points, plus the print forms and photos delivered by webhook.

### Does the agent write to CDEK?
Yes: the agent can create a delivery order and book a courier, and it confirms such actions with you before sending them. Everything else is reading statuses and running calculations.

### Is there a sandbox environment?
Yes — alongside the production api.cdek.ru the connector knows the test address api.edu.cdek.ru, and orders created there never enter real delivery.

[Open СДЭК](https://lk.cdek.ru/integration)
