Wocart
Wocart API

Analytics

Server

Orders by stage

GET
https://api.wocart.store
/api/analytics/order-stages
X-API-Key (header)

Orders counted by the stage the merchant sees — their processing, then their shipment's delivery (the same stage as GET /api/orders/{id}) — with only the stages that have orders, how many orders need the merchant's attention, and how many are archived; archived=exclude leaves archived orders out of the stages, as the working lists do (an unknown handoff, a parcel the carrier cancelled or flagged).

Orders by stage › query Parameters

archived
​string · enum

Count archived orders in the stages (include — every order, as sales do) or leave them out (exclude — the working lists' counts)

Count archived orders in the stages (include — every order, as sales do) or leave them out (exclude — the working lists' counts)

Enum values:
include
exclude
Default: include

Orders by stage › Responses

200

Orders per stage, and the count needing attention

success
​boolean · required
​object · required

Orders placed per day

GET
https://api.wocart.store
/api/analytics/order-activity
X-API-Key (header)

Orders placed per store day (Algeria, UTC+1) over the last days days, today included, and what they are worth (price plus delivery fee), with the totals of the same number of days just before for comparison. Cancelled orders are left out. Only days with orders appear.

Orders placed per day › query Parameters

days
​string · enum

How many days the window spans

How many days the window spans

Enum values:
7
30
90
Default: 30

Orders placed per day › Responses

200

Orders and sales per day, and the previous window's totals

success
​boolean · required
​object · required