Wallet Addresses

These endpoints manage the subaccount's external wallet addresses for withdrawals.

Merchants that use the Payment Product and want to receive settlements in Stablecoins must register their wallet address in the Dashboard. This section is dedicated to registering bank accounts for users who are transacting with the Exchange or Pay Anything products.

Register Subaccount's Wallet Address

POST https://live.betaapp.com/v1/subaccount/wallet-address/external

Endpoint to register subaccount external wallets for Crypto withdrawal.

Headers

Name
Type
Description

Authorization*

String

Bearer {access_token}

x-sub-account-id*

String

subaccount ID

accept*

String

application/json

Request Body

Name
Type
Description

asset*

String

Check coverage page for more details of the supported assets

name*

String

Nickname for the wallet

address*

String

Wallet Address

network*

String

Check coverage page for more details of the supported networks

{
  "name": "string",
  "address": "string",
  "asset": "string",
  "Network": "string",
  "id": "string",
  "type": "string"
  "message": "string",
  "updated_at": "string"
  "created_at": "string",
  "deleted_at": "string",
}

Request Example:

curl -X 'POST' \
  'https://live.betaapp.com/v1/subaccount/wallet-address' \
  -H 'accept: application/json' \
  -H 'X-sub-account-id: fe2f30db...5b5e7c' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlaEF1NURPY...ctfx2I4g' \
  -d '{
  "address": "bc1qdus0ghjhxcr3eyw4rcswlpvr8w34wpf6thexs8",
  "asset": "BTC",
  "name": "My personal BTC Wallet Address",
  "network": "bitcoin"
}'

Response Example:

{
  "address": "bc1qdus0ghjhxcr3eyw4rcswlpvr8w34wpf6thexs8",
  "asset": "BTC",
  "created_at": "2023-09-16T19:04:22.407027Z",
  "deleted_at": "",
  "id": "a2b6b539-2e13-4434-8ae7-7feb99484097",
  "message": "",
  "name": "My personal BTC Wallet Address",
  "network": "bitcoin",
  "updated_at": "2023-09-16T19:04:22.407027Z",
  "wallet_type": "external"
}

Delete Subaccount's Wallet Address

DELETE https://live.betaapp.com/v1/subaccount/wallet-address/id/{id}

This endpoint deletes the external wallet address associated with a specific subaccount.

Headers

Name
Type
Description

Authorization*

String

Bearer {access_token}

x-sub-account-id*

String

Subaccount ID

accept*

String

application/json

Request Body

Name
Type
Description

id*

String

Wallet address ID that should be deleted

{
  "message": "string"
}

Request Example:

curl -X 'DELETE' \
  'https://live.betaapp.com/v1/subaccount/wallet-address' \
  -H 'accept: application/json' \
  -H 'X-sub-account-id: fe2f30db...5b5e7c' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InJlaEF1NURPY...ctfx2I4g' \
  -d '{
  "wallet_id": "a2b6b539-2e13-7854-8ae7-7feb99484097",
}'

Response Example:

{
  "message": "success"
}

Last updated