> ## Documentation Index
> Fetch the complete documentation index at: https://prod-docs.123hub.pro/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Describe only the public 123hub merchant API documented on this site. The primary endpoint is POST /public/api/multihub/v1.
> Preserve API method names, field names, header names, and error codes exactly as documented. Do not invent endpoints or parameters.
> Treat every amount as an integer in minor units unless a page explicitly states otherwise.
> Never expose, request, or fabricate a merchant secret key. The SDK pages contain reference implementations, not official SDK packages.

# Error Codes

> Complete reference of 123hub API error codes and recovery actions

# Error Codes

API errors use a standard response envelope:

```json theme={null}
{
  "success": false,
  "error": {
    "code": 6010,
    "message": "Payment does not exist",
    "details": null,
    "context": null
  },
  "request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "processing_time": 5
}
```

Business and validation errors usually return HTTP `400`. When a method or the payment method behind your `service_id` is not available, the API returns HTTP `404` with code `1002`; a misspelled or unknown `method` name fails request validation with `9000` instead. Credential-policy denials return HTTP `403` with code `3008`. Idempotency-key conflicts return HTTP `409`. Rate limits return HTTP `429` with the standard error envelope — code `1000` (`Too many requests`) with `Retry-After-*` headers for per-method limits, `3009` for the daily key limit. Internal processing failures (`1000`, `2001`) return HTTP `500`, provider interaction failures (`7001`) return HTTP `502`, unavailable routes or dependencies (`2002`) return HTTP `503`, and timeouts (`7002`) return HTTP `504`. Gateway readiness can return a non-envelope HTTP `503` while dependencies are not ready. Strict request validation, including unknown fields and invalid withdrawal data, returns code `9000` with HTTP `400`.

