Adds points to a loyalty account.
Only a positive amount can be added using the earn points endpoint. To adjust an account's balance for a negative amount, use Adjust Points.
You can only call this method when authenticated as a Wix app or Wix user identity.
Loyalty account ID.
Amount of points to earn. Must be a positive, whole number.
Min: 1
Max: 9999999
Description of how the points were earned.
Max: 100 characters
ID of the app that initiated the transaction.
If points were earned manually, then the appId
is the Loyalty app's
wixAppId
of 553c79f3-5625-4f38-b14b-ef7c0d1e87df
. If points were earned in an automatic event,
then the appId
is from that automation's sourceAppId
.
Unique string identifier generated by the app. Wix uses this identifier to recognize subsequent retries of the same request.
Please use GUID
format.
Activity type.
If points were earned through automation it should be set to trigger key.
Order id which was source of this transaction.
Followed social media details.
Updated loyalty account.
Transaction ID associated with the points earned.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.