Skip to main content
POST
/
api
/
v1
/
auth
/
wallets
/
for-owner
Create Wallet For Owner (Customer, Merchant, Sub-Merchant, Or Treasury Multisig)
curl --request POST \
  --url https://crypto.westminister.tech/api/v1/auth/wallets/for-owner \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "owner_type": "customer",
  "network": "ethereum",
  "asset": "USDT",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "treasury_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sub_merchant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "wallet_type": "hot",
  "is_default": true
}
'
{
  "wallet": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "address": "<string>",
    "wallet_type": "<string>",
    "network": "<string>",
    "is_default": true,
    "is_active": true,
    "created_at": "2023-11-07T05:31:56Z"
  },
  "balances": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "currency": "<string>",
      "token_type": "<string>",
      "token_symbol": "<string>",
      "amount": "<string>",
      "usd_value": "<string>",
      "locked_amount": "<string>",
      "last_price_usd": "<string>"
    }
  ],
  "owner_type": "<string>",
  "primary_asset": "<string>",
  "custody_kind": "custodial",
  "owner_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "provider_wallet_id": "<string>",
  "multisig_type": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.crypto.westminister.tech/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
owner_type
enum<string>
required
Available options:
customer,
treasury,
merchant,
sub_merchant
network
enum<string>
required
Available options:
ethereum,
tron
asset
enum<string>
required

Primary stablecoin for labeling; balances include both stables.

Available options:
USDT,
USDC
user_id
string<uuid>

Required when owner_type is customer. Admin may set this to any user id (custodial wallet on that row). Non-admin callers: target user must have role customer or user and must be the authenticated user.

treasury_user_id
string<uuid>

Required when owner_type is treasury (role treasury). Creates multisig wallet.

merchant_id
string<uuid>

Required when owner_type is merchant (master vendor).

sub_merchant_id
string<uuid>

Required when owner_type is sub_merchant (subvendor).

name
string
wallet_type
enum<string>

Custodial wallets only; default hot. Ignored for treasury multisig.

Available options:
hot,
cold
is_default
boolean
multisig
object

Required for treasury when custody is not BitGo (self-custody multisig).

Response

Wallet created

wallet
object
balances
object[]
owner_type
string
primary_asset
string
custody_kind
enum<string>
Available options:
custodial,
multisig
owner_user_id
string<uuid>
provider_wallet_id
string

BitGo multisig only.

multisig_type
string

BitGo multisig only.