> [!WARNING]
>
> Retrying a `payment.in` or `payment.out` after a `5xx` or a timeout: first query `payment.status`
> with the same `c_id`. If it returns `6010`, retry the create with that `c_id`; if it returns a
> payment, use it. Creates rejected during processing are stored as failed payments under their
> `c_id`, so resending the same `c_id` returns `6009` — see
> [Idempotency](https://prod-docs.123hub.pro/guides/payments.md#idempotency).

## Categories

| Range | Category |
| - | - |
| `1xxx` | Common API and system errors |
| `2xxx` | Payment hub routing/processing errors |
| `3xxx` | Authentication and application access errors |
| `4xxx` | Provider account errors |
| `5xxx` | Customer account errors |
| `6xxx` | Payment errors |
| `7xxx` | Provider processing errors |
| `8xxx` | Data and status errors |
| `9xxx` | Validation errors |

## Complete Reference

These codes are returned by the current API.

| Code | Message | HTTP | Retry | Recovery |
| - | - | :-: | :-: | - |
| `1000` | Common error / Internal error | 500 (429 for rate limits) | Yes | HTTP `500`: for creates, query `payment.status` by `c_id` before retrying; contact support with `request_id` if it persists. HTTP `429` (`Too many requests`): back off and honour the `Retry-After-*` header. |
| `1002` | The method does not exist / is not available (for payments: `Payment method is not available`) | 404 | No | The route behind `service_id` is not enabled for your account or is outside its availability hours. Contact your account manager. |
| `1005` | Invalid request format | 400 | No | Read `error.details.description` (missing field) or `message` (invalid field, for example a numeric, blank or over-255-character `c_id`) and fix the request. |
| `1013` | Idempotency key was already used with a different request | 409 | No | Recover the original operation or use a new key only for a genuinely new logical operation. |
| `2001` | Unexpected error (`Internal payment processing error`) | 500 | Yes, after a status check | For creates the payment is usually stored as failed under your `c_id`: query `payment.status`; send a new `c_id` if you still need the payment. Contact support with `request_id`. |
| `2002` | The payment provider is not available | 503 | Depends | `No available route for service_id`: the `service_id` does not exist or belongs to the other direction — fix it, do not retry. `Payment service temporarily unavailable` (for example the same `c_id` is still being created): wait, query `payment.status`, retry later. |
| `3000` | Authentication error | 400 | No | Recompute `X-Data-Hash` (lowercase hex) from the exact raw body and secret; check the replay headers; check that the key has the scope for the method. |
| `3001` | Missing / incorrect X-Data-Application-Id header | 400 | No | Send a positive integer application ID. |
| `3002` | Missing / incorrect X-Data-Hash header | 400 | No | Send a 128-character lowercase SHA-512 hex hash. |
| `3003` | The app does not exist | 400 | No | Check the application ID, and use test keys with the test account and production keys with production. |
| `3004` | The app is disabled (for payments: `Provider account disabled for service_id`) | 400 | No | The route behind `service_id` is disabled. Contact your account manager. |
| `3005` | The app is blocked | 400 | No | The merchant account is not active. Contact support or account management. |
| `3006` | IP address not included in the IP whitelist | 400 | No | Send requests from an allowlisted IP. |
| `3008` | Credential access policy does not allow this payment route / Credential access policy denied | 403 | No | Use a credential allowed for this payment currency and `service_id` or ask your account manager to update the credential access policy. |
| `3009` | Credential daily request limit exceeded | 429 | Yes, after UTC day rollover | Stop requests until the next UTC day or ask an administrator to raise the credential limit. |
| `6001` | Incorrect transaction amount | 400 | No | Send a positive integer amount in minor units (fractional values return `9000`). |
| `6002` | Incorrect currency code | 400 | No | Match `amount.currency` to the `service_id` route currency. |
| `6004` | Insufficient funds | 400 | No | Check `balance.get` and top up; send the withdrawal again with a new `c_id`. |
| `6005` | The monthly limit of input/output is exceeded | 400 | No | Wait for the next merchant-timezone month or request a payout-limit change; use a new `c_id`. |
| `6006` | The daily limit of input/output is exceeded | 400 | No | Wait for the next merchant-timezone day or request a payout-limit change; use a new `c_id`. |
| `6009` | Payment already exists | 400 | No | Use `payment.status` with the existing `c_id`. |
| `6010` | Payment does not exist | 400 | No | Verify `c_id` or `h_id`. `p_id` is not a lookup key. |
| `6035` | Exceeded Payments | 400 | No | Contact account management to review payout limits, including since-last-settlement rules; use a new `c_id`. |
| `6043` | Payment canceled | 400 | No | Create a new payment if needed. |
| `7001` | Error of interaction between payment provider and payment system (`Payment provider error`) | 502 | Yes, after a status check | `details.provider_status_code` may be present. For creates the payment is stored as failed: query `payment.status` and retry with a new `c_id`. |
| `7002` | Payment provider not available (`Payment service timeout` / `Payment service temporarily unavailable`) | 504 | Yes | For creates, query `payment.status` by `c_id` before retrying — the payment may already exist. |
| `8600` | Invalid bank credentials | 400 | No | Verify account number/IBAN/CBU/CVU/CLABE/IFSC. |
| `8801` | Current payment or operation status does not allow this action | 400 | No | Query status before retrying the action. |
| `9000` | Validation error (`Payment request validation failed`, `Withdrawal data is invalid`) | 400 | No | With `details.fields`: fix those fields (unknown fields, wrong types, invalid email/URL, unknown `method`). Without details: amount outside the route limits or invalid withdrawal data — the `c_id` is used up, send the corrected request with a new `c_id`. |

### Reserved codes

The following codes are defined for compatibility but are not returned by the current API. Handle
them like any unknown code: log `request_id` and contact support.

| Code | Message |
| - | - |
| `1001` | Endpoint not found |
| `1003` | Incorrect use of API |
| `1004` | The payment system does not exist for this application |
| `1006` | Invalid Content-Type header |
| `1007` | HTTP Method Not Allowed |
| `1008` | This method not allowed for payment system |
| `1009` | Invalid provider |
| `1010` | Currency does not exist / is not available |
| `1011` | The balance is not set for this application |
| `1012` | There are not enough funds on the application |
| `2000` | Payment hub error |
| `3007` | Application Settings Error |
| `4000` | Payment provider account error |
| `4001` | The authorization data to the payment provider incorrectly |
| `4002` | Security issues when interacting with the provider |
| `5000` | Customer account error |
| `5001` | Account with the payment provider not found |
| `5002` | The account in the payment service provider is blocked |
| `6000` | Payment error |
| `6003` | Payment verification required |
| `6011` | Payment expired |
| `6012` | Payment canceled by user |
| `6013` | The ban on the payment |
| `6034` | Payment canceled by payment provider |
| `6044` | Payment declined |
| `6045` | The user's waiting time during the payment has been exceeded |
| `7000` | Payment provider error |
| `7003` | The problem of interaction with the payment provider |
| `8000` | Data error |
| `8001` | An error occurred while processing the data |
| `8601` | Invalid bank code |

## Common Fixes

| Symptom | Likely Code | Fix |
| - | - | - |
| Signature mismatch | `3000` | Hash the exact raw JSON string sent in the HTTP body. |
| Missing payer on deposit | `1005` | Add `params.payment.payer`. |
| Missing recipient account on withdrawal | `1005` | Add `params.payment.receiver.bank.account.id`. |
| Duplicate merchant reference | `6009` | Query the existing payment by `c_id`. |
| Currency route mismatch | `6002` | Use the currency assigned to the `service_id`. |
| Misspelled or unknown method | `9000` | Use one of the documented API methods. |
| Route not enabled for your account | `1002` (HTTP 404) | Ask your account manager to enable the `service_id`. |
| Withdrawal `service_id` used for a deposit (or the reverse) | `2002` | Use the `service_id` issued for that direction. |
| Resent a create after a failure | `6009` | Query `payment.status` by `c_id`; send a new `c_id` for a new attempt. |
| Payment methods return `3000` although the signature is right | `3000` | Check the key's scopes and replay headers. |
| Same operation key, changed body | `1013` | Retry the original payload or use a new key for a new operation. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.