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

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

Order repeat

Обновлено 04.10.2021
84 кб

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 example

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 to be repeated. The order must be placed by the current user

Method response

Response example

{
   "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
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"

dataobject

Information about the order

data.statestringRequest processing status
data.requestIDstringNumber of created order or pre-order
data.barcodestringBarcode 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.