GET prices/
Info | ||
---|---|---|
| ||
Returns Retrieves prices and discounts on of products for a over the specified date range |
List of parametersParameter list
Parameter | Type | Description |
---|
Mandatory | Format | |||
---|---|---|---|---|
brand | string | brand | yes | |
spider | string | spider | yes | |
page | int | page number, by default |
page 1 | no | |
date_to | string | the last date |
from the range, by default it is equal to the current date minus 1 day | no | YYYY-MM-DD |
date_from | string | the first date |
from the date range, by default it |
equals to date_to minus 6 days | no | YYYY-MM-DD |
rpcs | list<string> | list of products RPC |
, 50 maximum |
no | ||
skus | list<string> | list of products SKU |
, 50 maximum |
no | ||||
category | string | category of products | no |
Info |
---|
The date cannot be greater than or equal to the current date. Date The date range cannot be more than 31 days. |
Example of a requestRequest example:
Paste code macro | ||||
---|---|---|---|---|
| ||||
curl -XGET "[endpoint]/prices/?spider=esteelauder.ru&brand=Estée Lauder&date_from=2019-02-09&date_to=2019-02-12&rpcs=9MTM01,RTXN01" -H "TokenAPI: [your_token]" |
Response*:
Paste code macro | ||||
---|---|---|---|---|
| ||||
{ "prices": [ { "rpc": "9MTM01", "sku": "9MTM010000", "category": "Макияж", "dates": { "2019-02-09": { "price": 4120, "sale": 0 }, "2019-02-10": { "price": 4120, "sale": 0 }, "2019-02-11": { "price": 4120, "sale": 0 }, "2019-02-12": { "price": 4120, "sale": 0 } } }, { "rpc": "RTXN01", "sku": "RTXN010001", "category": "Макияж", "dates": { "2019-02-09": { "price": 4120, "sale": 0 }, "2019-02-10": { "price": 4120, "sale": 0 }, "2019-02-11": { "price": 4120, "sale": 0 }, "2019-02-12": { "price": 4120, "sale": 0 } } } ], "meta": { "total_items": 2, "page": 1, "total_pages": 1 } } |
...