> ## 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.

# Go-live checklist

> Everything to verify before your first real payment.

Run through this list with your test credentials. When every item passes, request production
credentials and switch over.

> [accordion] Authentication
>
> * [ ] Compute `X-Data-Hash` correctly as `sha512(requestBody + secretKey)`
> * [ ] Send required `X-Data-Application-Id` and a correct `X-Data-Hash`; if testing replay proof, send both `X-Data-Timestamp` and `X-Data-Nonce`
> * [ ] Verify `gateway.ping` returns a successful response
> * [ ] Confirm your key has the scopes for every method you call — a missing scope returns `3000`, like a bad signature ([Key scopes](https://prod-docs.123hub.pro/authentication.md#key-scopes-and-ip-allowlist))
> * [ ] Store credentials securely (environment variables, not hardcoded)

> [accordion] Payment Creation
>
> * [ ] Create deposit payments (`payment.in`) successfully
> * [ ] Create withdrawal payments (`payment.out`) successfully
> * [ ] Handle error responses gracefully (check `success` field)
> * [ ] Store `h_id` from response for subsequent status queries
> * [ ] Send unique `c_id` per payment to avoid duplicates (error 6009)
> * [ ] After a create rejected during processing (`9000` without details, `6004`, `6005`, `6006`, `6035`, `7001`, `2001`), send the corrected request with a new `c_id` ([Idempotency](https://prod-docs.123hub.pro/guides/payments.md#idempotency))
> * [ ] Send the first and last name in separate fields: `person.first_name` and `person.last_name`

> [accordion] Payment Status
>
> * [ ] Retrieve payment status using `payment.status` with `h_id`
> * [ ] Handle all status values: `created`, `processing`, `success`, `error`, `canceled`, `declined`, `refunded`, `partially_refunded`
> * [ ] Check the `final` field to determine if a payment has reached a terminal state
> * [ ] Check the `success` field to determine if a final payment was successful

> [accordion] Webhooks
>
> * [ ] Receive webhook notifications
> * [ ] Verify webhook signatures
> * [ ] Handle payment completion events
> * [ ] Handle payment failure events
> * [ ] Process events idempotently

> [accordion] Error Handling
>
> * [ ] Success returns HTTP 200; errors usually return HTTP 400 (some use 403/404/409/429/5xx) -- always check `success` field
> * [ ] Handle error code 3000 (authentication error / invalid signature)
> * [ ] Handle error code 3003 (application not found)
> * [ ] Handle error code 2002 (no route available)
> * [ ] Handle error code 6004 (insufficient funds for withdrawals)
> * [ ] Handle error code 1005 (missing or invalid fields)
> * [ ] On network timeouts and `5xx`, query `payment.status` with the same `c_id` first; retry the create with that `c_id` only if it returns `6010`

> [accordion] Amounts and limits
>
> * [ ] Send amounts as integers in minor units of the currency (`BIF` has no decimals)
> * [ ] Validate amounts against the limits of each `service_id` — out-of-limit amounts return `9000` without details
> * [ ] Reconcile with the amount in the webhook: on some routes the paid amount can differ from the requested one

> [accordion] Country specifics
>
> * [ ] Send the country-specific fields listed on your [country page](https://prod-docs.123hub.pro/countries/overview.md)
> * [ ] Show the payer what the response returns: page, bank details, QR or instruction ([Deposit flow types](https://prod-docs.123hub.pro/guides/payments.md#deposit-flow-types))
> * [ ] Store full recipient details of withdrawals — `payment.status` and webhooks do not return `receiver.bank` or `custom_fields`
> * [ ] Go through the "Things to know" section of your country page

> [accordion] Balance
>
> * [ ] Check balance using `balance.get` before withdrawals
> * [ ] Handle insufficient funds errors (error code 6004)

## Switch to production

**1. Complete Testing**

Ensure all checklist items pass with the test credentials and routes assigned to your account

**2. Request Production Credentials**

Contact your 123hub account manager or [support@123hub.pro](mailto:support@123hub.pro) to request production `application_id` and `secret_key`

**3. Update Configuration**

Replace test `application_id` and `secret_key` with production credentials in your production environment

**4. Update Webhook URLs**

Ensure webhooks point to your production server

**5. Monitor**

Watch the dashboard for your first live transactions

> [!WARNING]
>
> Never use production credentials in development or testing environments. Always keep test and production credentials separate.

> [!TIP]
>
> Requests from servers outside your application's IP allowlist are rejected with `3006`. Send your
> production server IPs to your account manager before the switch.


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