Use Postman and other API clients
Import the Hubtel sandbox collection, set credentials and account numbers, and send a test request.
Set up Postman
- Import the Hubtel v1 collection and the Hubtel Sandbox environment.
- Select Hubtel Sandbox as the active environment.
- In Workbench → Test keys, copy your sandbox API ID, API key and collection account number into
api_id,api_keyandcollection_account.sandbox_urlis already set. - Open a request and swap the example values for your own: customer details, references, callback URL and any path parameters still left as placeholders. Use a test number to control the result.
The collection puts collection_account into account-number paths for you, with two exceptions. Payouts and commission services need your disbursement account number, so replace it in those requests. Checkout also needs merchantAccountNumber in the JSON body. The collection won't fill in either of these.
Start with Charge a mobile money wallet. A response with ResponseCode 0001 only means Hubtel accepted the request. The payment may still be pending, so check the final result in your callback handler, or call Check a collection's status with the same reference. Test your integration covers callback setup and the test outcomes.
Your environment file contains your sandbox keys, so don't share it.
Use another client
Any client that imports OpenAPI, such as Bruno or Insomnia, can use the service's OpenAPI spec. Check the server URL before you send a request. The service specs point at production hosts, and only sandbox-v1.json uses sandbox paths. If you'd rather use the command line, copy the cURL example from the service guide and convert the URL using the sandbox URL mapping.