getSites
get
/ccadmin/v1/sites
Get Sites. Get the list of available sites.
Request
Supported Media Types
- application/json
Query Parameters
-
expand(optional): boolean
Specify whether an expanded response must be served
-
includeHistorical(optional): boolean
The historical sites flag, if you want historicalSites then make it true
-
production(optional): boolean
If this flag is set to true, sites will be returned from production DB. It's default value is false
-
q(optional): string
The search query string in SCIM format. Results will be filtered based on this query.
Header Parameters
-
X-CCAsset-Language(optional): string
The asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getSites_response
Type:
Show Source
object
-
items(optional):
array items
The list of available sites
-
startingIndex(optional):
integer
The starting index
-
totalNumberOfItems(optional):
integer
The total number of items.
Nested Schema : items
Type:
Show Source
object
-
additionalLocaleIds(optional):
array additionalLocaleIds
IDs of additional locales.
-
additionalProductionURLs(optional):
array additionalProductionURLs
A list of additional production URLs (without schema). Currently, only plain hostnames are supported.
-
allowAlternateCurrency(optional):
boolean
Allows the order to be paid in mixed currencies
-
defaultBillingCountryId(optional):
string
The default billing country ID.
-
defaultCatalog(optional):
object defaultCatalog
The default catalog for the site.
-
defaultLocaleId(optional):
string
The ID for the default locale of the site.
-
defaultShippingCountryId(optional):
string
The default shipping country ID.
-
defaultSite(optional):
boolean
Indicates is the site is a default site.
-
description(optional):
string
A description of the site.
-
enabled(optional):
boolean
Indicates whether the site is enabled.
-
id(optional):
string
The repository ID of the site.
-
inventoryLocationId(optional):
string
Defines which inventory this site should use by default.
-
longDescription(optional):
string
A long description of the site.
-
loyaltyPrograms(optional):
array loyaltyPrograms
List of loyalty programs associated with site.
-
name(optional):
string
The name of the site.
-
noimage(optional):
string
Site specific no-image image
-
payShippingInSecondaryCurrency(optional):
boolean
Pay shipping charges in secondary currency
-
payTaxInSecondaryCurrency(optional):
boolean
Pay tax in secondary currency
-
priceListGroupList(optional):
array priceListGroupList
List of priceListGroups to be associated with site.
-
productionURL(optional):
string
The production URL (without the scheme) of the server. Currently, only hostnames are support.
-
recommendationsHost(optional):
string
The host name of the recommendations server.
-
recommendationsPort(optional):
string
The port of the recommendations server.
-
repositoryId(optional):
string
The repository ID of the site.
-
secondaryCurrency(optional):
string
Currency used for calculating shipping and tax for loyalty.
-
siteTypes(optional):
array siteTypes
The list of site types.
Nested Schema : additionalProductionURLs
Type:
array
A list of additional production URLs (without schema). Currently, only plain hostnames are supported.
Show Source
Nested Schema : defaultCatalog
Type:
object
The default catalog for the site.
Show Source
-
repositoryId(optional):
string
The ID of the default catalog for the site.
Nested Schema : loyaltyPrograms
Type:
array
List of loyalty programs associated with site.
Show Source
Nested Schema : priceListGroupList
Type:
array
List of priceListGroups to be associated with site.
Show Source
Nested Schema : items
Type:
Show Source
object
-
associationDate(optional):
string
Association date of loyalty program to site.
-
programId(optional):
string
Loyalty Program Id.
-
programName(optional):
string
Name for loyalty program.
-
repositoryId(optional):
string
The loyalty program id associated with the site.
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
The priceListGroup id associated with the site.
-
repositoryId(optional):
string
The priceListGroup id associated with the site.
Example Response (application/json)
{
"endingIndex":250,
"totalResultsParam":true,
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadmin/v1/sites"
}
],
"sort":{
"collator":null,
"numDirectives":1,
"empty":false
},
"items":[
{
"priceListGroupList":[
{
"repositoryId":"defaultPriceGroup",
"id":"defaultPriceGroup"
}
],
"recommendationsHost":"recs.atgsvcs.example.com",
"productionURL":"wakko:9080",
"favicon":null,
"useDefaultSiteLocale":false,
"timezone":"europe_london",
"noimage":null,
"defaultCatalog":{
"repositoryId":"cloudLakeCatalog"
},
"defaultBillingCountryId":"AR",
"defaultShippingCountryId":null,
"siteTypes":[
"commerce"
],
"recommendationsPort":"8080",
"defaultLocaleId":"1",
"repositoryId":"site2",
"name":"Commerce Cloud Site",
"additionalProductionURLs":[
"example.com"
],
"id":"site2",
"additionalLocaleIds":[
"3",
"4",
"5"
]
},
{
"priceListGroupList":[
{
"repositoryId":"defaultPriceGroup",
"id":"defaultPriceGroup"
}
],
"recommendationsHost":"recs.atgsvcs.example.com",
"productionURL":"wakko:9080",
"favicon":null,
"useDefaultSiteLocale":false,
"timezone":"america_newyork",
"allowAlternateCurrency":true,
"noimage":null,
"secondaryCurrency":"USD",
"defaultCatalog":{
"repositoryId":"cloudLakeCatalog"
},
"payShippingInSecondaryCurrency":true,
"defaultBillingCountryId":"AR",
"defaultShippingCountryId":null,
"siteTypes":[
"commerce"
],
"payTaxInSecondaryCurrency":true,
"recommendationsPort":"8080",
"defaultLocaleId":"1",
"repositoryId":"siteUS",
"name":"Commerce Cloud Site",
"additionalProductionURLs":[
"othersite.example.com"
],
"id":"siteUS",
"additionalLocaleIds":[
"3",
"4",
"5"
]
}
]
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
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(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code