Receiving orders in finished photos


 

The method is used to get a list of orders with links to archives ready for download.


Request for a list of orders with finished photos

In order to use this process, a POST request should be sent to URL:

Environment

URL

testing

https://api.edu.cdek.ru/v2/photoDocument

production

https://api.cdek.ru/v2/photoDocument

Request Parameters

Must be sent in JSON format (Content-Type: application/json).

The following fields are supported:

No.Field nameDescriptionField type

Mandatory

(yes/no)

1periodBegin

Search period start

dateTime

yes , if not passed orders

2periodEnd

End of search period

dateTime

yes , if not passed orders

3orders

Order list

[ ]

yes , if not passed periodBegin and periodEnd

3.1order_uuidOrder identifier in CDEKUUID

yes , if not passed orders and not passed cdek_number

3.2cdek_numberCDEK order numberstring

yes , if not passed orders and not passed order_uuid

* If both the period and the list of orders are specified, then the period is ignored.


Response for a list of orders with finished photos

The response is returned in JSON format:

No.Field nameDescriptionField type

Mandatory

(yes/no)

1orders

List of orders ready for download

[ ]yes
1.1order_uuidOrder identifier in CDEKUUIDyes
1.2cdek_numberCDEK order numberstringyes
1.3link

Link to download archive with photos

string (1024)yes
2errorsRequest processing errorserror[]no
2.1codeError codestring()yes
2.2messageError descriptionstring()yes
3warningsRequest processing warningswarning[]no
3.1codeWarning codestring()yes
3.2messageWarning descriptionstring()yes



{
  "periodBegin": "2021-01-21T02:15:47.818Z",
  "periodEnd": "2021-01-21T02:15:47.818Z"
}


{
    "orders": [
        {
            "cdek_number": "1107546886",
            "link": "https://photo-docs.production.cdek.ru/archives/PpB5LdIuphBM3SMy",
            "order_uuid": "72753031-c3b5-447d-8ae7-98ac3e36b102"
        },
        {
            "cdek_number": "1107547001",
            "link": "https://photo-docs.production.cdek.ru/archives/StmFQSqvd0wk",
            "order_uuid": "72753031-6485-4c55-a082-7c21714d3703"
        }
    ]
}


 

© 2000—2024, Курьерская компания СДЭК