getSite
get
/ccstore/v1/sites/{id}
Get Site. Get a site by id.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
The id of the site.
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,
"displayName":"Default Price Group",
"repositoryId":"defaultPriceGroup",
"active":true,
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"840"
},
"id":"defaultPriceGroup",
"locale":"en_US"
}
],
"productionURL":null,
"useDefaultSiteLocale":false,
"requireGDPRP13nConsent":false,
"defaultCatalog":{
"repositoryId":"cloudLakeCatalog",
"rootCategories":[
{
"longDescription":"Cloud Commerce Non-Navigable",
"categoryImages":[
],
"displayName":"Non-Navigable",
"categoryPaths":[
"/Non-Navigable"
],
"active":false,
"description":null,
"categoryIdPaths":[
"nonNavigableCategory"
],
"childCategories":null,
"fixedParentCategories":[
],
"creationDate":"2017-03-31T05:19:46.000Z",
"route":"/non-navigable/category/nonNavigableCategory",
"repositoryId":"nonNavigableCategory",
"id":"nonNavigableCategory"
},
{
"longDescription":"Commerce Cloud Root Category",
"categoryImages":[
],
"displayName":"Storefront Navigation",
"categoryPaths":[
"/Storefront Navigation"
],
"active":false,
"description":null,
"categoryIdPaths":[
"rootCategory"
],
"childCategories":[
{
"repositoryId":"cat40013"
},
{
"repositoryId":"cat60023"
},
{
"repositoryId":"catOutdoor"
},
{
"repositoryId":"clearanceCat"
},
{
"repositoryId":"topLeaf"
},
{
"repositoryId":"cameracat"
},
{
"repositoryId":"AllProdPagination"
},
{
"repositoryId":"giftCards"
}
],
"fixedParentCategories":[
],
"creationDate":"2017-03-31T05:19:28.000Z",
"route":"/storefront-navigation/category/rootCategory",
"repositoryId":"rootCategory",
"id":"rootCategory"
}
],
"allRootCategories":[
]
},
"type":"siteConfiguration",
"defaultBillingCountryId":null,
"requireGDPRCookieConsent":false,
"timeToLive":null,
"defaultLocaleId":"1",
"emailAddress":"CloudCommerce@example.com",
"billingCountries":[
{
"countryCode":"DE",
"displayName":"Germany",
"repositoryId":"DE"
},
{
"countryCode":"LK",
"displayName":"Sri Lanka",
"repositoryId":"LK"
},
{
"countryCode":"CA",
"displayName":"Canada",
"repositoryId":"CA"
},
{
"countryCode":"US",
"displayName":"United States",
"repositoryId":"US"
},
{
"countryCode":"CL",
"displayName":"Chile",
"repositoryId":"CL"
},
{
"countryCode":"FO",
"displayName":"Faroe Islands",
"repositoryId":"FO"
},
{
"countryCode":"BD",
"displayName":"Bangladesh",
"repositoryId":"BD"
},
{
"countryCode":"AR",
"displayName":"Argentina",
"repositoryId":"AR"
},
{
"countryCode":"PA",
"displayName":"Panama",
"repositoryId":"PA"
},
{
"countryCode":"BR",
"displayName":"Brazil",
"repositoryId":"BR"
},
{
"countryCode":"CO",
"displayName":"Colombia",
"repositoryId":"CO"
},
{
"countryCode":"MX",
"displayName":"Mexico",
"repositoryId":"MX"
},
{
"countryCode":"MC",
"displayName":"Monaco",
"repositoryId":"MC"
},
{
"countryCode":"PE",
"displayName":"Peru",
"repositoryId":"PE"
},
{
"countryCode":"AU",
"displayName":"Australia",
"repositoryId":"AU"
}
],
"inventoryLocations":[
"SiteUS-GlenAllen187",
"SiteUS-GlenAllen188"
],
"exchangeRate":0.6,
"maxCouponsPerOrder":null,
"siteTemplate":"cloudSiteTemplate",
"paymentGateways":[
],
"additionalProductionURLs":[
],
"id":"siteUS",
"defaultSalePriceList":{
"repositoryId":"salePrices"
},
"additionalLocaleIds":[
],
"siteDownURL":null,
"sfVersion":null,
"defaultShippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
},
"defaultPriceListGroup":{
"deleted":false,
"displayName":"Default Price Group",
"repositoryId":"defaultPriceGroup",
"active":true,
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"840"
},
"id":"defaultPriceGroup",
"locale":"en_US"
},
"payShippingInSecondaryCurrency":true,
"recommendationsPort":"8080",
"profileContextList":{
"repositoryId":"siteUS-catalogAndPriceGroups"
},
"name":"Commerce Cloud Site",
"longDescription":null,
"inventoryLocationId":"SiteUS-GlenAllen187",
"description":"Commerce Cloud Site",
"secondaryCurrency":"USD",
"defaultAccessLevel":"FULL",
"enabled":true,
"defaultShippingCountryId":null,
"payTaxInSecondaryCurrency":true,
"endecaSiteId":null,
"cartSharingId":null,
"siteIcon":null,
"defaultListPriceList":{
"repositoryId":"listPrices"
},
"realmId":null,
"recommendationsHost":"recs.atgsvcs.example.com",
"favicon":null,
"allowAlternateCurrency":true,
"contextRoot":null,
"masterCatalog":{
"repositoryId":"cloudLakeCatalog",
"rootCategories":[
{
"longDescription":"Cloud Commerce Non-Navigable",
"categoryImages":[
],
"displayName":"Non-Navigable",
"categoryPaths":[
"/Non-Navigable"
],
"active":false,
"description":null,
"categoryIdPaths":[
"nonNavigableCategory"
],
"childCategories":null,
"fixedParentCategories":[
],
"creationDate":"2017-03-31T05:19:46.000Z",
"route":"/non-navigable/category/nonNavigableCategory",
"repositoryId":"nonNavigableCategory",
"id":"nonNavigableCategory"
},
{
"longDescription":"Commerce Cloud Root Category",
"categoryImages":[
],
"displayName":"Storefront Navigation",
"categoryPaths":[
"/Storefront Navigation"
],
"active":false,
"description":null,
"categoryIdPaths":[
"rootCategory"
],
"childCategories":[
{
"repositoryId":"cat40013"
},
{
"repositoryId":"cat60023"
},
{
"repositoryId":"catOutdoor"
},
{
"repositoryId":"clearanceCat"
},
{
"repositoryId":"topLeaf"
},
{
"repositoryId":"cameracat"
},
{
"repositoryId":"AllProdPagination"
},
{
"repositoryId":"giftCards"
}
],
"fixedParentCategories":[
],
"creationDate":"2017-03-31T05:19:28.000Z",
"route":"/storefront-navigation/category/rootCategory",
"repositoryId":"rootCategory",
"id":"rootCategory"
}
],
"allRootCategories":[
]
},
"siteTypes":[
"commerce"
],
"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|Not able to fetch the site.|
|30011|Invalid site id.|
|30010|Site id is null.|
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