Card Deposit Interface
Introduction:
Merchant can deposit their user's card though this interface.
Please note:
- The currency and network used for the transfer must match the order; otherwise, it may fail.
- If the order amount is less than the payment amount, the payment will be made according to the order amount, and the transaction fee will be calculated based on the order fee. If the order amount is greater than the payment amount, the recharge will be made according to the payment amount, and transaction fee still based on the order fee.
- Supported networks and currencies are TRX-USDT, BSC-USDT, ETH-USDT, SOL-USDT, TRX-USDC, BSC-USDC, ETH-USDC.
Domains:
Test environment: https://sbx-card-api.alchemypay.org
Production environment: https://card-api.alchemypay.org
API Description
Request Method:post
Content-Type: application/json
Request Path:/open/merchant/api/cardDeposit
Request Parameters:
Parameter | Sign | Required | Type | Length | Description |
---|---|---|---|---|---|
appId | Yes | Yes | String | 32 | Merchant app ID |
cardId | Yes | Yes | String | 32 | Card ID |
orderNo | Yes | Yes | String | 64 | Custom client transaction serial ID |
amount | Yes | Yes | Long | 32 | Crypto order amount (integer part) |
cryptoCurrency | Yes | Yes | String | 12 | Crypto currency code |
network | Yes | Yes | String | 32 | Network |
sign | No | Yes | String | 512 | Signature |
Request Example:
{
"appId": "qmamnbodyqzbdr0w",
"orderNo": "test00001",
"amount": "15",
"cardId": "c_48c7125626a84d3a82e1",
"cryptoCurrency": "USDT",
"network": "ETH",
"sign": ""
}
Response Parameters
Parameter | Type | Description |
---|---|---|
success | Boolean | Success flag |
error | Boolean | Error flag |
msg | String | Processing message |
code | Integer | Return code |
+model | Object | Returned data object data |
└ tradeNo | String | Transaction number |
└ address | String | Transfer address |
└ expiredTime | String | Order timeout time (seconds) |
Response Example:
{
"success": true,
"error": false,
"msg": "Success",
"code": 0,
"model": {
"tradeNo": "123133213131313131",
"address": "0xa6d057a1e3d807c31233b2e5892efc5672a24b61"
},
"traceId": 1646648711017
}
Note:
For more error codes, please refer to the error code description on the homepage.
Updated about 2 months ago