VeyqoDEVELOPERS
DocumentationPOST Create a virtual account

Virtual accounts API

POST/virtual-accounts

Create a virtual account

Opens a permanent account number for one customer on a provider that issues them (Paystack, or Flutterwave with the customer's 11-digit `bvn`). Each deposit is confirmed with the provider, then recorded as a succeeded payment carrying `virtual_account_id` and your metadata, and sends `payment.succeeded`. A redelivered notice never counts twice.

POSThttps://api.veyqo.org/api/v1/virtual-accountsIntegration guide
Use your sandbox environment to start. Understand error codes and payment statuses before handling a live payment.
Create a virtual account
curl --request POST "https://api.veyqo.org/api/v1/virtual-accounts" \
  --header "Authorization: Bearer $VEYQO_SECRET_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
  "customer": {
    "email": "ada@example.com",
    "name": "Ada Obi"
  },
  "reference": "CUST-42",
  "metadata": {
    "customer_id": "42"
  }
}'
{
  "success": true,
  "data": {
    "id": "va_01M7Q5E1F2G3H4J5K6L7M8N9P0",
    "object": "virtual_account",
    "reference": "CUST-42",
    "status": "active",
    "account_number": "9930000001",
    "account_name": "VEYQO/ADA OBI",
    "bank_name": "Wema Bank",
    "provider": "paystack",
    "customer": {
      "email": "ada@example.com",
      "name": "Ada Obi"
    },
    "metadata": {
      "customer_id": "42"
    },
    "created_at": "2026-11-17T12:00:00+00:00"
  }
}

Illustrative examples. Replace IDs and environment variables with your own values. Keep secret keys on your server.

Headers

Authorizationstringrequired
Bearer <secret-key>. This key determines your project environment and must stay on your server.
Content-Typestringrequired
application/json
Acceptstringoptional
application/json

Endpoint

POST https://api.veyqo.org/api/v1/virtual-accounts

Server secret key required. Scope: payments:write. The key determines the project and environment; no project-selection header is accepted.

Request body

customerobjectrequired
email (required), name, phone, and bvn (11 digits; Flutterwave needs it).
providerstring | nulloptional
Which connected provider issues it. Omitted: the first that can.
referencestring | nulloptional
Your reference, e.g. your customer id. Usable in place of the id. Maximum 150 characters.
metadataobjectoptional
Your own keys, copied onto each deposit.

Response fields

idstringoptional
va_ id.
objectstringoptional
Always virtual_account.
referencestring | nulloptional
Your reference for it.
statusstringoptional
active.
account_numberstringoptional
The NUBAN the customer pays into.
account_namestring | nulloptional
Name on the account.
bank_namestring | nulloptional
The bank that holds it.
providerstringoptional
Provider that issued it.
customerobjectoptional
email and name.
metadataobjectoptional
Your own keys, copied onto each deposit.
created_atstringoptional
ISO 8601. Format: date-time.

Errors and recovery

CodeHTTPRecoveryRetry policy
INVALID_API_KEY401Use a current kc_test_ or kc_live_ secret key on /api/v1. Use a pk_test_ or pk_live_ publishable key only on browser checkout.After fixing credentials.
INSUFFICIENT_PERMISSION403Grant the required scope or use a suitably scoped key. Dashboard organization roles and staff permissions are separate.After permission changes.
RATE_LIMIT_EXCEEDED429Honor Retry-After, use bounded exponential backoff with jitter, and reduce concurrent requests. Read X-RateLimit headers.Yes, after Retry-After; preserve write idempotency.
METHOD_NOT_ALLOWED405Use the method documented for the endpoint, such as POST for verification and refunds.After fixing the method.
INTERNAL_ERROR500Record X-Request-Id, timestamp and sanitized request context. Reconcile unknown payment outcomes before retrying a write; contact support if it persists.Safe reads: bounded backoff. Writes: reconcile first.
VALIDATION_FAILED422Read error.details when present, correct the named fields and retry only after correction. Validation messages may describe state/capability errors without field details.No automatic retry.
PROVIDER_NOT_CONNECTED422Connect a provider, choose the project default, or explicitly pass provider. An account shared with another project still needs its own assignment here.After configuration changes.