OptionaldefaultLocationId: stringAccumulate (add) points to a loyalty account
Loyalty account ID
Accumulation options
Loyalty event
Adjust points on a loyalty account (add or subtract)
Loyalty account ID
Points to add (positive) or subtract (negative)
Optionalreason: string
Reason for adjustment
OptionalidempotencyKey: stringLoyalty event
Calculate points that would be earned for an order
Loyalty program ID
Order ID to calculate points for
Points that would be earned
Get the loyalty program for the current location
OptionalprogramId: string
Optional program ID (uses main program if not provided)
Loyalty program details
Redeem a reward
Loyalty account ID
Reward tier ID to redeem
OptionalorderId: string
Optional order ID to apply reward to
OptionalidempotencyKey: string
Covers both the create and redeem calls (the redeem key is derived from it); reuse it when retrying
Created reward
Search for loyalty accounts
Optionaloptions: { cursor?: string; customerId?: string; limit?: number; phoneNumber?: string }
Search options
Matching loyalty accounts
Loyalty service for managing Square loyalty programs
Example