getSite
get
/ccadmin/v1/sites/{id}
Get Site. Get a site by ID. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
string
Required:true
The ID of the site.
Header Parameters
- X-CCAsset-Language
-
Type:
string
The asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getSite_response
- additionalLocaleIds
-
Type:
array
additionalLocaleIdsAdditional locale IDs. - defaultBillingCountryId
-
Type:
string
Default Billing Country ID. - defaultCatalog
-
Type:
string
Default catalog id. - defaultLocaleId
-
Type:
string
The default locale ID. - defaultPriceListGroup
-
Type:
string
Default price list group id. - defaultShippingCountryId
-
Type:
string
Default Shipping Country ID. - defaultSite
-
Type:
boolean
Indicates if the site is a default site - description
-
Type:
string
Site description. - enabled
-
Type:
boolean
Indicates if the site is enabled - id
-
Type:
string
ID of the site. - longDescription
-
Type:
string
Long site description. - name
-
Type:
string
Site name. - noimage
-
Type:
string
Site specific no-image image - priceListGroupList
-
Type:
array
priceListGroupListList of Price List Groups associated with the site including default Price List Group - productionURL
-
Type:
string
The production base url for storefront. If set, this base url will be used for any absolute generated links e.g. sitemap urls - recommendationsHost
-
Type:
string
The host name of the recommendations server. - recommendationsPort
-
Type:
string
The port of the recommendations server - repositoryId
-
Type:
string
Repository ID of the site. - secondaryCurrency
-
Type:
string
Currency used for calculating shipping and tax for loyalty. - siteTypes
-
Type:
array
siteTypesList of site types supported by this site. Each site type has has to be one of the allowed siteType options (case sensitive).
Nested Schema : additionalLocaleIds
Nested Schema : priceListGroupList
Nested Schema : siteTypes
Type:
array
List of site types supported by this site. Each site type has has to be one of the allowed siteType options (case sensitive).
-
Type:
string
Nested Schema : items
Type:
object
- id
-
Type:
string
The priceListGroup id associated with site. - repositoryId
-
Type:
string
The priceListGroup id associated with the site.
Example application/json
{
"priceListGroupList":[
{
"deleted":false,
"repositoryId":"defaultPriceGroup",
"active":false,
"id":"defaultPriceGroup"
},
{
"deleted":false,
"repositoryId":"EURO",
"active":false,
"id":"EURO"
}
],
"productionURL":"https://www.example.com",
"favicon":null,
"timezone":"europe_london",
"allowedOriginMethods":{
"https://somemoresecurehost":"GET",
"https://someHost:9080":"GET,PUT,DELETE,POST,OPTIONS"
},
"noimage":null,
"secondaryCurrency":"USD",
"defaultBillingCountryId":"US",
"defaultShippingCountryId":"US",
"siteTypes":[
"b2bCommerce"
],
"timeToLive":null,
"defaultLocaleId":"1",
"shipFromAddress":{
"country":"US",
"city":"Cambridge",
"postalCode":"02142",
"addressLine1":"1 Main Street",
"addressLine2":"Foo",
"addressLine3":"Bar",
"region":"MA"
},
"loyaltyPrograms":[
{
"programName":"Movie rewards",
"repositoryId":"siteUS_LP0001",
"associationDate":"2017-07-05T14:15:37.000Z",
"programId":"LP0001"
}
],
"name":"CloudLake US Site",
"repositoryId":"siteUS",
"id":"siteUS",
"additionalLocaleIds":[
"1"
]
}
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|
|------------------|------------------|
|30012|Could not get site for the id|
|30011|Given Site id does not exist|
|30010|A site id is required to update a site|
|30016|Site internal error.|
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAn optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code
Examples
Sample Response Payload returned by endpoint:
{ "priceListGroupList": [ { "deleted": false, "repositoryId": "defaultPriceGroup", "active": false, "id": "defaultPriceGroup" }, { "deleted": false, "repositoryId": "EURO", "active": false, "id": "EURO" } ], "productionURL": "https://www.example.com", "favicon": null, "timezone": "europe_london", "allowedOriginMethods": { "https://somemoresecurehost": "GET", "https://someHost:9080": "GET,PUT,DELETE,POST,OPTIONS" }, "noimage": null, "secondaryCurrency": "USD", "defaultBillingCountryId": "US", "defaultShippingCountryId": "US", "siteTypes": ["b2bCommerce"], "timeToLive": null, "defaultLocaleId": "1", "shipFromAddress": { "country": "US", "city": "Cambridge", "postalCode": "02142", "addressLine1": "1 Main Street", "addressLine2": "Foo", "addressLine3": "Bar", "region": "MA" }, "loyaltyPrograms": [{ "programName": "Movie rewards", "repositoryId": "siteUS_LP0001", "associationDate": "2017-07-05T14:15:37.000Z", "programId": "LP0001" }], "name": "CloudLake US Site", "repositoryId": "siteUS", "id": "siteUS", "additionalLocaleIds": ["1"] }