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

API
Главная / API - Favorite orders

Favorite orders

Обновлено 19.01.2022
94 кб

General information

The service allows adding orders to favorites and deleting orders from favorites.

Favorite orders

Method request

Request stucture

Method address: https://api.dellin.ru/v2/favorites/add.json

{   
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "orderID":"345235"
}

Method address: https://api.dellin.ru/v2/favorites/add.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionid>00000000-0000-0000-0000-000000000000</sessionid>
   <orderid>345235</orderid>
</request>

Description of parameters

Request
Request
ParameterRequiredTypeDescription
appkeyYesstringApplication key. To get the key, register

sessionID

YesstringTo get the session ID, use the User Authorization method

orderID

YesstringNumber of the order that needs to be added to favorites

Method response

Response structure

{
   "metadata":{
      "status":200,
      "generated_at":"2020-04-01 07:47:32"
   },
   "data":"ok"
}
<response>
   <metadata>
      <status>200</status>
      <generated_at>2020-04-01 07:47:32</generated_at>
   </metadata>
   <data>ok</data>
</response>

Description of parameters

Response
Response
ParameterTypeDescription
metadataobjectSystem information
metadata.statusintegerEmulated status http-code. If successful, code 200 is returned
metadata.generated_atstring

Server response date and time.

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

datastringRequest status. Possible value - "ok"

Error handling

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

Deleting order from favorites

Method request

Request structure

Method address: https://api.dellin.ru/v2/favorites/delete.json

{   
   "appkey":"00000000-0000-0000-0000-000000000000",
   "sessionID":"00000000-0000-0000-0000-000000000000",
   "orderID":"345235"
}

Method address: https://api.dellin.ru/v2/favorites/delete.xml

<request>
   <appkey>00000000-0000-0000-0000-000000000000</appkey>
   <sessionid>00000000-0000-0000-0000-000000000000</sessionid>
   <orderid>345235</orderid>
</request>

Description of parameters

Request
Request
ParameterRequiredTypeDescription
appkeyYesstringApplication key. To get the key, register

sessionID

YesstringTo get the session ID, use the User Authorization method

orderID

YesstringNumber of the order that needs to be added to favorites

Method response

Response of the method "Deleting order from favorites" is similar to the response of the method "Adding order to favorites"

Error handling

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