Order repeat
General information
This service allows repeating an order/pre-order (see below).
If a client wants to bring the cargo to the company terminal, they may place an order online, print the paper and bring it to the terminal. Thus they will be able to save time since the clients who placed a pre-order are served out of turn. For more information see Delovye Linii company website.
Order repeat
Method request
Request structure
Method address: https://api.dellin.ru/v2/request/repeat.json
{ "appkey":"111", "sessionID":"00000000-0000-0000-0000-000000000000", "orderID":"999999990" }
Method address: https://api.dellin.ru/v2/request/repeat.xml
<request> <appkey>111</appkey> <sessionID>00000000-0000-0000-0000-000000000000</sessionID> <orderID>999999990</orderID> </request>
Description of parameters
Request
Request | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | The application key. To get the key, register |
sessionID | Yes | string | To get the session ID, use the User Authorization method |
orderID | Yes | string | Number of the order to be repeated. The order must be placed by the current user |
Method response
Response structure
{ "metadata":{ "status":200, "generated_at":"2020-10-22 12:37:28" }, "data":{ "state":"success", "requestID":"999999999", "barcode":"41508460D0905400400000014" } }
<response> <metadata> <status>200</status> <generated_at>2020-10-22 12:37:28</generated_at> </metadata> <data> <state>success</state> <requestID>999999999</requestID> <barcode>41508460D0905400400000014</barcode> </data> </response>
Description of parameters
Response
Response | ||
---|---|---|
Parameter | Type | Description |
metadata | object | System information about the order |
metadata.status | integer | Emulated http-code of status. In case of success the code "200" returns |
metadata.generated_at | string | Date and time of the server response generation. Format: "YYYY-MM-DD HH:MM:SS" |
data | object | Information about the order |
data.state | string | Request processing status |
data.requestID | string | Number of created order or pre-order |
data.barcode | string | Barcode according to algorithm Code 128 (for pre-order) |
Error handling
The common API errors are used with the method, for errors format description and errors list see Errors of API methods.