Skip to main content
POST
Create new Wallet
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>"
}
'
{
  "$ref": "#/components/examples/demo_trading_wallet_hot_with_references/value"
}

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

purpose
string
required
ownerId
integer
required
isLive
boolean
required
customerId
integer
required
parentWalletId
string

Response

successful operation

value
object
Example:
{
  "Status": {
    "isError": true,
    "code": 6,
    "description": "description",
    "type": "done"
  },
  "isLive": true,
  "assets": "",
  "purpose": "purpose",
  "customerId": 0,
  "linkedWallets": "",
  "parentWalletId": { "refferTo": "" },
  "id": {
    "auditData": {
      "createdAt": "2000-01-23T04:56:07.000Z",
      "archivedAt": "2000-01-23T04:56:07.000Z",
      "deletedAt": "2000-01-23T04:56:07.000Z",
      "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
      "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
      "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
      "updatedAt": "2000-01-23T04:56:07.000Z"
    },
    "tenantId": "tenantId",
    "entityId": "",
    "ownerId": "ownerId"
  },
  "type": "general_purpose"
}