API Playground
All API endpoints in this documentation include an interactive playground that allows you to test requests directly from your browser.Setup Your API Key
Before testing, you need to configure your authentication:Get Your Merchant API Key
Contact DCash support or log into your merchant dashboard to obtain your API
key
Configure the Playground
Click the “Authorization” button in the playground and enter your API key in
the
x-api-key fieldTest Credentials
For sandbox testing, use these credentials:Testing Different Endpoints
OAuth Login (Browser-based)
The OAuth endpoint opens in a new browser tab when you click “Send” in the playground.
- Go to the OAuth Login page
- Enter your
app_idandredirect_urlin the playground - Click “Send” to open the OAuth page in a new browser tab
- Log in with the test credentials
- Complete the authentication flow
- Your webhook will receive the authorization token
Get Payment Providers
Deposits (C2B)
Check Transaction Status
Withdrawals (B2C)
Troubleshooting
Invalid URL Error
Invalid URL Error
Make sure the base URL is configured correctly in the API settings. The base URL should be
https://sandbox.dcash.africa401 Unauthorized
401 Unauthorized
400 Bad Request
400 Bad Request
- Verify all required fields are included in the request body - Check that the
payment_provideris from the list of available providers - Ensure amounts are valid numbers
Webhook Not Received
Webhook Not Received
- Verify your webhook URL is publicly accessible
- Use the “Check Transaction Status” endpoint to verify the transaction completed
- Check your webhook server logs for incoming requests
Best Practices
Use Valid Webhooks
Always use a real, publicly accessible webhook URL for testing deposits
Test Small Amounts
Start with small amounts (e.g., 10 USD) when testing
Save Tokens
Store your test Bearer tokens for reuse during testing
Check Providers First
Always call “Get Payment Providers” before initiating transactions
Next Steps
Ready to integrate? Check out the Authentication guide to
get started with your application.