Skip to main content
square.calculateLoyaltyPoints calculates the number of points a buyer can earn from a purchase.

Example

automations/square-calculate-loyalty-points.automation.ts

Inputs

Every input accepts a compatible signal. It requires LOYALTY_READ. Use the official CalculateLoyaltyPoints reference for provider field semantics and limits.

Output

Returns the official Square.CalculateLoyaltyPointsResponse response as a codec-safe object. Square integer money amounts remain bigint values.