GET prices/
...
icon | false |
---|
...
Retrieves prices and discounts
...
of products
...
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 it is page 1 | no | |
date_to | string | the last date of 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 of from the date range, by default it is equals to date_to minus 6 days | no | YYYY-MM-DD |
rpcs | list<string> | list of products RPC products, 50 maximum 50 | no | |
skus | list<string> | list of products SKU products, 50 maximum 50 | 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 } } |
...