Skip to main content

Testing Guide

Use this guide to validate request signing, payment creation, status polling, balances, webhooks, and error handling before production traffic.

Test vs Production Mode

Test and production use the same API endpoint (POST /public/api/multihub/v1). The environment is determined by your credentials and the service routes assigned during onboarding. Your 123hub account manager will confirm which test credentials and low-value routes are available for your account.

Getting Test Credentials

Test credentials are provided by the 123hub team during onboarding. You will receive:
  • application_id — an integer identifying your test application
  • secret_key — a private key used to sign requests in test mode
1

Request credentials

Contact your 123hub account manager or support@123hub.pro to request test credentials.
2

Verify connectivity

Use the gateway.ping method to confirm your credentials work.
Contact support@123hub.pro if you need test credentials.

Test Credential Behavior

Payments

  • Payments are created and go through normal status transitions
  • Route behavior depends on the account and service_id configuration confirmed during onboarding
  • Webhooks are delivered normally
  • All API responses mirror production behavior

Balance

  • balance.get returns the balances configured for the credential environment
  • Confirm available currencies and balance funding with your account manager before withdrawal tests
  • Balance changes follow the same response format as production

Webhooks

  • Webhooks are delivered to your configured endpoints
  • Use webhook testing to verify your integration
  • Same signature verification as production

Payment Scenarios

Successful Deposit

Create a deposit payment using payment.in — it starts as created or processing and then reaches a final status:
For the request and response of a specific market, use its country page.

Successful Withdrawal

Create a withdrawal payment using payment.out (requires sufficient available balance on the configured route):

Check Payment Status

Query the status of a payment using payment.status:

Error Response Example

Errors are returned with success: false and usually HTTP 400 (see Error Codes for the codes that use 403, 404, 409, 429 or 5xx). Always check the success field. Here is an example of an invalid signature error:

Testing Webhooks

Local Development

For local development, use a tunneling service like ngrok to expose your local server:

Before Going Live

Work through the Go-live checklist with your test credentials before you request production access.

Error Code Reference

Common Testing Mistakes

Using Production Credentials in Dev

Always use test application_id and secret_key in development

Skipping Signature Verification

Always verify webhook signatures, even in test mode

Not Testing Errors

Test error scenarios, not just happy paths. Verify your code checks the success field in every response.

Hardcoding Credentials

Use environment variables for application_id and secret_key

Need Help?

Developer Support

Contact our team if you have questions about testing