DocumentationPOST Send a batch of transfers
Transfers API
POST
/transfers/batchesSend a batch of transfers
Up to 200 transfers in one request (payroll, vendor payouts), sent one by one in the background, each checked by name first. `reference` identifies the batch: the same one twice is refused. Each transfer may carry its own reference; a retried batch never pays a row twice. Read the outcome with GET /transfers/batches/{id}; each transfer also sends its own events.
Use your sandbox environment to start. Understand error codes and payment statuses before handling a live payment.
Send a batch of transfers
curl --request POST "https://api.veyqo.org/api/v1/transfers/batches" \
--header "Authorization: Bearer $VEYQO_SECRET_KEY" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"reference": "payroll-2026-11",
"transfers": [
{
"bank": "000013",
"account_number": "0123456789",
"amount": 100000,
"narration": "Wages"
},
{
"bank": "090267",
"account_number": "0987654321",
"amount": 200000,
"reference": "NOV-ADA"
}
]
}'{
"success": true,
"data": {
"id": "tbat_01M7Q5B1C2D3E4F5G6H7J8K9L0",
"object": "transfer_batch",
"status": "queued",
"provider": null,
"total": 2,
"total_amount": 300000,
"currency": "NGN",
"progress": {
"queued": 2,
"sent": 0,
"refused": 0
},
"transfers": [
{
"row": 1,
"reference": "tbat_01M7Q5B1C2D3E4F5G6H7J8K9L0-1",
"amount": 100000,
"outcome": "queued",
"transfer_id": null,
"status": null,
"error": null
},
{
"row": 2,
"reference": "NOV-ADA",
"amount": 200000,
"outcome": "queued",
"transfer_id": null,
"status": null,
"error": null
}
],
"created_at": "2026-11-17T12:00:00+00:00",
"completed_at": null
}
}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/transfers/batches
Server secret key required. Scope: transfers:write. The key determines the project and environment; no project-selection header is accepted.
Request body
referencestringrequired- Identifies the batch; the same one twice is refused. Maximum 150 characters.
providerstring | nulloptional- Send every row through this provider; omitted, each row is routed.
transfersarrayrequired- 1 to 200 of: bank or bank_code, account_number, amount (kobo), optional account_name, narration, reference.
Response fields
idstringoptional- tbat_ id.
objectstringoptional- Always transfer_batch.
statusstringoptional- queued, sending or done. Values: queued, sending, done.
providerstring | nulloptional- Provider used for every row, or null for automatic.
totalintegeroptional- Rows.
total_amountintegeroptional- Kobo.
currencystringoptional- NGN.
progressobjectoptional- queued, sent and refused counts.
transfersarrayoptional- Per row: row, reference, amount, outcome (queued, sent, refused), transfer_id, status and error.
created_atstringoptional- ISO 8601. Format: date-time.
completed_atstring | nulloptional- When every row was handled.
Errors and recovery
| Code | HTTP | Recovery | Retry policy |
|---|---|---|---|
| INVALID_API_KEY | 401 | Use 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_PERMISSION | 403 | Grant the required scope or use a suitably scoped key. Dashboard organization roles and staff permissions are separate. | After permission changes. |
| RATE_LIMIT_EXCEEDED | 429 | Honor 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_ALLOWED | 405 | Use the method documented for the endpoint, such as POST for verification and refunds. | After fixing the method. |
| INTERNAL_ERROR | 500 | Record 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_FAILED | 422 | Read 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. |
| DUPLICATE_REFERENCE | 409 | Retrieve 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. |