Overview
The Yala API uses standard ISO codes for currencies and countries:
- Currency codes: ISO 4217 3-letter codes
- Country codes: ISO 3166-1 alpha-3 3-letter codes
Common Currency Codes
Common Country Codes
Discovering Valid Codes via API
Method 1: Use GET /pairs
The GET /pairs endpoint returns enabled currency pairs for your business. This shows which currencies are available:
Response includes baseCurrency and quoteCurrency codes.
Method 2: Use GET /methods
The GET /methods endpoint requires you to specify a corridor. If you’re unsure which codes to use, try common combinations:
If the corridor is not enabled or invalid, you’ll receive an error message indicating which parameter is incorrect.
Official ISO Standards
For complete reference lists:
Best Practices
- Validate codes before API calls - Use the reference table above or ISO standards to ensure codes are correct
- Use GET /pairs first - Check which currency pairs are enabled for your business before building your UI
- Handle errors gracefully - Invalid currency or country codes will return
400 Bad Request with a clear error message
- Cache enabled pairs - The list of enabled pairs doesn’t change frequently, so cache the response from
GET /pairs
If you’re building a UI, call GET /pairs on page load to populate currency selection dropdowns with only enabled options.