For developers / Api documentation / Methods /

Report for Store

Back

Endpoint

GET https://api.repricer.online/v1/stores/{id}/report

Headers

Name Type Description
Authorization string token.
Content-Type string application/json

Params

Name Type Description
id integer Store ID
includes string Reports that may be included, separated by a comma (see a model)
dateStart date Report date start (optional)
dateEnd date Report date end (optional)

Request example

GET /api/v1/stores/1/report?includes=products,productsByPeriod,orders,tasks&dateStart=2001-01-01&dateEnd=2018-12-30 HTTP/1.1
Authorization: Bearer PUT YOUR TOKEN HERE
Content-Type: application/json

Response example

HTTP/1.1 200 OK
Content-Type: application/json
{
 "status": 200,
 "data": {
     "products": {
         "all": 234,
         "active": 180,
         "active_updated": 180,
         "needs_min_max": 180,
         "with_min_price": 0,
         "with_max_price": 0,
         "listing_first": 3,
         "listing_first_diff": 1,
         "listing_in_top3": 35,
         "listing_in_top3_diff": 1,
         "listing_no_concurrency": 0,
         "buybox_winner": 169,
         "buybox_winner_diff": 1,
         "buybox_but_low_stock": 0,
         "buybox_eligible": 10,
         "buybox_eligible_diff": 1,
         "buybox_not_eligible": 20,
         "buybox_eligible_not_winner": 0,
         "repricing_disabled": 0
     },
     "productsByPeriod": [
         {
             "date": "2018-07-23",
             "hour": 0,
             "active_products": 178,
             "active_products_updated": 131,
             "listing_first": 4,
             "listing_first_diff": 1,
             "listing_in_top3": 31,
             "listing_in_top3_diff": 1,
             "buybox_winner": 18,
             "buybox_winner_diff": 1,
             "buybox_eligible": 1,
             "buybox_eligible_diff": 1
         }
     ],
     "tasks": {
         "first_products_loading": {
             "running": true
         },
         "products_loading": {
             "running": true,
             "loaded": 100
         }
     }
}