younifyd
Menu

Get directory/countries/{countryId}

Get directory/countries/{countryId}

GET/V1/directory/countries/{countryId}

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get directory/countries/{countryId} action (under Store).
  3. Fill in the fields below, then reference the result from later steps as {{getDirectoryCountriesCountryid.response.data}}.

Request

Path parameters

countryIdstringrequired

Response

Returns 200 with an object. Read it in later steps with {{getDirectoryCountriesCountryid.response.data.<field>}}.

idstring

The country id for the store.

two_letter_abbreviationstring

The country 2 letter abbreviation for the store.

three_letter_abbreviationstring

The country 3 letter abbreviation for the store.

full_name_localestring

The country full name (in store locale) for the store.

full_name_englishstring

The country full name (in English) for the store.

available_regionsarray<object>

The available regions for the store.

idstringrequired

Region id

codestringrequired

Region code

namestringrequired

Region name

extension_attributesobject

ExtensionInterface class for @see \Magento\Directory\Api\Data\RegionInformationInterface

extension_attributesobject

ExtensionInterface class for @see \Magento\Directory\Api\Data\CountryInformationInterface

json
{
  "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": {}
}

Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.

Get directory/countries/{countryId} — Adobe Commerce — Documentation