Get all countries and regions information for the store.
GET
/V1/directory/countries
curl \
--request GET 'https://magento2.winkelstraat.mac/rest/all/V1/directory/countries'
Response examples (200)
[
{
"id": "string",
"two_letter_abbreviation": "string",
"three_letter_abbreviation": "string",
"full_name_locale": "string",
"full_name_english": "string",
"available_regions": [
{
"id": "string",
"code": "string",
"name": "string",
"extension_attributes": {}
}
],
"extension_attributes": {}
}
]
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root type="array">
<root>
<id>string</id>
<two-letter-abbreviation>string</two-letter-abbreviation>
<three-letter-abbreviation>string</three-letter-abbreviation>
<full-name-locale>string</full-name-locale>
<full-name-english>string</full-name-english>
<available-regions type="array">
<available-region>
<id>string</id>
<code>string</code>
<name>string</name>
<extension-attributes>
</extension-attributes>
</available-region>
</available-regions>
<extension-attributes>
</extension-attributes>
</root>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>