🚀 VaultsPay API v1 is live. See what's new →
AccountsCreate Account

Create Account

POST{baseUrl}/be/api/v1/accounts

Payload

AttributeTypeRequiredDescription
userIdIntegerYesID of the user for whom the account is being created.
currencyIdIntegerYesID of the currency for the account.
accountTypeStringYesType of the account to create (e.g., DIGITAL).
Request Example
{
  "userId": 6,
  "currencyId": 2,
  "accountType": "DIGITAL"
}

Response

FieldTypeDescription
idIntegerAccount ID.
userIdIntegerOwner user ID.
accountTypeStringAccount type (e.g., DIGITAL).
currencyCodeStringISO 4217 currency code (e.g., AED).
currencyObjectCurrency entity: { createdAt, createdBy, updatedAt, updatedBy, id, name, code, isoCode, decimalPoint, type, symbol, icon, status }.
accountTitleStringAccount title.
accountNumberStringAccount number.
balanceNumberCurrent available balance.
balanceOnHoldNumberAmount on hold.
totalTransactionsIntegerNull
statusStringAccount status (e.g., ACTIVE).
referencesArrayAdditional references (if any).
ibanStringNull
isPrimaryBooleanWhether this is the user’s primary account.
creditLimitNumberCredit limit for the account, if applicable.
200 — SUCCESS
{
  "data": {
    "id": 12,
    "userId": 3,
    "accountType": "DIGITAL",
    "currencyCode": "AED",
    "currency": {
      "createdAt": "2024-10-07T04:56:49.699+00:00",
      "createdBy": null,
      "updatedAt": null,
      "updatedBy": null,
      "id": 2,
      "name": "United ARAB EMIRATE",
      "code": "AED",
      "isoCode": 784,
      "decimalPoint": 2,
      "type": "FIAT",
      "symbol": null,
      "icon": null,
      "status": true
    },
    "accountTitle": "VAULTSPAY CUSTOMER",
    "accountNumber": "30132278593204",
    "balance": 0,
    "balanceOnHold": 0,
    "totalTransactions": null,
    "status": "ACTIVE",
    "references": [],
    "iban": null,
    "isPrimary": true,
    "creditLimit": 1000
  }
}