Favorite orders
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 | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | 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 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 | ||
---|---|---|
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 | string | Request 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 | |||
---|---|---|---|
Parameter | Required | Type | Description |
appkey | Yes | string | 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 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.