Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This technique is used to create a barcode cargo package for the order/orders in the PDF format.
To avoid the platform’s overload, don’t send more than 100 order numbers in one request.

Request to create barcode CP for the order

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 copies. Default value 1

integer

no

3

format

Printing format. May take on values: A4, A5, A6 (A is a Latin letter).

Default value A4

string(2)

no

Answer to create barcode CP for the order

The request body is returned in the standart format where entity is:

No.

Field name

Description

Field type

Mandatory (yes/no)

1uuid

Identifier of the barcode CP in the CDEK IS

UUIDno


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

Sample Request
{
    "orders": [
        {
            "order_uuid": "72753031-ebf7-4f15-8d23-dc6951808d69",
            "cdek_number": "1114167721"
        }
    ]
}
Sample Response
{
    "entity": {
        "uuid": "72753031-e0c4-4d19-9e5d-b398ec9dd4cb"
    },
    "requests": [
        {
            "request_uuid": "72753031-ff3d-4d58-89d8-8e4249e903d3",
            "type": "CREATE",
            "state": "ACCEPTED",
            "date_time": "2020-02-10T12:10:33Z",
            "errors": [],
            "warnings": []
        }
    ]
}


  • No labels