API Reference
Supported Coins
Retrieve the coins supported by AinePay and their corresponding blockchains. This is typically the first API merchants call during integration.
Endpoint
- Method:
GET - Path:
/api/merchant/pay/info - Authentication: Required
Request Parameters
| parameter | type | description | required |
|---|---|---|---|
| - | - | No business parameters. Only authentication headers are required. | no |
Response Fields
Top-level response structure:
| field | type | description |
|---|---|---|
success | boolean | true when the request succeeds. |
code | integer | Business result code. Successful responses return 0. |
data | object | Business data. |
msg | string | Typically ok on success. |
Coin data:
| field | type | description |
|---|---|---|
data.supported | array<object> | List of supported assets and chains. |
data.supported[].coin | string | Token symbol. |
data.supported[].chain | string | Blockchain code. |
data.supported[].contract | string | Token contract address. |
data.supported[].chainName | string | Blockchain name. |
data.supported[].url | string | Reserved field. |
Example Response
{
"success": true,
"code": 0,
"data": {
"supported": [
{
"coin": "USDT",
"chain": "ETH",
"contract": "0x630E906E953Da1808a7DB78cCA9FdFde2029aEB9",
"chainName": "Ethereum(ERC20)",
"url": ""
},
{
"coin": "USDC",
"chain": "ETH",
"contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"chainName": "Ethereum(ERC20)",
"url": ""
}
]
},
"msg": "ok"
}