DocumentationPOST Check whose account it is
Transfers API
POST
/transfers/resolveCheck whose account it is
Name enquiry before you send: the account holder's name as the bank has it, on the provider that would send the transfer. Pass `bank` (a Veyqo bank id), or `bank_code` with `provider`.
Use your sandbox environment to start. Understand error codes and payment statuses before handling a live payment.
Check whose account it is
curl --request POST "https://api.veyqo.org/api/v1/transfers/resolve" \
--header "Authorization: Bearer $VEYQO_SECRET_KEY" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"bank": "000013",
"account_number": "0123456789"
}'{
"success": true,
"data": {
"account_name": "ADA LOVELACE",
"account_number": "0123456789",
"bank": {
"id": "000013",
"code": "058",
"name": "Guaranty Trust Bank (GTBank)"
},
"provider": "paystack"
}
}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/resolve
Server secret key required. Scope: transfers:read. The key determines the project and environment; no project-selection header is accepted.
Request body
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; needs provider when several are connected. Maximum 20 characters.
account_numberstringrequired- The 10-digit NUBAN. Maximum 10 characters.
providerstring | nulloptional- Which connected provider sends it. Omitted: the first that can reach the bank.
Response fields
account_namestringoptional- As the bank has it.
account_numberstringoptional- The 10-digit NUBAN.
bankobjectoptional- id, code (the provider's) and name.
providerstringoptional- The provider that checked it, and would send the transfer.
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. |
| PROVIDER_NOT_CONNECTED | 422 | Connect 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. |
| PROVIDER_UNAVAILABLE | 503 | Check the existing payment and verify its state before starting another attempt. Retry safe reads with backoff; preserve operation identity for retried writes. | Conditional: reconcile unknown outcomes first. |