Discounts & Codes

Calculate discount for wallet at merchant

Checks on-chain balances server-side and calculates the total discount. Free to call: it does not consume credits. Returns tier and discount per token, but never raw balance amounts. A frozen XRPL trust line earns no tier.

get/v1/discount/check

Request

  • Base URL: https://api.insumermodel.com
  • URL: https://api.insumermodel.com/v1/discount/check
  • Auth: none required

Query parameters

walletstring

EVM wallet address (0x...)

solanaWalletstring

Solana wallet address (base58)

xrplWalletstring

XRPL wallet address (classic r-address). The base58 checksum is verified; an address that fails it returns 400.

merchantstring required

Merchant ID

Response

Discount calculation

oktrue

Example response

{
  "meta": {
    "version": "1.0"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.