Wallets and money transferring
- Get wallets of a user
- Get wallets of a partner
- Send money to a user
- Send money to an address
- Request money from a user
Get wallets of a user
GET /v1/merchant/customer/{customerId}/wallet
get the information about user accounts
Request example
curl --location --request GET “https://api.crypterium.com/v1/merchant/customer/{customerId}/wallet” -H “accept: application/json” \ -H “Content-Type: application/json” -H “Authorization: Bearer {access_token}” -H “X-Sdk-Version: 2.0” -H “User-Agent: {user-agent}”
Response example
{
"wallets": [
{
"id": Int,
"address": String,
"currency": String,
"balance": Decimal,
}
]
}
Fields
name | type | description |
---|---|---|
id | optional, Int | wallet identifier |
address | optional, String | wallet address |
currency | required, String | currency [BTC, ETH, LTC, ...] |
balance | required, Decimal | balance of wallet |
Get wallets of a partner
GET /v1/merchant/wallet
get the information about partner accounts
{
"wallets": [
{
"id": Int,
"address": String,
"currency": String,
"balance": Decimal,
}
]
}
Fields
name | type | description |
---|---|---|
id | optional, Int | wallet identifier |
address | optional, String | wallet address |
currency | required, String | currency [BTC, ETH, LTC, ...] |
balance | required, Decimal | balance of wallet |
Send money to a user
POST /v1/merchant/credit
top up a user account from a partner account
{
"amount": Decimal,
"currency": String,
"customerId": String
}
Fields
name | type | description |
---|---|---|
amount | required, Decimal | decimal amount of transaction |
currency | required, String | wallet currency [BTC, ETH, LTC, ...] |
customerId | required, String | customer identifier |
Send money to an address
POST /v1/merchant/send
top up an external wallet from a merchant account
{
"address": String,
"amount": Decimal,
"currency": String
}
Fields
name | type | description |
---|---|---|
address | required, String | wallet address |
amount | required, Decimal | decimal amount of transaction |
currency | required, String | wallet currency [BTC, ETH, LTC, ...] |
Request money from a user
POST /v1/merchant/debit
Request money from a user
{
"amount": Decimal,
"currency": String,
"customerId": String
}
Fields
name | type | description |
---|---|---|
amount | required, Decimal | decimal amount of transaction |
currency | required, String | wallet currency [BTC, ETH, LTC, ...] |
customerId | required, String | Customer identifier, UUID |
Updated over 2 years ago