Get Customer
curl --request GET \
--url https://{cluster}.voucherify.io/v1/customers/{customerId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "cust_T849EgzNVVmn5icJ2FAkT2rO",
"source_id": "alice.morgan@email.com",
"name": "Alice Morgan",
"email": "alice.morgan@email.com",
"address": null,
"summary": {
"redemptions": {
"total_redeemed": 2,
"total_failed": 0,
"total_succeeded": 2,
"total_rolled_back": 0,
"total_rollback_failed": 0,
"total_rollback_succeeded": 0,
"gift": {
"redeemed_amount": 0,
"amount_to_go": 0
},
"loyalty_card": {
"redeemed_points": 0,
"points_to_go": 3303
}
},
"orders": {
"total_amount": 203900,
"total_count": 2,
"average_amount": 101950,
"last_order_amount": 3900,
"last_order_date": "2022-07-26T14:59:52.814Z"
}
},
"loyalty": {
"points": 3303,
"referred_customers": 0,
"campaigns": {
"Summer Campaign": {
"points": 3303,
"referred_customers": 0
}
}
},
"referrals": {
"total": 0,
"campaigns": []
},
"system_metadata": {},
"created_at": "2022-02-07T08:28:23.644Z",
"updated_at": "2022-07-26T14:59:59.806Z",
"assets": {
"cockpit_url": "{{internalVoucherifyURL}}"
},
"object": "customer"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find customer with id cust_sehkNIi8Uq2qQuRqSr7xn4Z",
"request_id": "v-0b4c590350857970df",
"resource_id": "cust_sehkNIi8Uq2qQuRqSr7xn4Z",
"resource_type": "customer"
}Get Customer
Retrieves details of a given customer by customer’s id or source_id.
GET
/
v1
/
customers
/
{customerId}
Get Customer
curl --request GET \
--url https://{cluster}.voucherify.io/v1/customers/{customerId} \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"id": "cust_T849EgzNVVmn5icJ2FAkT2rO",
"source_id": "alice.morgan@email.com",
"name": "Alice Morgan",
"email": "alice.morgan@email.com",
"address": null,
"summary": {
"redemptions": {
"total_redeemed": 2,
"total_failed": 0,
"total_succeeded": 2,
"total_rolled_back": 0,
"total_rollback_failed": 0,
"total_rollback_succeeded": 0,
"gift": {
"redeemed_amount": 0,
"amount_to_go": 0
},
"loyalty_card": {
"redeemed_points": 0,
"points_to_go": 3303
}
},
"orders": {
"total_amount": 203900,
"total_count": 2,
"average_amount": 101950,
"last_order_amount": 3900,
"last_order_date": "2022-07-26T14:59:52.814Z"
}
},
"loyalty": {
"points": 3303,
"referred_customers": 0,
"campaigns": {
"Summer Campaign": {
"points": 3303,
"referred_customers": 0
}
}
},
"referrals": {
"total": 0,
"campaigns": []
},
"system_metadata": {},
"created_at": "2022-02-07T08:28:23.644Z",
"updated_at": "2022-07-26T14:59:59.806Z",
"assets": {
"cockpit_url": "{{internalVoucherifyURL}}"
},
"object": "customer"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find customer with id cust_sehkNIi8Uq2qQuRqSr7xn4Z",
"request_id": "v-0b4c590350857970df",
"resource_id": "cust_sehkNIi8Uq2qQuRqSr7xn4Z",
"resource_type": "customer"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Response
Returns a customer object if a valid identifier was provided.
Response body schema for GET v1/customers/{customerId}.
A set of custom key/value pairs that you can attach to a customer. The metadata object stores all custom attributes assigned to the customer. It can be useful for storing additional information about the customer in a structured format. This metadata can be used for validating whether the customer qualifies for a discount or it can be used in building customer segments.

