Excel Add-In for Square

Build 26.0.9770

AccumulateLoyaltyPoints

Adds points earned from a purchase to a loyalty account.

Stored Procedure Specific Information

Execute

You need to provide the loyalty account ID, accumulate points details, an idempotency key, and the location where the purchase was made.

EXECUTE AccumulateLoyaltyPoints AccountId = '5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd', AccumulatePoints = '{"points":100}', IdempotencyKey = '6412aa77-0831-4b82-b103-2011ce801ff1', LocationId = 'L4BZEJRHSFBKJ'

The AccumulatePoints parameter must be a JSON object containing either an order_id or points amount.

EXECUTE AccumulateLoyaltyPoints AccountId = '5adcb100-07f1-4ee7-b8c6-6bb9ebc474bd', AccumulatePoints = '{"order_id":"RFZfrdtm3mhO1oGzf5Cx7fEMsmGZY"}', IdempotencyKey = '6412aa77-0831-4b82-b103-2011ce801ff1', LocationId = 'L4BZEJRHSFBKJ'

Input

Name Type Required Description
AccountId String True The ID of the loyalty account to accumulate points for.
AccumulatePoints String True The points to add to the account. Provide either an order_id (if using the Orders API) or a points amount.
IdempotencyKey String True A unique string that identifies this AccumulateLoyaltyPoints request.
LocationId String True The location where the purchase was made.

Result Set Columns

Name Type Description
* String All the output mentioned in the response.
Success Boolean Whether the operation was successful.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770