listCountries
get
/ccadmin/v1/countries
List Countries. List all the configured countries
Request
Supported Media Types
- application/json
Query Parameters
-
regions: string
to fetch regions, this property can be set to true
-
sortByCode: string
to get country list sorted by country code or descrption.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listCountries_response
Type:
Show Source
object
-
items:
array items
The list of all countries.
Nested Schema : items
Type:
Show Source
object
-
countryCode:
string
ISO 3166-1 two letter country code.
-
displayName:
string
Localized country name.
-
repositoryId:
string
The repository ID of the country item.
Example Response (application/json)
[
{
"displayName":"United Arab Emirates",
"countryCode":"AE",
"repositoryId":"AE"
},
{
"displayName":"United Kingdom",
"countryCode":"GB",
"repositoryId":"GB"
},
{
"displayName":"United States",
"countryCode":"US",
"repositoryId":"US"
},
{
"displayName":"Uruguay",
"countryCode":"UY",
"repositoryId":"UY"
}
]
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|80004|Exception Occurred|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code