Quote payment fees
PaymentsAPI REFERENCE

Quote payment fees

POST/v1/payments/quote

Returns the platform fee, estimated network fee, and net amount for a payment of `amount` in `asset`, without creating anything. All monetary fields are integer strings in the asset's smallest unit.

Example request

A minimal request you can copy and run.

curl -X POST https://api.suward.com/v1/payments/quote \
-H "X-Api-Key: $SUWARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"asset":"USDT_ETHEREUM","amount":"100000000","networkFeePayer":"merchant","serviceFeePayer":"merchant"}'

Request body

NameTypeRequiredDescription
assetyesAsset identifier (see GET /v1/assets for the live list).
amountstringyesMerchant base amount, integer string in the asset's smallest unit. Example: "5000000" = 5 USDT. The response returns the derived gross (what the customer pays) and netAmount (what the merchant receives).
networkFeePayernoWho bears the network (gas) fee. Default merchant.
serviceFeePayernoWho bears the platform (service) fee. Default merchant.
Request · JSON
{
"asset": "USDT_ETHEREUM",
"amount": "100000000",
"networkFeePayer": "merchant",
"serviceFeePayer": "merchant"
}

Response

NameTypeRequiredDescription
assetnoAsset the quote is denominated in, echoed from the request.
amountstringnoGross amount, integer string in the asset's smallest unit.
feestringnoPlatform fee: 0.4% of the amount, minimum $1 equivalent. Integer string in the asset's smallest unit.
networkFeestringnoEstimated on-chain (gas) cost, deducted from the received amount. Integer string in the asset's smallest unit.
netAmountstringnoAmount the merchant receives after all fees. Integer string in the asset's smallest unit.
grossstringnoAmount the customer pays: base plus any customer-paid fees. Integer string in the asset's smallest unit.
quotedPricestringnoUSD price used for this quote, decimal string. Not locked — the binding price is captured when the payment is created.
Response · JSON
{
"asset": "USDT_ETHEREUM",
"amount": "100000000",
"fee": "1000000",
"networkFee": "150000",
"netAmount": "100000000",
"gross": "string",
"quotedPrice": "string"
}