VeyqoDEVELOPERS
DocumentationPOST Create a split recipient

Split payments API

POST/split-recipients

Create a split recipient

Checks the bank account by name enquiry, then opens it as a subaccount on a provider that splits payments (Paystack or Flutterwave). Name it in a payment's `split` with a flat `amount`; the provider pays that share to the account and the rest to you.

POSThttps://api.veyqo.org/api/v1/split-recipientsIntegration guide
Use your sandbox environment to start. Understand error codes and payment statuses before handling a live payment.
Create a split recipient
curl --request POST "https://api.veyqo.org/api/v1/split-recipients" \
  --header "Authorization: Bearer $VEYQO_SECRET_KEY" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '{
  "name": "Ada Obi Stores",
  "bank": "090267",
  "account_number": "0123456789",
  "reference": "VENDOR-7"
}'
{
  "success": true,
  "data": {
    "id": "spr_01M7Q5F1G2H3J4K5L6M7N8P9Q0",
    "object": "split_recipient",
    "name": "Ada Obi Stores",
    "reference": "VENDOR-7",
    "provider": "paystack",
    "bank": {
      "id": "090267",
      "name": "Kuda Bank"
    },
    "account_number_last4": "6789",
    "account_name": "ADA OBI STORES",
    "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/split-recipients

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

Request body

namestringrequired
Business or person name. Maximum 190 characters.
bankstring | nulloptional
Veyqo bank id from GET /transfers/banks. Required unless bank_code is given. Maximum 10 characters.
bank_codestring | nulloptional
A provider's own bank code instead of bank. Maximum 20 characters.
account_numberstringrequired
The 10-digit NUBAN. Maximum 10 characters.
providerstring | nulloptional
Which provider holds it. Omitted: the only one connected that splits.
referencestring | nulloptional
Your reference, e.g. your vendor id. Maximum 150 characters.
emailstring | nulloptional
Contact email for the provider.
phonestring | nulloptional
Contact phone (Flutterwave asks for one).

Response fields

idstringoptional
spr_ id.
objectstringoptional
Always split_recipient.
namestringoptional
Business or person name.
referencestring | nulloptional
Your reference for it.
providerstringoptional
Provider holding the subaccount; split payments go through it.
bankobjectoptional
id and name.
account_number_last4stringoptional
Last four digits of the account.
account_namestring | nulloptional
As the bank returned it.
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.
DUPLICATE_REFERENCE409Retrieve that payment and reconcile its state. For a genuinely new attempt, use a new unique reference and operation key; do not create a second charge just because a response was lost.Reconcile first.