Crypto - Fiat Query

Description

Query the fiat currency supported by crypto and network.

Test environment

https://openapi-test.alchemypay.org/open/api/v3/merchant/fiat/info

Prod environment

https://openapi.alchemypay.org/open/api/v3/merchant/fiat/info

❗️This API can only be invoked on the server side.

Http method

  • POST
  • Content-Type: application/json

Http Header

ElementMandatoryData TypeRemarks
appidYstringPartner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret
timestampYstringUTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes.
signYstringSign the appId, timeStamp, and requested parameters alphabetically , the sign method can refer here

Http Body

ElementMandatoryData TypeRemarks
cryptoYstringCrypto type, e.g.: ETH, BTC
networkYstringNetwork Code

Request sample - Header

Request sample - Body

{"network":"BSC","crypto":"ETH"}

Response sample

{
  "success": true,
  "returnCode": "0000",
  "returnMsg": "SUCCESS",
  "extend": "",
  "data": [
    {
       "currency": "USD",
       "country": "US", 
       "countryName": "United State"
       "fiatIcon": "https://static.alchemypay.org/alchemypay/fiat-images/.png",
       "buyEnable": 1,
       "sellEnable": 0,
       "minBuyFiatAmount": 1500.000,// minimal fiat amount on ramp
       "maxBuyFiatAmount": 200000.000, // maximum fiat amount on ramp
       "minSellCryptoAmount": 80,// minimal crypto amount off ramp
       "maxSellCryptoAmount": 75001//  maximum crypto amount off ramp
    }
   ]
}


{
    "success": false,
    "returnCode": "3100",
    "returnMsg": "Please contact with our team to configure commission",
    "extend": "",
    "data": null,
    "traceId": "64faef990873e016dea58d40eb7403df"
}



{
    "success": false,
    "returnCode": "10005",
    "returnMsg": "Invalid Request Parameters.",
    "extend": "",
    "data": null,
    "traceId": "64faefb45f1db9c0f159ef8bba4a7d1a"
}