Getting Started
Go from zero to your first authenticated collection request.
Step 1: Create an account
Sign in to the Korba Xchange dashboard to access your API credentials, transaction history, sandbox controls, and webhook configuration.
Go to the Korba Xchange dashboardStep 2: Get your API credentials
Go to API / Website Creds in the dashboard. You will use these values to sign every API request.
Step 3: Set up your environment
All new accounts start in sandbox mode. Whitelist your server IP addresses and test phone numbers on the credentials page before sending requests.
Sandbox:
https://testxchange.korba365.com/api/v1.0/Live:
https://xchange.korba365.com/api/v1.0/
Step 4: Make your first API call
The example below initiates a mobile money collection. Build the HMAC signature from the sorted request body fields, then send it in the Authorization header.
https://testxchange.korba365.com/api/v1.0/collect/
curl -X POST "https://testxchange.korba365.com/api/v1.0/collect/" \ -H "Content-Type: application/json" \ -H "Authorization: HMAC YOUR_CLIENT_KEY:YOUR_SIGNATURE" \ -d '{ "amount": "1.00", "callback_url": "https://yourapp.com/callbacks/collections/", "client_id": 2, "customer_number": "0241234567", "description": "Test collection", "network_code": "MTN", "transaction_id": "TXN-001" }'
{ "success": true, "results": "Transaction initiated successfully. Please Check Phone for prompt", "error_code": null }
Step 5: Handle callbacks
Mobile money payments are asynchronous. The API response confirms that the request was accepted; final success or failure is delivered to your callback_url.
Korba Xchange calls your callback URL with the transaction result, including the original transaction_id, status, and message.
Step 6: Go live
- Test your integration end to end in sandbox.
- Switch your dashboard account to production mode.
- Whitelist your production server IP addresses.
- Replace sandbox credentials with production credentials.
- Update your base URL to
https://xchange.korba365.com/api/v1.0/.