Поиск по сайту

API
Главная / API - Order repeat

Order repeat

Обновлено 01.08.2022
82 кб

General information

This service allows to receive the request text of a previously created order.

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
ParameterRequiredTypeDescription
appkeyYesstringThe application key. To get the key, register
sessionIDYesstring

To get the session ID, use the User Authorization method

orderIDYesstringNumber of the order, the request text of which is to be received. 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":{

   }
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2020-10-22 12:37:28</generated_at>
   </metadata>
   <data>

   </data>
</response>

Description of parameters

Response
Response
ParameterTypeDescription
metadataobjectSystem information about the order
metadata.statusinteger

Emulated http-code of status. In case of success the code "200" returns

metadata.generated_atstring

Date and time of the server response generation.

Format: "YYYY-MM-DD HH:MM:SS"

data

object

Request text of a previously created order

The structure of this parameter is the same as the structure of the request of method "Placing LTL orders".

Error handling

The common API errors are used with the method, for errors format description and errors list see Errors of API methods.