Customer With Summary Loyalty Referrals
All of:
Customer Response Data
Attributes Description id
string
The ID of an existing customer that will be linked to redemption in this request.
source_id
string
A unique identifier of the customer who validates a voucher. It can be a customer ID or email from a CRM system, database, or a third-party service. If you also pass a customer ID (unique ID assigned by Voucherify), the source ID will be ignored.
summary
Customer Summary loyalty
Customer Loyalty referrals
Customer Referrals system_metadata
object
Object used to store system metadata information.
created_at
string
Timestamp representing the date and time when the customer was created. The value is shown in the ISO 8601 format.
Example: 2022-08-30T06:32:07.380Z
updated_at
string
Timestamp representing the date and time when the customer was updated. The value is shown in the ISO 8601 format.
Example: 2022-08-31T06:32:07.380Z
assets
object
Contains information about the customer’s cockpit.
Attributes Description cockpit_url
string
Customer’s cockpit URL address.
object
string
The type of the object represented by JSON.
Available values:
customer
- Customer Base
Customer Summary
Attributes | Description |
---|---|
redemptions | See: Customer Summary Redemptions |
orders | See: Customer Summary Orders |
Customer Loyalty
Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
points | Customer’s loyalty points minus expired for all loyalty cards which the customer has. | ||||||||||||
referred_customers | Total number of customers referred by the customer. | ||||||||||||
campaigns | Contains campaigns with details about point balances and how many customers were referred by the customer.
|
Customer Referrals
Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
total | Total number of times this customer received a referral, i.e. was referred by another customer. | ||||||||||||
campaigns | Contains an array of campaigns that served as the source of a referral for the customer. Array of:Customer Referrals Campaigns Item
|
Customer Base
Attributes | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | Customer’s first and last name. | ||||||||||||||
description | An arbitrary string that you can attach to a customer object. | ||||||||||||||
email | Customer’s email address. | ||||||||||||||
phone | Customer’s phone number. This parameter is mandatory when you try to send out codes to customers via an SMS channel. | ||||||||||||||
birthday |
| ||||||||||||||
birthdate | Customer’s birthdate; format YYYY-MM-DD. | ||||||||||||||
address | Customer’s address.
| ||||||||||||||
metadata | 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. |
Customer Summary Redemptions
Attributes | Description | ||||||
---|---|---|---|---|---|---|---|
total_redeemed | Total number of redemptions made by the customer. | ||||||
total_failed | Total number of redemptions that failed. | ||||||
total_succeeded | Total number of redemptions that succeeded. | ||||||
total_rolled_back | Total number of redemptions that were rolled back for the customer. | ||||||
total_rollback_failed | Total number of redemption rollbacks that failed. | ||||||
total_rollback_succeeded | Total number of redemption rollbacks that succeeded. | ||||||
gift | Summary of gift card credits.
| ||||||
loyalty_card | Summary of loyalty points.
|
Customer Summary Orders
Attributes | Description |
---|---|
total_amount | The total amount spent by the customer. The value is multiplied by 100 to represent 2 decimal places. For example
|
total_count | Total number of orders made by the customer. |
average_amount | Average amount spent on orders.
|
last_order_amount | Amount spent on last order. The value is multiplied by 100 to represent 2 decimal places. For example
|
last_order_date | Timestamp representing the date and time of the customer’s last order in ISO 8601 format. Example: 2022-08-30T11:51:08.029Z |