Quote payment fees

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.

POST/v1/payments/quoteAPI key

Request body

FieldTypeDescription
assetrequiredAssetIDAsset identifier (see GET /v1/assets for the live list).
asset values AssetID
USDT_ETHEREUMUSDT_ARBITRUMUSDT_OPTIMISMUSDT_BASEUSDT_BSCUSDT_PLASMAUSDT_POLYGONUSDC_ETHEREUMUSDC_ARBITRUMUSDCE_ARBITRUMUSDC_OPTIMISMUSDC_BASEUSDC_BSCUSDC_PLASMAUSDC_POLYGONETH_ETHEREUMETH_ARBITRUMETH_OPTIMISMETH_BASEXPL_PLASMABNB_BSCPOL_POLYGONTESTCOIN_ETHEREUMTESTCOIN_OPTIMISMTESTCOIN_PLASMATESTSTABLECOIN_ETHEREUMTESTSTABLECOIN_OPTIMISMTESTSTABLECOIN_PLASMA
amountrequiredstringMerchant 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).
networkFeePayeroptionalFeePayerWho bears the network (gas) fee. Default merchant.
networkFeePayer values FeePayer
merchantcustomer
serviceFeePayeroptionalFeePayerWho bears the platform (service) fee. Default merchant.
serviceFeePayer values FeePayer
merchantcustomer

Response

200 OK

FieldTypeDescription
assetoptionalAssetIDAsset the quote is denominated in, echoed from the request.
asset values AssetID
USDT_ETHEREUMUSDT_ARBITRUMUSDT_OPTIMISMUSDT_BASEUSDT_BSCUSDT_PLASMAUSDT_POLYGONUSDC_ETHEREUMUSDC_ARBITRUMUSDCE_ARBITRUMUSDC_OPTIMISMUSDC_BASEUSDC_BSCUSDC_PLASMAUSDC_POLYGONETH_ETHEREUMETH_ARBITRUMETH_OPTIMISMETH_BASEXPL_PLASMABNB_BSCPOL_POLYGONTESTCOIN_ETHEREUMTESTCOIN_OPTIMISMTESTCOIN_PLASMATESTSTABLECOIN_ETHEREUMTESTSTABLECOIN_OPTIMISMTESTSTABLECOIN_PLASMA
amountoptionalstringGross amount, integer string in the asset's smallest unit.
feeoptionalstringPlatform fee: 0.4% of the amount, minimum $1 equivalent. Integer string in the asset's smallest unit.
networkFeeoptionalstringEstimated on-chain (gas) cost, deducted from the received amount. Integer string in the asset's smallest unit.
netAmountoptionalstringAmount the merchant receives after all fees. Integer string in the asset's smallest unit.
grossoptionalstringAmount the customer pays: base plus any customer-paid fees. Integer string in the asset's smallest unit.
quotedPriceoptionalstringUSD price used for this quote, decimal string. Not locked — the binding price is captured when the payment is created.

Errors

400 Bad Request401 Unauthorized500 Internal Server Error— each returns { errorCode, message, args? }. Codes, retries and limits: Errors & limits

All Payments endpoints

Request

terminal
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"}'

Response · 200 OK

response.json
{
"asset": "USDT_ETHEREUM",
"amount": "100000000",
"fee": "1000000",
"networkFee": "150000",
"netAmount": "100000000",
"gross": "string",
"quotedPrice": "string"
}

Illustrative values. Every field, type and status on this page is generated from the OpenAPI specification.

Something unclear? payments@suward.com — we treat every integration question as a documentation defect.