getShippingRegion
get
/ccadmin/v1/shippingRegions/{id}
Get Shipping Region. Returns a Shipping Region against the ID passed.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueThe ID of the shipping region to be fetched.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getShippingRegion_response
- repositoryId
-
Type:
stringThe Repository Id of the Shipping Region. - shippingCountryRegion
-
Type:
arrayshippingCountryRegionAdditional Properties Allowed:The list of all regions of a country in the Shipping region. - shippingRegionName
-
Type:
stringName of the Shipping Region.
Nested Schema : shippingCountryRegion
Nested Schema : items
Type:
objectNested Schema : country
Type:
objectThe details of the country present in the Shipping Region.
- countryCode
-
Type:
stringThe code of the country in the Shipping Region. - displayName
-
Type:
stringThe name of the country. - repositoryId
-
Type:
stringThe repository Id of country.
Nested Schema : regions
Nested Schema : items
Type:
object- abbreviation
-
Type:
stringThe region code in abbreviated form. Usually a 2 letter country code - displayName
-
Type:
stringThe name of the specific region. - regionCode
-
Type:
stringThe code of the specific Region. - repositoryId
-
Type:
stringThe Repository Id of the specific region.
Example application/json
{
"repositoryId":"100001",
"shippingRegionName":"United States",
"shippingCountryRegion":[
{
"country":{
"countryCode":"US",
"displayName":"United States",
"repositoryId":"US"
},
"regions":[
{
"regionCode":"US-AR",
"displayName":"Arkansas",
"repositoryId":"US-AR",
"abbreviation":"AR"
},
{
"regionCode":"US-ME",
"displayName":"Maine",
"repositoryId":"US-ME",
"abbreviation":"ME"
},
{
"regionCode":"US-WV",
"displayName":"West Virginia",
"repositoryId":"US-WV",
"abbreviation":"WV"
},
{
"regionCode":"US-GA",
"displayName":"Georgia",
"repositoryId":"US-GA",
"abbreviation":"GA"
},
{
"regionCode":"US-OR",
"displayName":"Oregon",
"repositoryId":"US-OR",
"abbreviation":"OR"
}
],
"repositoryId":"100001"
}
]
}
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|
|------------------|------------------|
|80012|Invalid shipping region details.|
|80016|Error getting a shipping region.|
|80020|Shipping region does not exist for id: {0}.|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"repositoryId": "100001",
"shippingRegionName": "United States",
"shippingCountryRegion": [{
"country": {
"countryCode": "US",
"displayName": "United States",
"repositoryId": "US"
},
"regions": [
{
"regionCode": "US-AR",
"displayName": "Arkansas",
"repositoryId": "US-AR",
"abbreviation": "AR"
},
{
"regionCode": "US-ME",
"displayName": "Maine",
"repositoryId": "US-ME",
"abbreviation": "ME"
},
{
"regionCode": "US-WV",
"displayName": "West Virginia",
"repositoryId": "US-WV",
"abbreviation": "WV"
},
{
"regionCode": "US-GA",
"displayName": "Georgia",
"repositoryId": "US-GA",
"abbreviation": "GA"
},
{
"regionCode": "US-OR",
"displayName": "Oregon",
"repositoryId": "US-OR",
"abbreviation": "OR"
}
],
"repositoryId": "100001"
}]
}