Skip to content
You are reading the pinned copy of v1.0, which is also the latest release. Read the latest.

Countries (admin API)

Admin routes of the countries module. Every route needs a staff session and the permission named on it; send X-Resolve-Locale: false to receive every locale of a translatable field for editing.

List countries with enabled/default flags

Responses:

  • 200: Countries retrieved.

Bulk update enabled countries + default

Request body: UpdateEnabledCountriesDto.

Responses:

  • 200: Updated.
  • 400: Empty enabled list or default not in enabled set.
  • enabled (array of "AE", "AU", "BH", "BR", "CA", "DE", "EG", "ES", "FR", "GB", "ID", "IN", "IT", "JO", "JP", "KR", "KW", "LB", "LY", "MA", "MX", "MY", "NL", "OM", "PK", "QA", "SA", "SE", "SG", "TN", "US", required).
  • defaultCode ("AE", "AU", "BH", "BR", "CA", "DE", "EG", "ES", "FR", "GB", "ID", "IN", "IT", "JO", "JP", "KR", "KW", "LB", "LY", "MA", "MX", "MY", "NL", "OM", "PK", "QA", "SA", "SE", "SG", "TN", "US", optional).
As seen on Open Source Alternatives The Merchant Engine badge