A valid request URL is required to generate request examples{
"data": [
{
"date": "2023-12-25",
"points_total": 123,
"points_earned": 123,
"points_added": 123,
"points_purchased": 123,
"points_purchased_reversed": 123,
"points_subtracted": 123,
"points_expired": 123,
"points_spent": 123,
"points_refunded": 123,
"points_returned": 123,
"points_locked": 123,
"points_unlocked": 123,
"pending_points_total": 123,
"pending_points_activated": 123,
"pending_points_canceled": 123,
"object": "<string>"
}
],
"object": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}Get card daily points report
⚠️ BETA endpoint
This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.
Returns aggregated daily points statistics for a member’s loyalty card over the given date range and resolution.
The date range is limited per resolution:
maximum 90 days for day, 12 weeks for week, 12 months for month, 4 quarters
for quarter.
curl --request GET \
--url {protocol}://{host}/v2/loyalties/programs/{programId}/members/{memberId}/cards/{cardId}/reports/daily \
--header 'Authorization: Bearer <token>' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"data": [
{
"date": "2023-12-25",
"points_total": 123,
"points_earned": 123,
"points_added": 123,
"points_purchased": 123,
"points_purchased_reversed": 123,
"points_subtracted": 123,
"points_expired": 123,
"points_spent": 123,
"points_refunded": 123,
"points_returned": 123,
"points_locked": 123,
"points_unlocked": 123,
"pending_points_total": 123,
"pending_points_activated": 123,
"pending_points_canceled": 123,
"object": "<string>"
}
],
"object": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique loyalty program identifier (format: lprg_ followed by hexadecimal characters).
Program member ID (format lmbr_[a-f0-9]+).
^lmbr_[a-f0-9]+$Unique loyalty card identifier (format: lcrd_ followed by hexadecimal characters).
Query Parameters
Start of the report date range (inclusive), in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$End of the report date range, in YYYY-MM-DD format.
^\d{4}-\d{2}-\d{2}$Aggregation resolution of the report. The allowed date range depends on the resolution: day — max 90 days, week — max 12 weeks, month — max 12 months, quarter — max 4 quarters.
day, week, month, quarter Was this page helpful?

