redeem

Create Merchant Wallet Redemption Transaction

Changed on

Creates a transaction for the user to sign in order to redeem their Coinflow credits, with the resulting stablecoins being delivered to the merchant's settlement wallet.

post/redeem/merchant

Request

  • Base URL
    https://api-sandbox.coinflow.cash/api
  • URL
    https://api-sandbox.coinflow.cash/api/redeem/merchant
  • Auth
    API key in header x-coinflow-auth-wallet

Headers

x-device-idstring

Request body

merchantIdstring required
feePercentagenumber double

If this purchase is for a seller/submerchant where the marketplace takes a fee, this is the % fee which is taken from the subtotal amount.

jwtTokenstring

This is a token encoding the parameters for the request. Allows purchase parameters to be verified to prevent manipulation when the checkout page is presented to the user.

Response

Ok

transactionstring required

Transaction for the users wallet to sign and send.

Solana - base 58 encoded transaction, recover using: Transaction.from(base58.decode(transaction)) Near - Base 64 encoded stringified transaction, recover using: JSON.parse(Buffer.from(transaction, 'base64').toString()); Evm - Base 64 encoded stringified transaction, recover using: JSON.parse(Buffer.from(transaction, 'base64').toString());

Changes

    • warning

      deleted the header request parameter x-coinflow-auth-wallet

    • info

      the endpoint scheme security wallet was added to the API

    • info

      api operation id get-merchant-wallet-redeem-transaction removed and replaced with redeem_GetMerchantWalletRedeemTransaction