Actions68
- Account Actions
- Bank Account Actions
- Code List Actions
- Contact Actions
- Event Actions
- Invoice Actions
- Ledger Actions
- Order Actions
- Tax Report Actions
- Tax Report Setting Actions
- Transport Actions
- Web Hook Actions
Code List → Get Countries
AI-generatedSummary
Retrieve the list of countries supported by the B2Brouter API according to the selected environment.
Inputs
- Environment — Select the API environment to use; options are Test (Staging) or Live (Production), defaulting to Test (Staging).
Output shape
a list of country objects each containing country name and ISO 3166-1 alpha-2 code.
The operation performs a GET request to the endpoint /code_lists/countries on the chosen environment's base URL. The returned data is an array of countries, used typically for selection lists or validation. No pagination is involved, and errors related to authentication or request validation are handled by the underlying API request method.
Examples
Example 1: Getting the list of countries for selection or validation
Set the Resource to 'Code List', Operation to 'Get Countries', and select the Environment ('Test' or 'Live'). Execute to receive an array of countries with their names and codes.