Possible dates of cargo handover at the terminal
General information
The service allows getting the list of possible dates of cargo handover at the terminal. The service is available for unauthorized users.
Possible dates of cargo handover at the terminal
Method request
Request example
Method address: https://api.dellin.ru/v2/request/terminal/dates.json
{ "appkey":"00000000-0000-0000-0000-000000000000", "sessionID":"00000000-0000-0000-0000-000000000000", "delivery":{ "derival":{ "terminalID":310 } } }
Method address: https://api.dellin.ru/v2/request/terminal/dates.xml
<request> <appkey>00000000-0000-0000-0000-000000000000</appkey> <sessionID>00000000-0000-0000-0000-000000000000</sessionID> <delivery> <derival> <terminalID>310</terminalID> </derival> </delivery> </request>
Description of parameters
Request
Request | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | Application key. To get the key, register |
delivery | Yes | object | Information on delivery |
delivery.derival | Yes | Derival | Information on shipping from the terminal |
Derival
Derival | |||
---|---|---|---|
Parameter | Required | Type | Description |
terminalID | Yes | integer | Terminal ID from "Terminals" directory |
Method response
Response example
{ "metadata":{ "status":200, "generated_at":"2020-06-03 09:06:54" }, "data":{ "dates":[ "2020-06-04", "2020-06-05", "2020-06-06", "2020-06-07", "2020-06-08", "2020-06-09", "2020-06-10" ] } }
<response> <metadata> <status>200</status> <generated_at>2020-06-03 09:06:54</generated_at> </metadata> <data> <dates>2020-06-04</dates> <dates>2020-06-05</dates> <dates>2020-06-06</dates> <dates>2020-06-07</dates> <dates>2020-06-08</dates> <dates>2020-06-09</dates> <dates>2020-06-10</dates> </data> </response>
Description of parameters
Response
Response | ||
---|---|---|
Parameter | Type | Description |
metadata | object | System information |
metadata.status | integer | Emulated status http-code. If successful, code 200 is returned |
metadata.generated_at | string | Server response date and time. Format: YYYY-MM-DD HH:MM:SS |
data | object | Information on possible dates of order completion |
data.dates | array of strings | A list of possible dates of cargo handover at the terminal Format: YYYY-MM-DD |
Error handling
The common API errors are used with the method, for errors format description and errors list see Errors of API methods.