GET/api/v2/loyalty/merchants/stats

Get merchant statistics including transaction counts and revenue metrics

Authentication

Send your API key in the x-api-key header on every request.

Parameters

Request parameters
FieldTypeRequiredDescription
period (query)stringNoThe analysis period (e.g., "30d", "90d", "1y")

Responses

200 — OK

Response 200 fields
FieldTypeRequiredDescription
TotalMerchantsunknownNo
ActiveMerchantsunknownNo
InactiveMerchantsunknownNo
PartnerMerchantsunknownNo
TotalTransactionsunknownNo
TotalRevenueunknownNo
AverageTransactionValueunknownNo
CategoryStatsarray of MerchantCategoryStatsResponseNo
TopMerchantsarray of TopMerchantResponseNo
TopCategoriesarray of TopCategoryResponseNo
PeriodstringNo
StartDatestring (date-time)No
EndDatestring (date-time)No
GeneratedAtstring (date-time)No

401 — Unauthorized

Response 401 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

500 — Internal Server Error

Response 500 fields
FieldTypeRequiredDescription
MessagestringNo
CodestringNo
StatusunknownNo
ValidationErrorsobjectNo
DetailsstringNo

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.