POST
/
curl --request POST \
  --url https://gateway.varchev.com/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": {},
"entityId": {
"v": "7b24771f-a46b-4236-b68d-663963d9c1e4"
},
"auditData": {
"dateCreated": "2022-01-19T05:30:01.999Z"
}
},
"purpose": "trading-hot@tenant",
"ownerId": {},
"isLive": true,
"customerId": {},
"type": "spot_trading",
"status": {
"id": {
"tenantId": {},
"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
header
required

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

Headers

tenantId
string
required

Body

application/json

Sample Payload

The body is of type object.

Response

200
application/json

successful operation

The response is of type object.