Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.snagsolutions.io/llms.txt

Use this file to discover all available pages before exploring further.

Snag Solutions - API Docs (v 0.1)


What’s Changed


GET /api/loyalty/currencies
Parameters:
Added: excludeTokenRewardCurrencies in query
Exclude LoyaltyCurrency rows auto-created by token-reward rules (isTokenRewardCurrency=true). Defaults to true so admin pickers never see them; surfaces that need to render an existing token-reward rule pass false.
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Changed property data (array) Changed items (object):
      Schema for a loyalty currency
      • Added property isTokenRewardCurrency (boolean)
        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.
POST /api/loyalty/currencies
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Added property isTokenRewardCurrency (boolean)
      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.
DELETE /api/loyalty/currencies/
Return Type:
Changed response : 200 OK
200
  • Changed content type : application/json
    • Added property isTokenRewardCurrency (boolean)
      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.

Result


API changes are backward compatible