Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use it, send a POST-request to the URL:

Body of the request

Must be sent in the JSON format (Content-Type: application/json).
The following fields are supported:

Field name

Description

Field type

Mandatory

1

orders

List of orders

order[ ]

yes

1.1

order_uuid

Order identifier in CDEK information system

UUID

yes, if cdek_number was not sent

1.2

cdek_number

CDEK order number

long

yes, if order_uuid was not sent

2

copy_count

Quantity of a receipt’s copies on one page.It is recommended to select not less than2:one copy is attached to the cargo and the second one is given to the sender

Default value 2

integer

no

3

type

Receipt type. May take on values: tpl_chinareceipt in Chinese

tpl_armenia – receipt in Armenian

Default receipt type depends on order type

string(255)

no

Answer to create order receipt

The response body is returned in the JSON format:

No.

Field name

Description

Field type

Mandatory (yes/no)

1entityData of the order receipt over which request is sent
no
1.1uuid

Identifier of the order receipt in the CDEK IS

UUIDno
2requestsData on the request/requests over the order receipt request[]yes
2.1request_uuidOrder receipt identifier in CDEK information systemUUIDno
2.2typeRequest type
May take on values: CREATE, UPDATE, DELETE, AUTH, GET
string()yes
2.3state

Current status of the request
May take on values:

 ACCEPTED, WAITING, SUCCESSFUL, INVALID

 

ACCEPTED - pre-validation passed and request accepted
WAITING - the request is awaiting processing (depends on the execution of another request)
SUCCESS - the request was processed successfully
INVALID - the request was processed with an error

string()yes
2.4date_timeDate and time of setting current status of the request (format yyyy-MM-dd'T'HH:mm:ssZ)datetimeyes
2.5errorsRequest processing errorserror[]no
2.5.1codeError codestring()yes
2.5.2messageError descriptionstring()yes
2.6warningsRequest processing warningswarning[]no
2.6.1codeWarning codestring()yes
2.6.2messageWarning descriptionstring()yes


Note

The received uuid must be used in the technique "Request to receive the order receipt " to receive a link to download the PDF file.

...