Crypto - Fiat Query
Description
Query the fiat currency supported by crypto and network.
Test environment
https://openapi-test.alchemypay.org/open/api/v4/merchant/fiat/info
Prod environment
https://openapi.alchemypay.org/open/api/v4/merchant/fiat/info
❗️This API can only be invoked on the server side.
Http method
- POST
- Content-Type: application/json
Http Header
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
appid | Y | string | Partner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret |
timestamp | Y | string | UTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes. |
sign | Y | string | Signature, you can refer to the signature here |
Http Body
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
crypto | Y | string | Crypto type, e.g.: ETH, BTC |
network | Y | string | Network 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"
}
Return Code List
Return Code | Return Message |
---|---|
10010 | Invalid data |
Other return codes reference: https://dash.readme.com/project/alchemypay/v4.0.1/docs/response-code-list
Updated 3 months ago