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

Create Fiat Pay-in Order

Developing
POST
/v2/fiat/pay-in

What This API Does#

Creates the fiat pay-in order and returns fiat_payment_url. Redirect the end user to this URL to complete payment.

Request Data Structure#

{
  "txid": "Ixxxxxxxxxxxxxxxxxxxx",
  "token": "USDT",
  "token_amount": 100,
  "fiat_kyc_id": "KYC_xxx",
  "fiat_payment_type": "bank_transfer",
  "fiat_purpose_code": "service_charges",
  "fiat_currency": "USD",
  "fiat_redirect_url": "https://merchant.example/success",
  "fiat_source_url": "https://merchant.example/checkout",
  "payment_code": "sepa_bank"
}
FieldTypeRequired / NullableConditions / Notes
txidstringRequired, cannot be nullAIO pay-in transaction ID from the normal pay-in transaction.
tokenstringOptional, can be null/omittedMust match the linked transaction if provided.
token_amountfloatConditionalRequired for long-time pay-ins. Ignored for one-time pay-ins.
fiat_kyc_idstringRequired, cannot be nullKYC profile ID returned by POST /v2/fiat/kyc.
fiat_payment_typestringRequired, cannot be nullAllowed values: bank_transfer, local_wallet. Controls which payment options appear on the payment page.
fiat_purpose_codestringRequired, cannot be nullPurpose code. Use supported enum values from the Enum Values section.
fiat_currencystringRequired, cannot be nullFiat currency code, for example USD, PHP, EUR.
fiat_redirect_urlstringRequired, cannot be nullURL where the user is redirected after payment.
fiat_source_urlstringOptional, can be null/omittedURL of the originating checkout page.
payment_codestringOptional, can be null/omittedSpecific payment method code such as sepa_bank or gcash. If omitted, the user can choose from all available methods within fiat_payment_type.

Response Structure#

{
  "txid": "Ixxxxxxxxxxxxxxxxxxxx",
  "fiat_order_id": "OR-xxxx",
  "fiat_payment_url": "https://..."
}
FieldTypeNullableDescription
txidstringNoLinked AIO pay-in transaction ID.
fiat_order_idstringNoFiat order ID. Store it for reconciliation and support.
fiat_payment_urlstringNoHosted payment page URL. Redirect the user here.

Logic in a Nutshell#

This endpoint links an AIO pay-in transaction, a fiat KYC profile, fiat currency, payment type, and optional payment method into one fiat order. Once created, the user must complete the payment on fiat_payment_url.

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'
Response Response Example
{
    "success": true,
    "msg": "ok",
    "data": {}
}
Modified at 2026-05-18 08:39:10
Previous
Fiat Pay-in Quote
Next
List Fiat Pay-in Orders
Built with