Countries

Use these methods to obtain information about the countries that can be selected by clients when signing up to the B2Core UI.

GET[host]/api/v2/my/countries

Get a list of countries

GET[host]/api/v2/my/countries/{countryId}

Get country details

Get a list of countries

Use this method to obtain a list of countries that clients can select when signing up to the B2Core UI (if they are required to select a country during registration).

Request

Header parameters:

  • accept-language: <string>

  • Accept: application/json

  • Authorization: Bearer <access_token>

GET[host]/api/v2/my/countries

curl --location --request GET 'https://host.name/api/v2/my/countries?limit=10&offset=0' \
--header 'accept-language: <string>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

A response includes an array of Country objects providing information about the available countries.

Get country details

Use this method to obtain detailed information about a specific country.

Request

Header parameters:

  • accept-language: <string>

  • Accept: application/json

  • Authorization: Bearer <access_token>

Path parameters:

countryId required

The country identifier.

GET[host]/api/v2/my/countries/{countryId}

curl --location --request GET 'https://host.name/api/v2/my/countries/840' \
--header 'accept-language: <string>' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

A response includes a Country object providing information about the specified country.