Get country and region information for the store
Get country and region information for the store.
GET /V1/directory/countries/{countryId}
curl \
-X GET https://magento2.winkelstraat.mac/rest/all/V1/directory/countries/{countryId}
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 (400)
{
"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)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}