POST
/
curl --request POST \
  --url https://gateway.finhub.cloud/wallet/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '{
  "purpose": "<string>",
  "ownerId": 123,
  "isLive": true,
  "customerId": 123,
  "parentWalletId": "<string>"
}'
{
  "id": {
    "tenantId": "312361a0-587a-4708-832f-73252d16a3ab",
    "entityId": {
      "v": "7b24771f-a46b-4236-b68d-663963d9c1e4"
    },
    "auditData": {
      "dateCreated": "2022-01-19T05:30:01.999Z"
    }
  },
  "purpose": "trading-hot@tenant",
  "ownerId": "0d4e6564-d424-4574-aaa6-795008c58781",
  "isLive": true,
  "customerId": "0d4e6564-d424-4574-aaa6-795008c58781",
  "type": "spot_trading",
  "status": {
    "id": {
      "tenantId": "312361a0-587a-4708-832f-73252d16a3ab",
      "entityId": {
        "v": "1b6630fa-0cb2-4ed6-83b7-b9cab86d23d4"
      },
      "auditData": {
        "dateCreated": "2022-01-19T05:30:01.999Z"
      },
      "isError": false,
      "type": "done"
    }
  },
  "parentWalletId": "00000000-0000-0000-000000000000"
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Body

application/json
purpose
string
required
ownerId
integer
required
isLive
boolean
required
customerId
integer
required
parentWalletId
string

Response

200 - application/json
value
object