Get Totals

Gets the fees, quotes, and totals for a particular checkout.

Authentication

x-coinflow-auth-session-keystring
The session key generated for the end user - see https://docs.coinflow.cash/api-reference/api-reference/authentication/get-session-key
OR
x-coinflow-auth-walletstring
The web3 wallet of the end user - see https://docs.coinflow.cash/api-reference/api-reference/authentication/get-session-key
x-coinflow-auth-blockchainstring
The blockchain associated with the end user - see https://docs.coinflow.cash/api-reference/api-reference/authentication/get-session-key

Path parameters

merchantIdstringRequired

Request

This endpoint expects an object.
subtotalobjectRequired
jwtTokenstringOptional
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.
rentobjectOptional

(Solana only) if your transaction requires a known amount of Rent to be paid, you can pass it here.

transactionDataobjectOptional

(EVM only) if you want to execute an EVM transaction on a successful purchase, you can pass a transaction request here.

Gas fees for the transaction will be automatically calculated and added to the total charged to the customer. Optionally the merchant can opt to pay for these gas fees.

settlementTypeenumOptional
stellarTransactionstringOptional

(Stellar only) Base64 XDR transaction string for executing a merchant contract call for a purchase.

For transaction purchases, pass the base64 XDR string created using .toXDR() on a transaction built with generated TypeScript bindings (e.g., NftClientWrapper.buildNftPurchaseTx).

For direct USDC transfers (no merchant transaction), omit this field or pass undefined.

Gas fees for the transaction will be automatically calculated and added to the total charged to the customer.

binstringOptional
The bin of the card to get the exact fees
creditsBalanceobjectOptional
usdcBalanceobjectOptional
presentmentenumOptional
customPayInFeeslist of objectsOptional

Response

Ok
cardobject
achobject
fasterPaymentsobject
sepaobject
pixobject
usdcobject
googlePayobject
applePayobject
creditsobject
cryptoobject
wireobject
cashAppobject
apaobject
interacobject