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(required): string
The ID (repositoryId) of the site to get. There is a pseudo-ID of "defaultSite" that can be used to get the current default site.
Query Parameters
-
exclude: string
Properties listed here will be excluded in the response payload. Multiple properties can be excluded by listing them separated by comma (,)
-
production: boolean
If this flag is set to true, site information will be returned from production DB. It's default value is false
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getSite_response
Type:
Show Source
object
-
additionalLocaleIds:
array additionalLocaleIds
Additional locale IDs.
-
allowAlternateCurrency:
boolean
Allows the order to be paid in mixed currencies
-
defaultBillingCountryId:
string
Default Billing Country ID.
-
defaultCatalog:
string
Default catalog id.
-
defaultLocaleId:
string
The default locale ID.
-
defaultPriceListGroup:
string
Default price list group id.
-
defaultShippingCountryId:
string
Default Shipping Country ID.
-
defaultSite:
boolean
Indicates if the site is a default site
-
description:
string
Site description.
-
enabled:
boolean
Indicates if the site is enabled
-
id:
string
ID of the site.
-
inventoryLocationId:
string
Defines which inventory this site should use by default.
-
inventoryLocations:
array inventoryLocations
The "inventoryLocations" field, defined as an array, enables users to link multiple inventory locations to a site. If the "inventoryLocations" array includes at least one element, the "inventoryLocationId" field is not considered.
-
longDescription:
string
Long site description.
-
name:
string
Site name.
-
noimage:
string
Site specific no-image image
-
payShippingInSecondaryCurrency:
boolean
Pay shipping charges in secondary currency
-
payTaxInSecondaryCurrency:
boolean
Pay tax in secondary currency
-
priceListGroupList:
array priceListGroupList
List of Price List Groups associated with the site including default Price List Group
-
productionURL:
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:
string
The host name of the recommendations server.
-
recommendationsPort:
string
The port of the recommendations server
-
repositoryId:
string
Repository ID of the site.
-
secondaryCurrency:
string
Currency used for calculating shipping and tax for loyalty.
-
siteTypes:
array siteTypes
List of site types supported by this site. Each site type has has to be one of the allowed siteType options (case sensitive).
Nested Schema : inventoryLocations
Type:
array
The "inventoryLocations" field, defined as an array, enables users to link multiple inventory locations to a site. If the "inventoryLocations" array includes at least one element, the "inventoryLocationId" field is not considered.
Show Source
Nested Schema : priceListGroupList
Type:
array
List of Price List Groups associated with the site including default Price List Group
Show Source
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).
Show Source
Nested Schema : items
Type:
Show Source
object
-
id:
string
The priceListGroup id associated with site.
-
repositoryId:
string
The priceListGroup id associated with the site.
Example Response (application/json)
{
"priceListGroupList":[
{
"deleted":false,
"repositoryId":"defaultPriceGroup",
"active":false,
"id":"defaultPriceGroup"
},
{
"deleted":false,
"repositoryId":"EURO",
"active":false,
"id":"EURO"
}
],
"inventoryLocationId":"SiteUS-GlenAllen187",
"productionURL":"https://www.example.com",
"useDefaultSiteLocale":false,
"timezone":"europe_london",
"secondaryCurrency":"USD",
"requireGDPRP13nConsent":false,
"type":"siteConfiguration",
"defaultBillingCountryId":"US",
"defaultShippingCountryId":"US",
"enabled":true,
"payTaxInSecondaryCurrency":true,
"requireGDPRCookieConsent":false,
"timeToLive":null,
"defaultLocaleId":"1",
"inventoryLocations":[
"SiteUS-GlenAllen187",
"SiteUS-GlenAllen188"
],
"loyaltyPrograms":[
{
"programName":"Movie rewards",
"repositoryId":"siteUS_LP0001",
"associationDate":"2017-07-05T14:15:37.000Z",
"programId":"LP0001"
}
],
"id":"siteUS",
"additionalLocaleIds":[
"1"
],
"favicon":null,
"allowAlternateCurrency":true,
"allowedOriginMethods":{
"https://somemoresecurehost":"GET",
"https://someHost:9080":"GET,PUT,DELETE,POST,OPTIONS"
},
"noimage":null,
"payShippingInSecondaryCurrency":true,
"siteTypes":[
"b2bCommerce"
],
"shipFromAddress":{
"country":"US",
"city":"Cambridge",
"postalCode":"02142",
"addressLine1":"1 Main Street",
"addressLine2":"Foo",
"addressLine3":"Bar",
"region":"MA"
},
"name":"CloudLake US Site",
"repositoryId":"siteUS"
}
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.|
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