Snag Docs logo

Update Loyalty Rule Status

Update a loyalty rule status

POSThttps://admin.snagsolutions.io/api/loyalty/rule_statuses

Update a loyalty rule status

Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Body

Body

organizationIdstring<uuid>

Unique identifier for the organization

websiteIdstring<uuid>

Unique identifier for the website

userIdstring<uuid>

Unique identifier for the user, either userId or walletAddress must be provided

walletAddressstring

Unique identifier for the wallet address, either userId or walletAddress must be provided

loyaltyRuleIdstring<uuid>required

Unique identifier for the loyalty rule

progressnumber

Progress of the loyalty rule. Clamped to the rule target (100 for percentage rules, the highest reward range end for counter rules).

Required range: x >= 0
incProgressnumber

Increment progress of the loyalty rule. The resulting progress is clamped to the rule target (100 for percentage rules, the highest reward range end for counter rules).

Required range: x >= 0

Response

application/json

200

idstring<uuid>required
websiteIdstring<uuid>required
organizationIdstring<uuid>required
userIdstring<uuid>required
loyaltyRuleIdstring<uuid>required
progressnumberrequired
createdAtstring<date-time>required
updatedAtstring<date-time>required