Prerequisites
- An active Yala sandbox account. Request access by emailing [email protected].
- A sandbox API key (
x-api-key) with payouts permissions. - A registered business and at least one approved beneficiary in the sandbox dashboard.
- Funded wallets in the Yala app for the currencies you plan to send. Yala does not issue standalone virtual account numbers; wallet balances are managed in-app.
1. Configure environments
Choose the right base URL
Choose the right base URL
| Environment | Base URL |
|---|---|
| Production | https://gateway.useyala.com/api/public/ |
| Sandbox | https://gateway.staging.useyala.com/api/public/ |
Store your API key securely
Store your API key securely
Save the
x-api-key in your secret manager and inject it at runtime. Avoid hardcoding keys in source control.2. Quote a payout
Call the calculator endpoint to surface total cost, exchange rates, and settlement timing before initiating a payout.3. Initiate the payout
Use the quote data to build a payout request. ThebusinessId and beneficiary details must already exist in Yala.
4. Track payout status
- Poll the
statusfield inPayoutDatato drive user-facing updates (e.g.,PENDING_APPROVAL,PROCESSING,COMPLETED). - Record the
meta.statusChangetimeline for audit logs. - Contact support to enable real-time webhooks for automated status notifications.