B2Brouter

Automate E-Invoicing with B2Brouter API

Code List → Get Countries

AI-generated

Summary

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.

Links

Discussion