Adds points to or subtracts points from a buyer's account.
POST
/v2/loyalty/accounts/{account_id}/adjust
Adds points to or subtracts points from a buyer's account.
Use this endpoint only when you need to manually adjust points. Otherwise, in your application flow, you call AccumulateLoyaltyPoints to add points when a buyer pays for the purchase.
The ID of the target loyalty account.
A unique string that identifies this AdjustLoyaltyPoints
request. Keys can be any valid string, but must be unique for every request.
The points to add or subtract and the reason for the adjustment. To add points, specify a positive integer. To subtract points, specify a negative integer.
Indicates whether to allow a negative adjustment to result in a negative balance. If true
, a negative balance is allowed when subtracting points. If false
, Square returns a BAD_REQUEST
error when subtracting the specified number of points would result in a negative balance. The default value is false
.