Get a country

get

/services/rest/connect/v1.4/countries/{id}

Request

Path Parameters
Back to Top

Response

Default Response

Body ()
Root Schema : countries
Type: object
The details about the countries and provinces which are used to maintain accurate address information for the organizations and contacts in Oracle B2C Service.
Show Source
  • Maximum Length: 3
    Pattern: ^[A-Z]{2,3}$
    The two or three character abbreviation for the country. For example, USA.
  • The date and time when the country was created. This attribute is read-only.
  • Minimum Value: 1
    Maximum Value: 2147483647
    The position of the country in the Countries/Provinces tree and drop-down menu.
  • Minimum Value: 1
    Maximum Value: 9.223372036854776E18
    The unique identifier of the country.
  • Maximum Length: 2
    Pattern: ^[A-Z]{2}$
    The ISO 3166 country code.
  • Maximum Length: 255
    The name used to look up the country.
  • Maximum Length: 80
    A list of labels or names used for this country on each unique interface.
  • countries-names
    The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
  • Maximum Length: 10
    Pattern: ^[][+0-9a-zA-Z[:blank:].,()#-/]*$
    The international telephone code for the country. This is used by the Click-to-Dial feature.
  • Maximum Length: 80
    Pattern: ^(([U|L|M][#|A|L|C])|(F.))+$
    The string having twice the number of characters in the phone number. Two characters are needed to represent every digit or character in the phone number. The first character of the mask describes the target character and the second constrains its type.
  • Maximum Length: 20
    Pattern: ^(([U|L|M][#|A|L|C])|(F.))+$
    The string having twice the number of characters in the target postal code. Two characters are needed to represent every digit or character in the postal code. The first character of the mask describes the target character and the second constrains its type.
  • countries-provinces
    The information about the provinces in the Countries/Provinces customizable menu.
  • The date and time when the country was last updated. This attribute is read-only.
Nested Schema : countries-names
Type: object
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Show Source
Nested Schema : countries-provinces
Type: object
The information about the provinces in the Countries/Provinces customizable menu.
Show Source
  • Minimum Value: 1
    Maximum Value: 32767
    The display position relative to other provinces associated with the same country.
  • Minimum Value: 1
    Maximum Value: 9.223372036854776E18
    The unique identifier of the province.
  • Maximum Length: 255
    The name of the province in the language of the current interface. This attribute is read-only.
  • countries-provinces-names
    The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Nested Schema : namedIDs-countries-names-language
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : countries-provinces-names
Type: object
The language-specific strings used for localization of fields. The label text cannot be empty or null. The labels are assembled in a list associated with a particular text field.
Show Source
Nested Schema : namedIDs-countries-provinces-names-language
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Back to Top

Examples

Use GET with the following syntax to retrieve data for a country:

https://your_site_interface/services/rest/connect/version/countries/country_id

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/countries/2

Response body example

{
  "id": 2,
  "lookupName": "CA",
  "abbreviation": "CA",
  "displayOrder": 2,
  "iSOCode": "CA",
  "name": "Canada",
  "names": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/countries/2/names"
      }
    ]
  },
  "provinces": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/countries/2/provinces"
      }
    ]
  },
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/countries/2"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/countries/2"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/countries",
      "mediaType": "application/schema+json"
    }
  ]
}
Back to Top