1. Fiat APIs
AIO Docs
EN
  • EN
  • ZH
  • Overview
  • Create API Key
  • Callback
  • Security
  • Pay-in
  • Fiat Pay-in
  • Pay-out
  • API
    • Before You Begin
    • Fiat APIs
      • Fiat Pay-in Overview
      • Create KYC
        POST
      • List KYC
        GET
      • Supported Fiat Currencies
        GET
      • Crypto Map
        GET
      • Payment Methods/Codes
        GET
      • Fiat Deposit Limits
        GET
      • Fiat Pay-in Quote
        POST
      • Create Fiat Pay-in Order
        POST
      • List Fiat Pay-in Orders
        GET
    • Get Txs
      GET
    • Get Sub Txs
      GET
    • Get Tx Info
      GET
    • Create Payin Tx
      POST
    • Create Payin Longtime Tx
      POST
    • Create Payout Tx
      POST
    • Price
      GET
    • Calculate price
      GET
  • Schemas
    • Schemas
      • CallbackReqContentData
      • CallbackSubTxData
      • CallbackTxData
      • CallbackType
      • GetSubTxData
      • SubTxDataExt
      • SubTxStatus
      • GetSubTxDataResponse
      • CreateFiatKycRequest
      • CreateFiatKycResponse
      • Chain
      • ErrorResponseModel
      • PayTxData
      • PayTxStatusData
      • PayinLongTimeTxParams
      • PayinTxParams
      • PayoutSubTxParams
      • PayoutTxParams
      • PriceData
      • RedisKeyData
      • SubTxData
      • SuceedResponseModel
      • TestData
      • Token
      • TxData
      • TxDetailsData
      • TxStatus
      • TxType
      • VsToken
      • TestDataResponse
      • RedisKeyDataResponse
      • PriceDataResponse
      • PayTxDataResponse
      • PayTxStatusDataResponse
      • TxDetailsDataResponse
      • TxDataResponse
  1. Fiat APIs

Fiat Pay-in Quote

Developing
POST
/v2/fiat/pay-in/quote

What This API Does#

Creates a bidirectional fiat-to-token quote.
You must send either fiat_amount or token_amount, not both.
Send token_amount when the user wants to buy a fixed amount of crypto.
Send fiat_amount when the user wants to spend a fixed amount of fiat.

Request Data Structure#

Option A: Fixed Token Amount#

{
  "fiat_currency": "EUR",
  "token": "USDT",
  "token_amount": 100
}

Option B: Fixed Fiat Amount#

{
  "fiat_currency": "EUR",
  "token": "USDT",
  "fiat_amount": 500
}
FieldTypeRequired / NullableConditions / Notes
fiat_currencystringRequired, cannot be nullFiat currency code.
tokenstringRequired, cannot be nullToken symbol, for example USDT.
fiat_amountfloatConditionally required, nullable only when token_amount is providedFiat amount the user wants to spend. Cannot be combined with token_amount.
token_amountfloatConditionally required, nullable only when fiat_amount is providedCrypto amount the user wants to buy. Cannot be combined with fiat_amount.
WARNING
fiat_amount and token_amount are mutually exclusive. Sending both or neither should be treated as invalid.

Response Structure#

{
  "fiat_currency": "EUR",
  "token": "USDT",
  "fiat_amount": 89.5,
  "token_amount": 100,
  "min_limit": 1.0,
  "max_limit": 150000.0,
  "can_transact": true,
  "message": null
}
FieldTypeNullableDescription
fiat_currencystringNoFiat currency.
tokenstringNoToken symbol.
fiat_amountfloatNoFiat amount including TransFi processing fees. This is the amount the user pays.
token_amountfloatNoCrypto amount the user receives.
min_limitfloatNoMinimum allowed fiat amount.
max_limitfloatNoMaximum allowed fiat amount.
can_transactbooleanNotrue if the fiat amount is within [min_limit, max_limit].
messagestringYesHuman-readable reason when can_transact is false. Otherwise null.

Logic in a Nutshell#

The quote API calculates the missing side of the transaction. It also tells you whether the amount can be used for payment through can_transact. If can_transact is false, do not create a fiat order. Show message to the user or ask them to change the amount.

Request

None

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.aio.cash/v2/v2/fiat/pay-in/quote'
Response Response Example
{
    "success": true,
    "msg": "ok",
    "data": {}
}
Modified at 2026-05-18 08:39:10
Previous
Fiat Deposit Limits
Next
Create Fiat Pay-in Order
Built with