Pandabase
Store APIsAnalytics

Get orders by country

GET
/stores/{storeId}/analytics/orders-by-country

Returns order counts grouped by customer country. Requires the ANALYTICS_READ scope.

Authorization

AuthorizationBearer <token>

Bearer token authentication. Pass the secret directly in the Authorization header. Token secrets start with sk_.

In: header

Path Parameters

storeId*string
Length12 <= length <= 48

Query Parameters

period?||||||
startDate?string
Formatdate-time
endDate?string
Formatdate-time
granularity?|

Header Parameters

idempotency-key?string
Length8 <= length <= 32

Response Body

application/json

application/json

curl -X GET "https://example.com/stores/stringstring/analytics/orders-by-country"
{  "ok": true,  "data": [    {      "country": "US",      "orders": 215,      "amount": 624000    },    {      "country": "GB",      "orders": 87,      "amount": 251400    },    {      "country": "DE",      "orders": 52,      "amount": 148900    }  ]}

Last updated on