Deposit
Get address for receive funds
Get an address for receive cryptocurrency from someone
POST https://api.legranpay.io/v1/merchant/deposits/take
Headers
X-MERCHANT-KEY*
String
You merchant key
X-MERCHANT-SIGNATURE*
String
You merchant secret key
Request Body
foreignId*
String
Unique name to identify the issuer of the transactions.
For example: USER_991
currency*
String
Example: USDT
blockchain*
String
Unique name of blockchain. Check currency section for more information.
For example: POLYGON_MUMBAI
{
"error": false,
"data": {
"currency": "USDT",
"address": "0xb6f30d1ead83551fba23f03da5b1a37f1390f7a8",
"tag": ""
}
}{
"error": true,
"code": 1003,
"message": "Invalid merchant or / and currency or / and blockchain"
}Address object
currency
String
Currency unique code
address
String
Wallet address
tag
Number (Optional)
Some currencies require the attribute tag
Possible errors
500
1003
1016
Ping address
POST https://api.legranpay.io/v1/merchant/deposits/ping
Headers
X-MERCHANT-KEY*
String
You merchant key
X-MERCHANT-SIGNATURE*
String
You merchant secret key
Request Body
foreignId*
String
Unique name to identify the issuer of the transactions.
For example: USER_991
currency*
String
Example: USDT
blockchain*
String
Unique name of blockchain. Check currency section for more information.
For example: POLYGON_MUMBAI
{
"error": false,
"data": 1686661775 // Now timestamp (UTC)
}{
"error": true,
"code": 1004,
"message": "Wallet not found"
}Possible errors
500
1004
1016
Last updated