Skip to main content
POST
/
api
/
loyalty
/
reset
Reset Loyalty Currency
curl --request POST \
  --url https://admin.snagsolutions.io/api/loyalty/reset \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "type": "loyalty_reset_balances",
  "loyaltyCurrencyId": "123e4567-e89b-12d3-a456-426614174000",
  "organizationId": "123e4567-e89b-12d3-a456-426614174222",
  "websiteId": "123e4567-e89b-12d3-a456-426614174111"
}'
{
  "success": true
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

type
enum<string>
required
Available options:
loyalty_reset_balances,
loyalty_reset_balances_data_and_rules,
loyalty_reset_balances_data_not_rules
loyaltyCurrencyId
string<uuid>
required

UUID of the loyalty currency to reset

Example:

"123e4567-e89b-12d3-a456-426614174000"

organizationId
string<uuid>

UUID of the organization (optional, converted to lowercase)

Example:

"123e4567-e89b-12d3-a456-426614174222"

websiteId
string<uuid>

UUID of the website (optional, converted to lowercase)

Example:

"123e4567-e89b-12d3-a456-426614174111"

Response

200

success
boolean
required
I