GET
/api/v2/loyalty/merchants/statsGet merchant statistics including transaction counts and revenue metrics
Authentication
Send your API key in the x-api-key header on every request.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| period (query) | string | No | The analysis period (e.g., "30d", "90d", "1y") |
Responses
200 — OK
| Field | Type | Required | Description |
|---|---|---|---|
| TotalMerchants | unknown | No | |
| ActiveMerchants | unknown | No | |
| InactiveMerchants | unknown | No | |
| PartnerMerchants | unknown | No | |
| TotalTransactions | unknown | No | |
| TotalRevenue | unknown | No | |
| AverageTransactionValue | unknown | No | |
| CategoryStats | array of MerchantCategoryStatsResponse | No | |
| TopMerchants | array of TopMerchantResponse | No | |
| TopCategories | array of TopCategoryResponse | No | |
| Period | string | No | |
| StartDate | string (date-time) | No | |
| EndDate | string (date-time) | No | |
| GeneratedAt | string (date-time) | No |
401 — Unauthorized
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
500 — Internal Server Error
| Field | Type | Required | Description |
|---|---|---|---|
| Message | string | No | |
| Code | string | No | |
| Status | unknown | No | |
| ValidationErrors | object | No | |
| Details | string | No |
Example request
curl -X GET "https://{base_url}/api/v2/loyalty/merchants/stats" \
-H "x-api-key: YOUR_API_KEY"This page is generated from the live OpenAPI specification and always matches the current API.