Модели¶
Все модели экспортируются из cdekx.models. Схемы сверены с
OpenAPI-спецификацией apidoc.cdek.ru (секция api_v2_integration).
Базовые и конверты ответов¶
cdekx.models.base.CdekModel
¶
cdekx.models.base.ResponseEnvelope
¶
Bases: CdekModel, Generic[EntityT]
The universal CDEK response envelope (ResponseDto*).
Format::
{
"entity": {...}, // the entity the request was performed on
"requests": [...], // state of the asynchronous processing
"related_entities": [...] // related entities (reverse, print forms)
}
The requests and related_entities fields are present in responses of
GET /v2/orders/{uuid}, POST/PATCH/DELETE /v2/orders,
GET /v2/print/... and others.
uuid
property
¶
Return the entity UUID (a shortcut for entity.uuid).
last_request
property
¶
Return the last request of the list (usually there is only one).
state
property
¶
Return the state of the asynchronous processing: ACCEPTED / SUCCESSFUL / INVALID.
is_successful
property
¶
Return whether the request was processed successfully.
is_invalid
property
¶
Return whether the request was rejected: see errors of the last request.
errors
property
¶
Return the asynchronous processing errors (from requests[].errors).
warnings
property
¶
Return the CDEK warnings (from requests[].warnings).
related(entity_type)
¶
Return related entities of the given type (for example, "waybill").
cdekx.models.base.ListResponse
¶
Bases: CdekModel
Base of responses in the "list + errors" shape (no entity/requests envelope).
CDEK uses two response shapes:
- the
{entity, requests, related_entities}envelope — see :class:ResponseEnvelope; {"errors": [...], "warnings": [...], "<list>": [...]}— the methodsGET /v2/check,GET /v2/passport,GET /v2/registries,POST /v2/photoDocument,POST /v2/international/package/restrictions,POST /v2/intakes/availableDays.
In the second shape the HTTP status can be 200 while the errors lie in the
body (a partial failure). Therefore check :attr:has_errors, not only the
absence of an exception.
Example
checks = await client.misc.checks(cdek_number="1234567890") # doctest: +SKIP if checks.has_errors: # doctest: +SKIP ... print(checks.error_codes) # doctest: +SKIP
cdekx.models.base.RequestInfo
¶
Bases: CdekModel
Information about a request over an entity (RequestDto/RequestInfoDto).
cdekx.models.base.RelatedEntity
¶
Bases: CdekModel
A related entity (RelatedEntityDto).
Through related_entities CDEK returns reverse/return orders, client
returns, as well as links to print forms (url).
cdekx.models.base.ErrorInfo
¶
cdekx.models.base.RequestState
¶
States of an asynchronous request (requests[].state).
Important: the state belongs to the request, not to the entity.
ACCEPTED does not guarantee that the order was created.
ACCEPTED = 'ACCEPTED'
class-attribute
instance-attribute
¶
The request was accepted and passed the initial validation.
SUCCESSFUL = 'SUCCESSFUL'
class-attribute
instance-attribute
¶
The entity was successfully created in the CDEK information system.
INVALID = 'INVALID'
class-attribute
instance-attribute
¶
Error: fix the data and send the request again.
Общие структуры¶
cdekx.models.common.Phone
¶
Bases: CdekModel
Phone of a contragent (PhoneDto).
In API v2 a phone is an object, not a string::
{"number": "+79001234567", "additional": "123"}
For convenience :class:Contact also accepts plain strings: they are
automatically turned into Phone(number=...).
cdekx.models.common.Contact
¶
Bases: CdekModel
A contragent: the sender or the recipient (ContactDto/SenderContactDto).
phones is a list of :class:Phone objects (no more than 10). For
convenience you may pass strings: they are normalised and wrapped
automatically.
phone_numbers
property
¶
Return the phone numbers as a list of strings (handy for logs and checks).
cdekx.models.common.Money
¶
Bases: CdekModel
A money amount (MoneyDto).
Attention: there is no currency field in MoneyDto — the currency
is set at the order/calculation level. VAT rates since 01.01.2026: 0, 5, 7,
10, 16, 22 or null (no VAT).
cdekx.models.common.DeliveryCostThreshold
¶
Bases: CdekModel
Buyout threshold and an extra delivery fee (DeliveryCostThresholdDto).
Used in delivery_recipient_cost_adv::
[{"sum": 500, "threshold": 5000}] # buyout < 5000 ₽ → delivery 500 ₽
cdekx.models.common.Location
¶
Bases: CdekModel
Location of the sender/recipient (RequestFromLocationDto/LocationDto1).
In a request address (the address string) is required; the settlement
identifier is given by one of the fields: code, city_uuid,
fias_guid, kladr_code, postal_code or city.
cdekx.models.common.Package
¶
Bases: CdekModel
A cargo place in a request (PackageRequestDto).
number and weight are required. Dimensions are needed if items
are passed. package_id is required for an already existing package when
the order is modified.
cdekx.models.common.PackageResponse
¶
cdekx.models.common.Item
¶
Bases: CdekModel
An item in a request (ItemRequestDto).
Required: name, ware_key, payment, weight, amount,
cost. The marking field is the "Chestny Znak" marking code (not
marking_code), the FEACN code is called feacn_code, and the unique
jewellery number is jewel_uin.
cdekx.models.common.Service
¶
Заказы¶
cdekx.models.orders.OrderCreate
¶
Bases: CdekModel
Order registration (POST /v2/orders → OrderCreateRequestDto).
Per the specification tariff_code, recipient and packages are
required. The rest of the fields are required conditionally — depending
on the order type, the tariff (door/warehouse) and the international nature
of the shipment:
type— for an online-shop/delivery contract;number— for "online shop" type orders;sender— if the order is not from a natural person;from_location/to_locationorshipment_point/delivery_point;date_invoice,shipper_name,shipper_address— an international online-shop order.
Limit: from 1 to 255 cargo places per order, no more than 126 items.
cdekx.models.orders.OrderUpdate
¶
Bases: CdekModel
Order modification (PATCH /v2/orders → OrderUpdateRequestDto).
The identifier is passed in the request body: uuid or cdek_number.
Only orders in the CREATED or ACCEPTED statuses can be modified
(otherwise CDEK returns v2_update_forbidden).
cdekx.models.orders.Order
¶
Bases: CdekModel
Order information (OrderResponseDto).
Arrives inside the entity of the response envelope. The model is
deliberately tolerant of the field composition: the set depends on the order
type, status and contract, and unknown fields are available in
:attr:extra.
Note
Per the specification is_return, is_reverse, is_client_return,
tariff_code, recipient, packages and statuses are required
in the response. The model still gives them default values: an order that
is being processed may arrive incomplete, and failing during parsing is
the worst behaviour for an SDK. Check cdek_number/status_code if
you need a sign of a fully processed order.
cdekx.models.orders.OrderStatus
¶
Bases: CdekModel
Order status (OrderStatusDto).
Note: the field is called city (not city_name), there is
city_uuid (not city_code) and a deleted flag.
cdekx.models.orders.DeliveryDetail
¶
Bases: CdekModel
Delivery details in the response (ResponseDeliveryDetailDto).
This is not the agreed delivery interval but the cost calculation and the actual cash-on-delivery amount.
cdekx.models.orders.OrderNumberQuery
¶
Bases: QueryModel
Parameters of GET /v2/orders — a search for one order by number.
The method returns one order, not a list: either cdek_number or
im_number is passed.
Калькулятор¶
cdekx.models.calculator.TariffRequest
¶
Bases: _CalculatorRequestBase
Calculation by a tariff code (POST /v2/calculator/tariff).
cdekx.models.calculator.TariffListRequest
¶
Bases: _CalculatorRequestBase
Calculation by available tariffs (POST /v2/calculator/tarifflist).
Note
Unlike tariff and tariffAndService, this method does not
accept services — additional services are not included in the
calculation.
cdekx.models.calculator.TariffWithServicesRequest
¶
Bases: _CalculatorRequestBase
Calculation by tariffs and services (POST /v2/calculator/tariffAndService).
cdekx.models.calculator.TariffCalculation
¶
Bases: _CalculationResult
Result of a calculation by tariff code (CalculatorResponseDto).
cdekx.models.calculator.TariffListResponse
¶
Bases: CdekModel
Response of POST /v2/calculator/tarifflist.
The list items are :class:TariffCodeItem: code, name, delivery mode, cost
and terms.
cdekx.models.calculator.TariffCodeItem
¶
cdekx.models.calculator.AvailableTariffsResponse
¶
cdekx.models.calculator.CalculatorLocation
¶
cdekx.models.calculator.CalculatorPackage
¶
Локации и ПВЗ¶
cdekx.models.locations.CityQuery
¶
Bases: QueryModel
Parameters of GET /v2/location/cities.
city must match exactly; for a partial match use
GET /v2/location/suggest/cities.
cdekx.models.locations.CityByCoordinates
¶
cdekx.models.locations.Postcodes
¶
Bases: CdekModel
City postcodes — the response of GET /v2/location/postalcodes.
Corresponds to PostcodesResponseDto: an object {code, postal_codes},
not a list of entities. All postcodes belong to a single city, so a separate
model per postcode would be redundant.
Note: for foreign "cities" the API returns [null] (verified on code=176,
UAE) — hence str | None in the elements.
values
property
¶
Return postcodes without None (the API answers [null] for some cities).
cdekx.models.locations.SuggestCity
¶
cdekx.models.delivery.DeliveryPoint
¶
Bases: CdekModel
A CDEK office / pickup point / parcel locker (OfficeDto).
Fields required by the specification: code, uuid, work_time,
phones, type, owner_code, take_only, is_handout,
is_reception, is_dressing_room, have_cashless, have_cash,
have_fast_payment_system, allowed_cod, work_time_list,
status, location.
cdekx.models.delivery.DeliveryPointFilter
¶
Bases: QueryModel
Filter of GET /v2/deliverypoints.
CDEK understands boolean parameters as 1/true or 0/false —
the HTTP layer converts bool to "true"/"false" automatically.
To search for the nearest offices use /v2/deliverypoints/byPolygons
(a separate method with its own filter :class:DeliveryPointPolygonFilter),
not the coordinates in the filter.
cdekx.models.delivery.DeliveryPointPolygonFilter
¶
Bases: QueryModel
Filter of GET /v2/deliverypoints/byPolygons.
The method supports fewer parameters than the office list: only type,
city, payment methods, dressing room, weight and localisation. It has no
pagination (size/page) — all offices of the rectangle are returned.
cdekx.models.delivery.OfficeLocation
¶
Договорённость о доставке¶
cdekx.models.delivery_agreement.DeliveryAgreement
¶
Bases: CdekModel
Registration of a delivery agreement (POST /v2/delivery → ScheduleDto).
The order is specified through cdek_number or order_uuid.
date is required; time_from and time_to are required only if the
order is "to the door".
cdekx.models.delivery_agreement.DeliveryAgreementInfo
¶
cdekx.models.delivery_agreement.AvailableIntervalsResponse
¶
cdekx.models.delivery_agreement.EstimatedIntervalsRequest
¶
Bases: CdekModel
Request intervals before creating the order (POST /v2/delivery/estimatedIntervals).
date_time, tariff_code and to_location are required.
from_location is required only if the order uses a "from the door" tariff
and cannot be used together with shipment_point (the latter is required
for tariffs with the "from the warehouse" mode).
Заявки на вызов курьера¶
cdekx.models.intakes.Intake
¶
Bases: CdekModel
Registration of an intake (POST /v2/intakes → IntakeDto).
intake_date, intake_time_from and intake_time_to are required.
The order is specified through cdek_number or order_uuid; if
neither is given, an intake for a consolidated cargo pickup is created
(several orders from one address).
cdekx.models.intakes.IntakeInfo
¶
cdekx.models.intakes.IntakePackage
¶
Bases: CdekModel
Package of an intake (IntakePackageDto).
Differs from an order package: there is no number, items or
barcode here — only package_id and the weight/size parameters.
cdekx.models.intakes.IntakeStatusChange
¶
cdekx.models.intakes.IntakeAvailableDaysRequest
¶
Печать¶
cdekx.models.print.WaybillCreate
¶
cdekx.models.print.BarcodeCreate
¶
cdekx.models.print.PrintOrder
¶
cdekx.models.print.Waybill
¶
cdekx.models.print.Barcode
¶
cdekx.models.print.WaybillFormType
¶
Waybill form type (WaybillRequestDto.type).
Вебхуки¶
cdekx.models.webhooks.WebhookCreate
¶
Прочие разделы: чеки, паспорта, реестры, фото, преалерты, реверс¶
Ответы этих методов приходят «списком с ошибками»
(ListResponse), а не конвертом.
cdekx.models.misc.CheckResponse
¶
Bases: ListResponse
Response of GET /v2/check (CheckResponseDto).
Note
The list is called check_info, not entities: CDEK has its own
field name in this method.
checks
property
¶
Return the receipts from check_info (an empty list if there are none).
cdekx.models.misc.CheckInfo
¶
cdekx.models.misc.PassportResponse
¶
Bases: ListResponse
Response of GET /v2/passport (PassportResponseDto).
unsatisfied
property
¶
Return the orders that require passport data but do not have it.
cdekx.models.misc.PassportOrder
¶
cdekx.models.misc.RegistriesResponse
¶
Bases: ListResponse
Response of GET /v2/registries (RegistriesResponseDto).
Only registries whose cash-on-delivery payment has already been transferred are returned.
total
property
¶
Return the total amount of all registries in the response.
cdekx.models.misc.PhotoRequest
¶
Bases: CdekModel
Request of orders with ready document photos (PhotoRequestDto).
Either a period (period_begin/period_end), or a list of orders, or
both are given.
Note
The date is passed strictly in the CDEK format
yyyy-MM-dd'T'HH:mm:ssZ, for example 2026-03-24T14:15:22+0000.
Neither the Z suffix nor the ISO offset +03:00 is accepted: the
API answers v2_invalid_value_type: Invalid value type in
[period_begin] field (verified on api.edu.cdek.ru).
:data:cdekx.types.CdekDateTimeOut serialises datetime into the
required format automatically.
The method does not accept an empty body (v2_field_is_empty:
[orders]): pass orders and/or a period.
cdekx.models.misc.PhotoResponse
¶
Bases: ListResponse
Response of POST /v2/photoDocument (PhotoResponseDto).
ready
property
¶
Return only the orders with a ready archive (status == DONE).
cdekx.models.misc.PhotoReadyOrder
¶
cdekx.models.misc.PrealertCreate
¶
Bases: CdekModel
Prealert registration (POST /v2/prealert → RegisterPrealertRequestDto).
A prealert describes handing a group of orders over to a specific office on a specific date — it is required for international shipments.
Note
planned_date must not be earlier than the value set in the terms of
the prealert processing contract. The response arrives with code
202: the prealert is created asynchronously, look at requests
for the state.
cdekx.models.misc.Prealert
¶
Bases: CdekModel
A prealert in the response (GetPrealertResponseDtoPrealertDto).
Warning
Per the schema uuid, planned_date, shipment_point and
orders are required, but the live API in GET /v2/prealert/{uuid}
does not return the prealert uuid (verified on
api.edu.cdek.ru): the identifier is known only from the request or
from the creation response. Hence uuid is optional — keep it on your
side.
cdekx.models.misc.PrealertPackageInfo
¶
cdekx.models.misc.RestrictionRequest
¶
Bases: CdekModel
Request of restrictions for an international direction (RestrictionHintsRequestDto).
The direction is given as in the calculator:
from_location/to_location or office codes. tariff_code is
required for a tariff calculation.
Note
Locations here are described by the LocationDto1 schema — the same
as in the calculator, so :class:cdekx.models.Location is used.
cdekx.models.misc.RestrictionItem
¶
Bases: CdekModel
An item in the restrictions request (RestrictionItemRequestDto).
Warning
In the OpenAPI specification the field is declared as itemId
(camelCase, writeOnly), but the live API expects item_id:
for itemId it answers v2_field_is_empty:
[packages[0].items[0].item_id] is empty (verified on
api.edu.cdek.ru). The model sends item_id — the same as in the
response (ItemHintDto.item_id).
cdekx.models.misc.RestrictionHintsResponse
¶
Bases: ListResponse
Response of POST /v2/international/package/restrictions.
RestrictionHintsResponseDto. The method returns a body with the */*
type (not application/json) — a specification quirk that does not affect
response parsing.
cdekx.models.misc.PackageHint
¶
Bases: CdekModel
Restrictions for a cargo place (PackageHintDto).
is_forbidden
property
¶
Return whether the cargo place or at least one item in it is forbidden.
The place status can be LIMITED while an item inside is
FORBIDDEN: per the CDEK description the place statuses are
"generated both by the cargo place itself and by the items in it", so
both levels are checked.
forbidden_items
property
¶
Return the forbidden items (usually they define the place status).
cdekx.models.misc.HintStatus
¶
cdekx.models.misc.ReverseValidateRequest
¶
Bases: CdekModel
Request of the reverse availability check (ReverseValidateRequestDto).
The same data as for creating a forward order is passed: direction, tariff, sender and recipient, shipment/delivery offices.
Note
Locations and offices are mutually exclusive pairs: from_location
or shipment_point, to_location or delivery_point.
delivery_point is required for tariffs with the "to the warehouse"
or "to the parcel locker" mode.
The method has no response body: HTTP 200 with an empty body means
"reverse is available", while unavailability is returned as HTTP 400
(in cdekx — an :class:cdekx.exceptions.ApiError exception).
cdekx.models.misc.ReverseContragent
¶
Bases: CdekModel
Sender/recipient in the reverse validation request.
ReverseValidateRequestSenderDto/RecipientDto: unlike
:class:cdekx.models.Contact there is no full name here — only the
contragent type and phones (required, no more than 10).
cdekx.models.misc.ReverseLocation
¶
Bases: CdekModel
Location in the reverse validation request (ReverseValidateRequest*LocationDto).
The field set is narrower than in :class:cdekx.models.Location: there is
no city_uuid, kladr_code, country, time_zone or
payment_limit. You do not need to pass them — the API does not expect
them.
For to_location the address field is required (it is in
required of the ReverseValidateRequestToLocationDto schema); for
from_location a settlement identifier is enough.
Перечисления¶
cdekx.types.enums
¶
Enumerations of the CDEK API.
Two principles:
- CDEK directories change. Tariff codes, extra-service codes and webhook
types gain new entries several times a year. The "long" enumerations are
therefore declared as
StrEnum/IntEnumwith the known values, while the models also accept any value of the same type (int/str) — see :data:cdekx.types.TariffCodeLike. A new directory entry will not break your code and will not require an urgent library release. - No stringly-typed magic. Everything a user might type by hand has a named constant.
OrderType
¶
Bases: IntEnum
Order type (the type field).
E_COMMERCE = 1
class-attribute
instance-attribute
¶
Online store (delivery to the buyer).
DELIVERY = 2
class-attribute
instance-attribute
¶
Delivery.
SUPPLIER = 3
class-attribute
instance-attribute
¶
Supplier.
RETURN = 4
class-attribute
instance-attribute
¶
Return.
SERVICE = 7
class-attribute
instance-attribute
¶
Service order.
CARGO_PICKUP = 8
class-attribute
instance-attribute
¶
Cargo pickup (door to warehouse).
FULFILLMENT = 9
class-attribute
instance-attribute
¶
Fulfillment.
SHOPPING = 10
class-attribute
instance-attribute
¶
CDEK Shopping.
DeliveryMode
¶
Bases: IntEnum
The real delivery mode of an order (OrderResponseDto.delivery_mode).
Outdated documentation described these as the strings door/pickup —
the current API returns integers. There is no value 5 in the specification:
the parcel-locker modes (6-10) follow warehouse-to-warehouse directly.
DOOR_DOOR = 1
class-attribute
instance-attribute
¶
Door to door.
DOOR_PICKUP = 2
class-attribute
instance-attribute
¶
Door to warehouse.
PICKUP_DOOR = 3
class-attribute
instance-attribute
¶
Warehouse to door.
PICKUP_PICKUP = 4
class-attribute
instance-attribute
¶
Warehouse to warehouse.
DOOR_POSTAMAT = 6
class-attribute
instance-attribute
¶
Door to parcel locker.
PICKUP_POSTAMAT = 7
class-attribute
instance-attribute
¶
Warehouse to parcel locker.
POSTAMAT_DOOR = 8
class-attribute
instance-attribute
¶
Parcel locker to door.
POSTAMAT_PICKUP = 9
class-attribute
instance-attribute
¶
Parcel locker to warehouse.
POSTAMAT_POSTAMAT = 10
class-attribute
instance-attribute
¶
Parcel locker to parcel locker.
TariffCode
¶
Bases: IntEnum
The most commonly used tariff codes.
The complete, current list comes from GET /v2/calculator/tariffs
(see :meth:cdekx.endpoints.calculator.CalculatorEndpoint.tariffs) and
apidoc.cdek.ru. A code not listed here can be passed as a plain number.
CARGO_PICKUP_CARGO_PICKUP = 158
class-attribute
instance-attribute
¶
Cargo pickup, door to warehouse (required for a consolidated intake).
ServiceCode
¶
Bases: StrEnum
Extra service codes.
The current list comes from GET /v2/handbook/services and apidoc.cdek.ru.
A code missing here can be passed as a plain string.
INSURANCE = 'INSURANCE'
class-attribute
instance-attribute
¶
Insurance (parameter is the declared value).
TRYING_ON = 'TRYING_ON'
class-attribute
instance-attribute
¶
Try-on.
PARTIAL_DELIVERY = 'PARTIAL_DELIVERY'
class-attribute
instance-attribute
¶
Partial delivery.
INSPECTION_CARGO = 'INSPECTION_CARGO'
class-attribute
instance-attribute
¶
Cargo inspection.
DELIVERY_TO_FLOOR = 'DELIVERY_TO_FLOOR'
class-attribute
instance-attribute
¶
Carrying to the door or floor.
RETURN_RECEIPT = 'RETURN_RECEIPT'
class-attribute
instance-attribute
¶
Return of the waybill.
PHOTO_DOCUMENT = 'PHOTO_DOCUMENT'
class-attribute
instance-attribute
¶
Photos of documents.
BOX_LINER = 'BOX_LINER'
class-attribute
instance-attribute
¶
Internal crating.
REVERSE = 'REVERSE'
class-attribute
instance-attribute
¶
Deprecated: use the has_reverse_order flag on the order.
OrderStatus
¶
Bases: StrEnum
Main statuses of an order/package (code in the status table).
StatusReasonCode
¶
Bases: StrEnum
Common additional statuses (status_reason_code).
The full list is Appendix 2 on apidoc.cdek.ru. Values outside this enum are valid: pass a string.
ContragentType
¶
PackageType
¶
Bases: StrEnum
Package type.
Currency
¶
Bases: IntEnum
Numeric currency codes for the cost-calculation methods (CDEK Appendix 14).
Important: in calculator requests the currency field is a numeric code
(int32); the string "RUB" is rejected with v2_invalid_value_type.
In responses the currency comes back as a three-letter string ("RUB"),
where this enum is not used.
VatRate
¶
Bases: IntEnum
VAT rates effective from 01.01.2026 (null means no VAT).
Allowed values: 0, 5, 7, 10, 16, 22. The former rate 20 is rejected by the
API; it still appears in responses for historical data — response fields are
typed as float and accept any value.
Language
¶
Bases: StrEnum
Language of directory information (lang).
PrintFormat
¶
Bases: StrEnum
Print form format (BarcodeRequestDto.format).
PrintLang
¶
Bases: StrEnum
Print form language in ISO 639-3 encoding (BarcodeRequestDto.lang).
OrderRequestState
¶
Bases: StrEnum
State of an asynchronous request (requests[].state).
It describes the request, not the entity: ACCEPTED does not guarantee
that the order was created.
ACCEPTED = 'ACCEPTED'
class-attribute
instance-attribute
¶
The request was accepted and passed initial validation.
SUCCESSFUL = 'SUCCESSFUL'
class-attribute
instance-attribute
¶
The entity was successfully created in the CDEK system.
INVALID = 'INVALID'
class-attribute
instance-attribute
¶
Error: fix the data and submit the request again.
PrintType
¶
Bases: StrEnum
Kinds of print form in the API (path names, not field values).
The current API has no copy_order form — only the waybill and the package
barcode.
WebhookType
¶
Bases: StrEnum
CDEK webhook types.
An account may have at most two active subscriptions: a third one gets
HTTP 400 with code v2_too_many_webhooks. The limit is not described in
the OpenAPI specification — it was confirmed by measurement against
api.edu.cdek.ru.
ORDER_STATUS = 'ORDER_STATUS'
class-attribute
instance-attribute
¶
Order status change.
PRINT_FORM = 'PRINT_FORM'
class-attribute
instance-attribute
¶
Print form is ready.
PREALERT_CLOSED = 'PREALERT_CLOSED'
class-attribute
instance-attribute
¶
Prealert closed.
ACCOMPANYING_WAYBILL = 'ACCOMPANYING_WAYBILL'
class-attribute
instance-attribute
¶
Transport information for the accompanying waybill.
OFFICE_AVAILABILITY = 'OFFICE_AVAILABILITY'
class-attribute
instance-attribute
¶
Office availability change.
ORDER_MODIFIED = 'ORDER_MODIFIED'
class-attribute
instance-attribute
¶
Order modified.
DELIV_AGREEMENT = 'DELIV_AGREEMENT'
class-attribute
instance-attribute
¶
Delivery agreement change.
DELIV_PROBLEM = 'DELIV_PROBLEM'
class-attribute
instance-attribute
¶
Delivery problems for an order.
COURIER_INFO = 'COURIER_INFO'
class-attribute
instance-attribute
¶
Details of the courier assigned to an order or intake.
DOWNLOAD_PHOTO = 'DOWNLOAD_PHOTO'
class-attribute
instance-attribute
¶
Order document photos are ready.
CheckType
¶
Bases: StrEnum
Fiscal receipt type (CheckInfoDto.type).
PaymentType
¶
Bases: StrEnum
Payment type (PaymentInfoDto.type, at most 4 characters).
PassportClient
¶
Bases: StrEnum
Which party the passport data is returned for (query parameter client).
When the parameter is omitted, CDEK returns information for both the sender
and the receiver, and the response carries client = ALL.
RegistryBasisType
¶
Bases: StrEnum
Assignment type in a registry line (RegistryOrderDto.basis_type).
PhotoTaskStatus
¶
Bases: StrEnum
Status of a photo task (PhotoReadyOrderDto.status).
The archive is ready for download once the task reaches DONE.
HintStatusCode
¶
Bases: StrEnum
Restriction status for an international destination (HintStatusDto.code).
HintReasonCode
¶
Bases: StrEnum
Reason for the restriction (HintReasonDto.code).
PrealertPackageStatus
¶
Bases: StrEnum
Status of a prealert package (GetPrealertResponseDtoPackageInfoDto.status).
Filled in after the prealert is closed: it shows discrepancies between what was declared and what was actually handed over.