Constants

List countries

Retrieves every country Kashier recognises, with its two- and three-letter codes, its international dialling prefix, and its flag as an embedded image. Useful for country and phone-prefix pickers. The response is large because each entry embeds its flag, so cache it rather than fetching it per page load.

get/v2/constants/countries

Request

  • Base URL: https://test-api.kashier.io
  • URL: https://test-api.kashier.io/v2/constants/countries
  • Auth: none required

Response

The country list.

abbreviation2string

The ISO 3166-1 alpha-2 code, lowercased, e.g. eg.

abbreviation3string

The ISO 3166-1 alpha-3 code, lowercased, e.g. egy.

namestring

The country's name.

phonestring

The international dialling prefix, e.g. +20.

flagstring

The country's flag as a data:image/png;base64 URI.

Changes

No recorded changes to this operation across all 1 revision of this API.