Purchasing API
...
Purchasing API Docs
Stats
Get order stats for a customer
GET
/api/v1/purchases/stats/order/sku
Header Parameters
Site-Id
*
Query Parameters
spark_customer_id
*
start_date
*
end_date
*
date_period_type
*
Responses
200
OK
Example
[{"sku":"SKU999","periods":[{"period_start_date":"2020-01-01T00:00:00Z","sold_qty":8},{"period_start_date":"2020-02-01T00:00:00Z","sold_qty":2}]},{"sku":"SKU888","periods":[{"period_start_date":"2020-01-01T00:00:00Z","sold_qty":1},{"period_start_date":"2020-03-01T00:00:00Z","sold_qty":8}]}]
sku
periods