Skip to content

Store Analytics

Per-store GMV and order metrics for a date range.

Endpoint

GET /v1/products/audit/store-analytics/

Authentication

Required (Admin role).

Query Parameters

Parameter Type Required Description
start_date string No Inclusive start date YYYY-MM-DD (default: 2000-01-01)
end_date string No Inclusive end date YYYY-MM-DD (default: today)
store_id int No Filter by store

Response (200)

{
  "period": {
    "start_date": "2025-12-01",
    "end_date": "2025-12-20"
  },
  "data": [
    {
      "store_id": 12,
      "store_name": "Electro World",
      "gmv": 7500.50,
      "order_count": 42,
      "average_order": 178.58,
      "paid_to_store": 0,
      "not_yet_paid": 6375.42,
      "store_remaining": 6375.42,
      "records": 42
    }
  ]
}

Notes: - GMV sums paid, non-deleted orders; average is GMV / order count. - Paid/unpaid values are placeholders until payout tracking is added. - Dates are inclusive; end_date includes data through the specified day.