Describes a loyalty account in a loyalty program.
<- Object
Object
Describes a loyalty account in a loyalty program.
For more information, see Create and Retrieve Loyalty Accounts.
The Square-assigned ID of the loyalty program to which the account belongs.
Read only The available point balance in the loyalty account. If points are scheduled to expire, they are listed in the expiring_point_deadlines
field.
Your application should be able to handle loyalty accounts that have a negative point balance (balance
is less than 0). This might occur if a seller makes a manual adjustment or as a result of a refund or exchange.
Read only The total points accrued during the lifetime of the account.
The Square-assigned ID of the customer that is associated with the account.
The timestamp when the buyer joined the loyalty program, in RFC 3339 format. This field is used to display the Enrolled On or Member Since date in first-party Square products.
If this field is not set in a CreateLoyaltyAccount
request, Square populates it after the buyer's first action on their account (when AccumulateLoyaltyPoints
or CreateLoyaltyReward
is called). In first-party flows, Square populates the field when the buyer agrees to the terms of service in Square Point of Sale.
This field is typically specified in a CreateLoyaltyAccount
request when creating a loyalty account for a buyer who already interacted with their account. For example, you would set this field when migrating accounts from an external system. The timestamp in the request can represent a current or previous date and time, but it cannot be set for the future.
Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
UTC: 2020-01-26T02:25:34Z
Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
Read only The timestamp when the loyalty account was created, in RFC 3339 format.
Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
UTC: 2020-01-26T02:25:34Z
Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
Read only The timestamp when the loyalty account was last updated, in RFC 3339 format.
Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
UTC: 2020-01-26T02:25:34Z
Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
The mapping that associates the loyalty account with a buyer. Currently, a loyalty account can only be mapped to a buyer by phone number.
To create a loyalty account, you must specify the mapping
field, with the buyer's phone number in the phone_number
field.