Snag Docs logo

Delete a loyalty currency

Delete a loyalty currency

DELETEhttps://admin.snagsolutions.io/api/loyalty/currencies/{id}

Delete a loyalty currency

Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Path Parameters

idstringrequired

Response

application/json

200

idstring<uuid>required

Unique identifier for the loyalty currency

organizationIdstring<uuid>required

Unique identifier for the organization

websiteIdstring<uuid>required

Unique identifier for the website

imageUrlstringrequired

URL of the image

namestringrequired

Name of the loyalty currency

symbolstringrequired

Symbol representing the loyalty currency

decimalsnumberrequired

Number of decimal places for the currency

Required range: x >= 0
createdByIdstring<uuid>required

ID of the user who created the currency

createdAtstring<date-time>required

Timestamp when the currency was created

updatedAtstring<date-time>required

Timestamp when the currency was last updated

apiGetUrlstringrequired

API GET URL for fetching data

apiGetTransactionEntryUrlstringrequired

API GET URL for fetching transaction entry data

apiPostUrlstringrequired

API POST URL for sending data

apiAuthType"none" | "basic" | "bearer" | "apiKey"required

Type of authentication used for API

Allowed values: "none" | "basic" | "bearer" | "apiKey"
apiAuthKeystringrequired

Authentication key for API

apiAuthValuestringrequired

Authentication value for API

sortIdnumberrequired

Sorting identifier

deletedAtstring<date-time>required

Timestamp when the currency was deleted, if applicable

isTokenRewardCurrencyboolean

True for LoyaltyCurrency rows auto-created by resolveTokenReward (Option 1 hidden currency backing a token-reward rule). Excluded from list responses by default; opt in via excludeTokenRewardCurrencies=false on the list endpoint.