Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 711 Bytes

loyalty-event-other.md

File metadata and controls

25 lines (16 loc) · 711 Bytes

Loyalty Event Other

Provides metadata when the event type is OTHER.

Structure

LoyaltyEventOther

Fields

Name Type Tags Description Getter Setter
loyaltyProgramId string Required The Square-assigned ID of the loyalty program.
Constraints: Minimum Length: 1, Maximum Length: 36
getLoyaltyProgramId(): string setLoyaltyProgramId(string loyaltyProgramId): void
points int Required The number of points added or removed. getPoints(): int setPoints(int points): void

Example (as JSON)

{
  "loyalty_program_id": "loyalty_program_id4",
  "points": 94
}