Wallets and money transferring

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

nametypedescription
idoptional, Intwallet identifier
addressoptional, Stringwallet address
currencyrequired, Stringcurrency [BTC, ETH, LTC, ...]
balancerequired, Decimalbalance 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

nametypedescription
idoptional, Intwallet identifier
addressoptional, Stringwallet address
currencyrequired, Stringcurrency [BTC, ETH, LTC, ...]
balancerequired, Decimalbalance 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

nametypedescription
amountrequired, Decimaldecimal amount of transaction
currencyrequired, Stringwallet currency [BTC, ETH, LTC, ...]
customerIdrequired, Stringcustomer 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

nametypedescription
addressrequired, Stringwallet address
amountrequired, Decimaldecimal amount of transaction
currencyrequired, Stringwallet 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

nametypedescription
amountrequired, Decimaldecimal amount of transaction
currencyrequired, Stringwallet currency [BTC, ETH, LTC, ...]
customerIdrequired, StringCustomer identifier, UUID