Errors
Every error has the same body. Branch on code, never on message, and letretry tell you what to do next.
{
"status": false,
"code": "provider_refused",
"message": "COWPAY refused the payout: This ifsc is not supported: AIRP0000001",
"requestId": "6d7e8f90-0112-43c4-95e6-f708192a3b4c",
"retry": "new_key",
"provider": {
"name": "cowpay",
"stage": "create",
"reason": "beneficiary_bank_unsupported",
"code": "1002",
"message": "This ifsc is not supported: AIRP0000001"
},
"details": { "payout": { "id": "payout_v3b7n1m5q9w2e", "status": "failed" } },
"docUrl": "https://aquapay.bhimpay.online/docs/errors#provider_refused"
}codeis for your program. It never changes for a given error.messageis for a person, and may be reworded.requestIdnames this one request. It is also theAquaPay-Request-Idheader, and it finds the request in the console under Developers, Request logs.providercarries the provider's own code and words when a provider caused the error, and is null otherwise.detailsdepends on the code. Each entry below says what it holds.docUrlis the address of that code's entry on this page.
What to do next
retry has four values. The three provider errors differ in exactly this: refused and never sent are safe to try again, and outcome unknown is not.
| retry | What to do |
|---|---|
same_key | Send the identical request again with the same Idempotency-Key, after Retry-After when one is given. |
new_key | Nothing blocks a new attempt. Fix what was wrong, if anything, and send it with a new Idempotency-Key. |
refresh | The outcome is unknown. Never send it again: refresh the resource, or wait for its webhook. |
no | It fails the same way until the request or the account changes. |
A 502 or 503 without this JSON body came from the network in front of AquaPay. For a payout, treat it as provider_outcome_unknown and look the attempt up with GET /payout-attempts/{attemptKey}.
Every code
| Code | HTTP | retry | In short |
|---|---|---|---|
validation_failed | 400 | no | The request is malformed or breaks a rule |
api_key_invalid | 401 | no | The key is not usable |
payment_password_required | 401 | no | The payment password is missing |
payment_password_invalid | 401 | no | The payment password is wrong |
ip_not_allowed | 403 | no | This address is not on the key's allowlist |
scope_missing | 403 | no | The key may not do this |
account_suspended | 403 | no | The gateway account is suspended |
resource_not_found | 404 | no | No such resource on this account |
idempotency_conflict | 409 | new_key | The key was already used for a different request |
idempotency_key_busy | 409 | same_key | The first request with this key is still running |
duplicate_reference | 409 | no | Another payout holds this reference |
attempt_closed | 409 | new_key | This attempt key was closed |
balance_insufficient | 409 | no | The balance does not cover the payout and its fee |
wrong_state | 409 | no | The resource is not in a state that allows this |
utr_in_use | 409 | no | The UTR belongs to another pay-in |
unsupported_by_provider | 422 | no | This account's provider does not offer that |
provider_refused | 422 | new_key | The provider answered and refused |
payment_password_locked | 423 | same_key, after Retry-After | Too many wrong payment passwords |
provider_unreachable | 424 | new_key on create; same_key on refresh and bind-utr | The provider could not be reached |
too_many_requests | 429 | same_key, after Retry-After | The account is over its rate limit |
server_error | 500 | same_key | AquaPay failed before acting |
provider_outcome_unknown | 502 | refresh for a payout; new_key for a pay-in | The provider may have acted |
service_unavailable | 503 | same_key, after Retry-After | AquaPay could not take the request now |
validation_failedHTTP 400
The request is malformed or breaks a rule
retry- no
- What it means
- AquaPay read the request and refused it before doing anything. Nothing was created or sent.
- Why it happens
- Malformed JSON, an unknown field, a bad value or a malformed id in the path, a missing Idempotency-Key, an amount outside the account's limits or not whole where it must be, or the wrong currency. For a webhook endpoint: a URL the account already has (rule unique) or a fourth endpoint (rule max).
- What to do
- Read details.fields: each entry names the field, the rule it broke and, for min and max, the limit. Correct the request and send it again; the same idempotency key is fine, because this answer is never stored.
- In
details - fields: up to 10 of { field, rule, message, limit? }.
{
"status": false,
"code": "validation_failed",
"message": "The request has 2 invalid fields.",
"requestId": "5f0c2b8e-3a1d-4e7f-9b6a-8d2c4e1f0a93",
"docUrl": "https://aquapay.bhimpay.online/docs/errors#validation_failed",
"retry": "no",
"provider": null,
"details": {
"fields": [
{
"field": "amount",
"rule": "max",
"message": "The most this account takes is 50000.00.",
"limit": "50000.00"
},
{
"field": "payer.ip",
"rule": "required",
"message": "COWPAY needs the payer's IP address."
}
]
}
}api_key_invalidHTTP 401
The key is not usable
retry- no
- What it means
- The key is missing, malformed, unknown, revoked or expired.
- Why it happens
- The Authorization header is absent or is not Bearer followed by the key, the key was cut short or mistyped (its checksum fails), it was revoked, or it was rolled and its overlap has ended.
- What to do
- Send Authorization: Bearer aqk_… with a key from Console → Developers → API keys. A key ends in a checksum of the rest, so your code can refuse a mistyped one before it sends anything. If the key was rolled, deploy the new one.
{
"status": false,
"code": "api_key_invalid",
"message": "The key is missing, malformed, unknown, revoked or expired.",
"requestId": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"retry": "no",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#api_key_invalid"
}payment_password_requiredHTTP 401
The payment password is missing
retry- no
- What it means
- The action needs the account's payment password and the header was not sent. It does not count as a wrong attempt.
- Why it happens
- Creating a payout, and creating, deleting or rotating a webhook endpoint, always need AquaPay-Payment-Password. No key is exempt.
- What to do
- Ask the person approving the action for the payment password and send it in AquaPay-Payment-Password, with the same idempotency key.
{
"status": false,
"code": "payment_password_required",
"message": "This action needs the account's payment password in AquaPay-Payment-Password.",
"requestId": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"retry": "no",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#payment_password_required"
}payment_password_invalidHTTP 401
The payment password is wrong
retry- no
- What it means
- The password did not match. Nothing was created.
- Why it happens
- A typing mistake, or the password was changed in the console since it was last used.
- What to do
- Ask for the password again and resend with the same idempotency key. Five wrong passwords in a row lock this key and client IP for 15 minutes, so stop before details.remaining reaches zero.
- In
details - remaining: attempts left before this key and IP lock.
{
"status": false,
"code": "payment_password_invalid",
"message": "The payment password is wrong.",
"requestId": "3c4d5e6f-7a8b-4c9d-8e1f-2a3b4c5d6e7f",
"retry": "no",
"provider": null,
"details": {
"remaining": 3
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#payment_password_invalid"
}ip_not_allowedHTTP 403
This address is not on the key's allowlist
retry- no
- What it means
- The key has an IP allowlist and the request came from an address outside it.
- Why it happens
- Your server's outbound address changed, the call was made from a laptop or a CI runner, or a proxy sits in front of your server. AquaPay reads the address its edge saw.
- What to do
- Add the address in Console → Developers → API keys, or call from an address that is listed. The message names the address AquaPay saw.
{
"status": false,
"code": "ip_not_allowed",
"message": "This key does not accept requests from 198.51.100.24.",
"requestId": "4d5e6f7a-8b9c-4d0e-9f2a-3b4c5d6e7f80",
"retry": "no",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#ip_not_allowed"
}scope_missingHTTP 403
The key may not do this
retry- no
- What it means
- The key is valid but lacks the scope this operation needs.
- Why it happens
- A read-only or pay-ins key was used to send a payout or to change a webhook endpoint.
- What to do
- Use a key that has the scope named in details.scope, or add the scope to this key in the console. Keep keys narrow: one for reading, one for payouts.
- In
details - scope: the missing scope.
{
"status": false,
"code": "scope_missing",
"message": "This key lacks the payouts:write scope.",
"requestId": "5e6f7a8b-9c0d-4e1f-8a3b-4c5d6e7f8091",
"retry": "no",
"provider": null,
"details": {
"scope": "payouts:write"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#scope_missing"
}account_suspendedHTTP 403
The gateway account is suspended
retry- no
- What it means
- AquaPay has suspended this gateway account. New pay-ins and payouts are refused; reads still work.
- Why it happens
- AquaPay staff suspended the account.
- What to do
- Ask AquaPay why, and what it takes to lift it. Retrying does not help.
{
"status": false,
"code": "account_suspended",
"message": "This gateway account is suspended. Contact AquaPay.",
"requestId": "6f7a8b9c-0d1e-4f2a-9b4c-5d6e7f8091a2",
"retry": "no",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#account_suspended"
}resource_not_foundHTTP 404
No such resource on this account
retry- no
- What it means
- Nothing with that id exists on the key's gateway account, or the path is not part of the API.
- Why it happens
- An id from another gateway account (a key sees only its own account), a test id used with a live key, or a mistyped path.
- What to do
- Check that the id and the key belong to the same account and mode. details.resource says what was looked for.
- In
details - resource: what was not found, such as payin, payout or route.
{
"status": false,
"code": "resource_not_found",
"message": "No pay-in payin_7h2kq9w3m1zt5 on this account.",
"requestId": "7a8b9c0d-1e2f-4a3b-8c5d-6e7f8091a2b3",
"retry": "no",
"provider": null,
"details": {
"resource": "payin"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#resource_not_found"
}idempotency_conflictHTTP 409
The key was already used for a different request
retry- new_key
- What it means
- An earlier request used this Idempotency-Key with a different method, path or body.
- Why it happens
- A key was reused for a new operation, or the body changed between a request and its retry (a new timestamp, a reordered field).
- What to do
- Send the new request with a new key. A retry must repeat the first request byte for byte.
{
"status": false,
"code": "idempotency_conflict",
"message": "This Idempotency-Key was used for a different request.",
"requestId": "8b9c0d1e-2f3a-4b4c-9d6e-7f8091a2b3c4",
"retry": "new_key",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#idempotency_conflict"
}idempotency_key_busyHTTP 409
The first request with this key is still running
retry- same_key
- What it means
- Two requests with the same Idempotency-Key overlapped. The first is still being worked on.
- Why it happens
- A client retried before the first attempt answered.
- What to do
- Wait a moment and send the same request with the same key; it then replays the first answer.
{
"status": false,
"code": "idempotency_key_busy",
"message": "A request with this Idempotency-Key is still running.",
"requestId": "9c0d1e2f-3a4b-4c5d-8e7f-8091a2b3c4d5",
"retry": "same_key",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#idempotency_key_busy"
}duplicate_referenceHTTP 409
Another payout holds this reference
retry- no
- What it means
- A payout that is processing, succeeded or in review already uses this reference. Nothing was created.
- Why it happens
- The same withdrawal was submitted twice with different idempotency keys.
- What to do
- Follow the payout in details.payout instead of creating another. A failed payout's reference can be used again.
- In
details - payout: the payout that holds the reference.
{
"status": false,
"code": "duplicate_reference",
"message": "Payout payout_c8n4r2v6y0jd5 already holds reference WD-20261203-7781 and is processing.",
"requestId": "0d1e2f3a-4b5c-4d6e-9f80-91a2b3c4d5e6",
"docUrl": "https://aquapay.bhimpay.online/docs/errors#duplicate_reference",
"retry": "no",
"provider": null,
"details": {
"payout": {
"id": "payout_c8n4r2v6y0jd5",
"reference": "WD-20261203-7781",
"attemptKey": "9b2f61c4-7d0e-4a8b-b3f5-2c6e8a1d4f70",
"status": "processing",
"amount": "1500.00",
"fee": "15.00",
"total": "1515.00",
"currency": "INR",
"beneficiary": {
"type": "bank",
"name": "Ravi Kumar",
"masked": "••••6789"
},
"utr": null,
"orderId": "AQW2612030918000781",
"providerOrderId": "CPW55012",
"failure": null,
"version": 2,
"createdAt": "2026-12-03T09:18:41Z",
"updatedAt": "2026-12-03T09:18:42Z"
}
}
}attempt_closedHTTP 409
This attempt key was closed
retry- new_key
- What it means
- The idempotency key was retired with POST /payout-attempts/{attemptKey}/close and can never create a payout.
- Why it happens
- Your recovery code closed the attempt after a lost answer, and the original request was then sent again.
- What to do
- If the payout should still be made, create it with a new key.
- In
details - key: the closed attempt key.
{
"status": false,
"code": "attempt_closed",
"message": "This attempt key was closed and can never create a payout.",
"requestId": "1e2f3a4b-5c6d-4e7f-8091-a2b3c4d5e6f7",
"retry": "new_key",
"provider": null,
"details": {
"key": "9b2f61c4-7d0e-4a8b-b3f5-2c6e8a1d4f70"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#attempt_closed"
}balance_insufficientHTTP 409
The balance does not cover the payout and its fee
retry- no
- What it means
- The available balance is less than the payout's amount plus its fee. Nothing was created or held.
- Why it happens
- Payouts in flight hold part of the balance, or pay-ins have not been credited yet.
- What to do
- Compare details.available with details.required. GET /payouts/quote does the arithmetic before you send.
- In
details - available and required, as money strings.
{
"status": false,
"code": "balance_insufficient",
"message": "Available 1200.00 does not cover 1515.00 (amount and fee).",
"requestId": "2f3a4b5c-6d7e-4f80-91a2-b3c4d5e6f708",
"retry": "no",
"provider": null,
"details": {
"available": "1200.00",
"required": "1515.00"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#balance_insufficient"
}wrong_stateHTTP 409
The resource is not in a state that allows this
retry- no
- What it means
- The action does not apply to the resource as it stands.
- Why it happens
- Binding a UTR to a pay-in that already succeeded, for example.
- What to do
- Read the resource: details.status is its status now.
- In
details - status: the resource's status.
{
"status": false,
"code": "wrong_state",
"message": "A UTR can be bound only to a pending, failed or expired pay-in; this one succeeded.",
"requestId": "3a4b5c6d-7e8f-4091-a2b3-c4d5e6f70819",
"retry": "no",
"provider": null,
"details": {
"status": "succeeded"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#wrong_state"
}utr_in_useHTTP 409
The UTR belongs to another pay-in
retry- no
- What it means
- That UTR is already bound to a different pay-in of this account. Nothing changed.
- Why it happens
- A payer sent the same UTR for two orders, or it was bound to the wrong pay-in earlier.
- What to do
- Look at the pay-in in details.payinId. One bank transfer settles one pay-in.
- In
details - payinId: the pay-in that holds the UTR.
{
"status": false,
"code": "utr_in_use",
"message": "UTR 416512345678 is already bound to another pay-in.",
"requestId": "4b5c6d7e-8f90-41a2-b3c4-d5e6f708192a",
"retry": "no",
"provider": null,
"details": {
"payinId": "payin_7h2kq9w3m1zt4"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#utr_in_use"
}unsupported_by_providerHTTP 422
This account's provider does not offer that
retry- no
- What it means
- The method, operation or currency is not available on this gateway account. Nothing was created.
- Why it happens
- A UPI payout or a UTR binding on RSPAY, or another rule of the account's provider.
- What to do
- Read GET /account before offering an option: it lists the payout methods and says whether UTR binding works.
{
"status": false,
"code": "unsupported_by_provider",
"message": "RSPAY pays out to bank accounts only; upi is not offered on this account.",
"requestId": "5c6d7e8f-9001-42b3-84d5-e6f708192a3b",
"retry": "no",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#unsupported_by_provider"
}provider_refusedHTTP 422
The provider answered and refused
retry- new_key
- What it means
- The provider said no. The pay-in or payout exists and is failed; a payout's hold is released. On bind-utr the pay-in is unchanged.
- Why it happens
- The beneficiary is invalid or their bank is not supported, the provider will not take the amount, or its own float is short. provider.reason says which, and provider.message carries the provider's words.
- What to do
- Fix what provider.reason names, then send a new request with a new idempotency key. The failed one is in details.payin or details.payout.
- In
details - payin or payout: the failed resource.
{
"status": false,
"code": "provider_refused",
"message": "COWPAY refused the payout: This ifsc is not supported: AIRP0000001",
"requestId": "6d7e8f90-0112-43c4-95e6-f708192a3b4c",
"docUrl": "https://aquapay.bhimpay.online/docs/errors#provider_refused",
"retry": "new_key",
"provider": {
"name": "cowpay",
"stage": "create",
"reason": "beneficiary_bank_unsupported",
"code": "1002",
"message": "This ifsc is not supported: AIRP0000001"
},
"details": {
"payout": {
"id": "payout_v3b7n1m5q9w2e",
"reference": "WD-20261203-7790",
"attemptKey": "4c8e2a6f-1b3d-4f5a-9c7e-0d2b4a6c8e1f",
"status": "failed",
"amount": "1200.00",
"fee": "12.00",
"total": "1212.00",
"currency": "INR",
"beneficiary": {
"type": "bank",
"name": "Anil Sharma",
"masked": "••••0001"
},
"utr": null,
"orderId": "AQW2612030918000790",
"providerOrderId": null,
"failure": {
"reason": "beneficiary_bank_unsupported",
"message": "This ifsc is not supported: AIRP0000001"
},
"version": 2,
"createdAt": "2026-12-03T09:18:42Z",
"updatedAt": "2026-12-03T09:18:43Z"
}
}
}payment_password_lockedHTTP 423
Too many wrong payment passwords
retry- same_key, after Retry-After
- What it means
- This key and client IP are locked out of password-protected actions. Even a correct password is refused until the lock ends.
- Why it happens
- Five wrong passwords in a row from this key and IP, or twenty on the account within an hour from pairs that have never sent a correct one.
- What to do
- Wait for Retry-After (details.lockedUntil), then send the same request with the correct password. If you did not make the wrong attempts, roll the key.
- In
details - lockedUntil: when the lock ends.
{
"status": false,
"code": "payment_password_locked",
"message": "Too many wrong payment passwords from this key and address; try again after 09:33 UTC.",
"requestId": "7e8f9001-1223-44d5-a6f7-08192a3b4c5d",
"retry": "same_key",
"provider": null,
"details": {
"lockedUntil": "2026-12-03T09:33:00Z"
},
"docUrl": "https://aquapay.bhimpay.online/docs/errors#payment_password_locked"
}provider_unreachableHTTP 424
The provider could not be reached
retry- new_key on create; same_key on refresh and bind-utr
- What it means
- On create, the request provably never left AquaPay: the pay-in or payout is failed and a payout's hold is released. On refresh or bind-utr, nothing was learnt and nothing changed.
- Why it happens
- The provider is down or timing out before accepting connections.
- What to do
- On create, try again with a new idempotency key. On refresh or bind-utr, send the same request again in a while.
- In
details - payin or payout, when the error is about one.
{
"status": false,
"code": "provider_unreachable",
"message": "PAYME is unreachable; the pay-in was not submitted.",
"requestId": "8f900112-2334-45e6-b708-192a3b4c5d6e",
"docUrl": "https://aquapay.bhimpay.online/docs/errors#provider_unreachable",
"retry": "new_key",
"provider": {
"name": "payme",
"stage": "create",
"reason": "provider_unreachable",
"code": null,
"message": "connect ECONNREFUSED"
},
"details": {
"payin": {
"id": "payin_q8w2e6r0t4y1u",
"reference": "DEP-20261203-0060",
"status": "failed",
"amount": "700.00",
"paidAmount": null,
"currency": "INR",
"fee": "17.50",
"net": "682.50",
"utr": null,
"orderId": "AQD2612030925000060",
"providerOrderId": null,
"nextAction": null,
"expiresAt": "2026-12-03T11:25:00Z",
"failure": {
"reason": "provider_unreachable",
"message": "connect ECONNREFUSED"
},
"version": 2,
"createdAt": "2026-12-03T09:25:00Z",
"updatedAt": "2026-12-03T09:25:01Z"
}
}
}too_many_requestsHTTP 429
The account is over its rate limit
retry- same_key, after Retry-After
- What it means
- The request was not processed.
- Why it happens
- More than 25 requests a second across the account's keys, or more than 5 a second of the operations that call a provider.
- What to do
- Wait for Retry-After and send the same request with the same key.
{
"status": false,
"code": "too_many_requests",
"message": "This account sent more than 25 requests a second.",
"requestId": "90011223-3445-46f7-8819-2a3b4c5d6e7f",
"retry": "same_key",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#too_many_requests"
}server_errorHTTP 500
AquaPay failed before acting
retry- same_key
- What it means
- Something broke inside AquaPay before the request was carried out. Nothing was created.
- Why it happens
- A fault on AquaPay's side.
- What to do
- Send the same request again with the same idempotency key. If it keeps happening, send AquaPay the requestId.
{
"status": false,
"code": "server_error",
"message": "AquaPay failed before acting on the request.",
"requestId": "a0112233-4556-4708-992a-3b4c5d6e7f80",
"retry": "same_key",
"provider": null,
"docUrl": "https://aquapay.bhimpay.online/docs/errors#server_error"
}provider_outcome_unknownHTTP 502
The provider may have acted
retry- refresh for a payout; new_key for a pay-in
- What it means
- The provider's answer was a timeout, a 5xx or unreadable. A payout stays processing with its amount held. A pay-in stays pending with no nextAction and expires on its own.
- Why it happens
- The provider accepted the connection and then failed to give a clear answer.
- What to do
- For a payout, never create it again: refresh it, or wait for its webhook. For a pay-in, open a new one with a new key; the payer was shown nothing.
- In
details - payin or payout: the resource as it stands.
{
"status": false,
"code": "provider_outcome_unknown",
"message": "COWPAY payout submission failed: no answer within 20 s. The payout is held processing; do not create it again.",
"requestId": "b1223344-5667-4819-a3b4-c5d6e7f8091a",
"docUrl": "https://aquapay.bhimpay.online/docs/errors#provider_outcome_unknown",
"retry": "refresh",
"provider": {
"name": "cowpay",
"stage": "create",
"reason": null,
"code": null,
"message": "no answer within 20 s"
},
"details": {
"payout": {
"id": "payout_c8n4r2v6y0jd5",
"reference": "WD-20261203-7781",
"attemptKey": "9b2f61c4-7d0e-4a8b-b3f5-2c6e8a1d4f70",
"status": "processing",
"amount": "1500.00",
"fee": "15.00",
"total": "1515.00",
"currency": "INR",
"beneficiary": {
"type": "bank",
"name": "Ravi Kumar",
"masked": "••••6789"
},
"utr": null,
"orderId": "AQW2612030918000781",
"providerOrderId": "CPW55012",
"failure": null,
"version": 2,
"createdAt": "2026-12-03T09:18:41Z",
"updatedAt": "2026-12-03T09:18:42Z"
}
}
}