Gift Card Analytics
Get Analytics Trends
Return time-series transaction data bucketed by granularity.
The aggregation groups transactions by day in MongoDB, then Python re-buckets the daily totals into week/month windows. This avoids MongoDB version-specific $dateTrunc syntax.
get/v2/giftcards/programs/{programId}/analytics/trends
Request
- Base URLhttps://api.loyalty.dog
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
programIdstring required
Example:5eb7cf5a86d9755df3a6c593
Query parameters
periodstring nullable
granularitystring
fromstring nullable
tostring nullable
cardIdstring
Example:5eb7cf5a86d9755df3a6c593
Headers
X-Eposn-Customer-Tokenstring nullable
X-Eposn-Merchant-Tokenstring nullable
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 7 revisions of this API.