Merchants
Get Chart Data
Get time-series chart data for performance visualization.
Args:
- merchant_id: The ID of the merchant (program)
- metric: The metric to chart (member_growth, redemptions, points_issued, engagement_rate)
- period: The time period (7d, 30d, 90d, custom)
- user: The authenticated user
Returns:
- ChartDataResponse with daily data points and event markers
get/v2/merchants/{merchant_id}/metrics/chart
Request
- Base URLhttps://api.loyalty.dog
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
merchant_idstring required
Query parameters
metricstring
periodstring
Headers
authorizationstring nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 7 revisions of this API.