curl --request GET \
--url https://{cluster}.voucherify.io/v1/customers/{customerId}/activities \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "evcus_0c150c51730c6b60b1",
"type": "customer.confirmed",
"data": {
"data": {
"customer": {
"summary": {
"redemptions": {
"total_redeemed": 123,
"total_failed": 123,
"total_succeeded": 123,
"total_rolled_back": 123,
"total_rollback_failed": 123,
"total_rollback_succeeded": 123,
"gift": {
"redeemed_amount": 0,
"amount_to_go": 0
},
"loyalty_card": {
"redeemed_points": 123,
"points_to_go": 123
}
},
"orders": {
"total_amount": 123,
"total_count": 123,
"average_amount": 123,
"last_order_amount": 123,
"last_order_date": "2022-08-30T11:51:08.029Z"
}
},
"loyalty": {
"points": 123,
"referred_customers": 123,
"campaigns": {}
},
"loyalty_memberships": [
{
"program_id": "<string>",
"member": {
"id": "<string>",
"status": "ACTIVE",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"cards": [
{
"card_definition_id": "<string>",
"card_id": "<string>",
"points": 123,
"pending_points": 123,
"next_activation_at": "2023-12-25",
"next_expiration_at": "2023-12-25"
}
],
"tiers": [
{
"tier_id": "<string>",
"tier_structure_id": "<string>",
"card_id": "<string>",
"card_definition_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
]
}
],
"referrals": {
"total": 123,
"campaigns": [
{
"campaign_id": "camp_rRsfatlwN7unSeUIJDCYedal",
"referrer_id": "cust_sehkNIi8Uq2qQuRqSr7xn4Zi",
"related_object_id": "r_0b9d4cc4aa164dd073",
"related_object_type": "<string>",
"date": "2022-08-30T10:19:39.196Z"
}
]
},
"object": "customer",
"id": "<string>",
"source_id": "<string>",
"system_metadata": {},
"created_at": "2022-08-30T06:32:07.380Z",
"updated_at": "2022-08-31T06:32:07.380Z",
"assets": {
"cockpit_url": "<string>",
"cockpit_preference_center_url": "<string>"
},
"name": "<string>",
"description": "<string>",
"email": "<string>",
"phone": "<string>",
"birthday": "2023-12-25",
"birthdate": "2023-12-25",
"address": {
"city": "<string>",
"state": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"country": "<string>",
"postal_code": "<string>"
},
"metadata": {}
},
"unconfirmed_customer": {
"id": "ucust_1qa70mVfYkl11Ab0ZxDPdWNa"
}
},
"event_source": {
"channel": "API",
"user": {
"id": "user_xyzfghSTprSTUVWXYlk6tuvXYst7FGH7"
},
"api_key": {
"name": "<string>",
"app_id": "1XXXX5XX-0XXX-XXXb-X7XX-XX2XXaXXX6XX"
}
}
},
"created_at": "2022-08-30T09:14:07.660Z",
"group_id": "v-1f36113948e50fc4ge"
}
],
"total": 123
}List Customer Activities
This endpoint represents the deprecated version of the API responsible for listing customer activities and we do not recommend using it. Developers are encouraged to migrate to the latest version to take advantage of the latest enhancements and bug fixes. No updates will be provided to the deprecated endpoint.
Retrieve customer activities.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/customers/{customerId}/activities \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "evcus_0c150c51730c6b60b1",
"type": "customer.confirmed",
"data": {
"data": {
"customer": {
"summary": {
"redemptions": {
"total_redeemed": 123,
"total_failed": 123,
"total_succeeded": 123,
"total_rolled_back": 123,
"total_rollback_failed": 123,
"total_rollback_succeeded": 123,
"gift": {
"redeemed_amount": 0,
"amount_to_go": 0
},
"loyalty_card": {
"redeemed_points": 123,
"points_to_go": 123
}
},
"orders": {
"total_amount": 123,
"total_count": 123,
"average_amount": 123,
"last_order_amount": 123,
"last_order_date": "2022-08-30T11:51:08.029Z"
}
},
"loyalty": {
"points": 123,
"referred_customers": 123,
"campaigns": {}
},
"loyalty_memberships": [
{
"program_id": "<string>",
"member": {
"id": "<string>",
"status": "ACTIVE",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"cards": [
{
"card_definition_id": "<string>",
"card_id": "<string>",
"points": 123,
"pending_points": 123,
"next_activation_at": "2023-12-25",
"next_expiration_at": "2023-12-25"
}
],
"tiers": [
{
"tier_id": "<string>",
"tier_structure_id": "<string>",
"card_id": "<string>",
"card_definition_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
]
}
],
"referrals": {
"total": 123,
"campaigns": [
{
"campaign_id": "camp_rRsfatlwN7unSeUIJDCYedal",
"referrer_id": "cust_sehkNIi8Uq2qQuRqSr7xn4Zi",
"related_object_id": "r_0b9d4cc4aa164dd073",
"related_object_type": "<string>",
"date": "2022-08-30T10:19:39.196Z"
}
]
},
"object": "customer",
"id": "<string>",
"source_id": "<string>",
"system_metadata": {},
"created_at": "2022-08-30T06:32:07.380Z",
"updated_at": "2022-08-31T06:32:07.380Z",
"assets": {
"cockpit_url": "<string>",
"cockpit_preference_center_url": "<string>"
},
"name": "<string>",
"description": "<string>",
"email": "<string>",
"phone": "<string>",
"birthday": "2023-12-25",
"birthdate": "2023-12-25",
"address": {
"city": "<string>",
"state": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"country": "<string>",
"postal_code": "<string>"
},
"metadata": {}
},
"unconfirmed_customer": {
"id": "ucust_1qa70mVfYkl11Ab0ZxDPdWNa"
}
},
"event_source": {
"channel": "API",
"user": {
"id": "user_xyzfghSTprSTUVWXYlk6tuvXYst7FGH7"
},
"api_key": {
"name": "<string>",
"app_id": "1XXXX5XX-0XXX-XXXb-X7XX-XX2XXaXXX6XX"
}
}
},
"created_at": "2022-08-30T09:14:07.660Z",
"group_id": "v-1f36113948e50fc4ge"
}
],
"total": 123
}Authorizations
Scopes
Path Parameters
Query Parameters
A cursor for pagination. starting_after is a date-time value that defines your place in the list based on created_at property from the activity object. For instance, if you make a list request and receive 100 objects, ending with an object created at 2020-05-24T13:43:09.024Z, your subsequent call can include starting_after=2020-05-24T13:43:09.024Z in order to fetch the next page of the list.
"2023-12-22T10:13:06.487Z"
Through this parameter you can control a type of campaign by which Voucherify will filter related customer's activity. API will return only records related to that given type. Allowed values: DISCOUNT_COUPONS, REFERRAL_PROGRAM, GIFT_VOUCHERS, PROMOTION, LOYALTY_PROGRAM LOYALTY_PROGRAM is the campaign type for legacy loyalty (loyalty card campaigns), not v2/loyalties programs.
PROMOTION, GIFT_VOUCHERS, REFERRAL_PROGRAM, DISCOUNT_COUPONS, LOYALTY_PROGRAM Response
Returns a dictionary with customer activities.
Response body schema for GET v1/customers/{customerId}/activities.

