getSites
get
/ccadmin/v1/sites
Get Sites. Get the list of available sites.
Request
Supported Media Types
- application/json
Query Parameters
-
expand: boolean
Specify whether an expanded response must be served
-
includeHistorical: boolean
The historical sites flag, if you want historicalSites then make it true
-
production: boolean
If this flag is set to true, sites will be returned from production DB. It's default value is false
-
q: string
The search query string in SCIM format. Results will be filtered based on this query.
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 : getSites_response
Type:
Show Source
object
-
items:
array items
The list of available sites
-
startingIndex:
integer
The starting index
-
totalNumberOfItems:
integer
The total number of items.
Nested Schema : items
Type:
Show Source
object
-
additionalLocaleIds:
array additionalLocaleIds
IDs of additional locales.
-
additionalProductionURLs:
array additionalProductionURLs
A list of additional production URLs (without schema). Currently, only plain hostnames are supported.
-
allowAlternateCurrency:
boolean
Allows the order to be paid in mixed currencies
-
defaultBillingCountryId:
string
The default billing country ID.
-
defaultCatalog:
object defaultCatalog
The default catalog for the site.
-
defaultLocaleId:
string
The ID for the default locale of the site.
-
defaultShippingCountryId:
string
The default shipping country ID.
-
defaultSite:
boolean
Indicates is the site is a default site.
-
description:
string
A description of the site.
-
enabled:
boolean
Indicates whether the site is enabled.
-
id:
string
The repository 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
A long description of the site.
-
loyaltyPrograms:
array loyaltyPrograms
List of loyalty programs associated with site.
-
name:
string
The name of the site.
-
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 priceListGroups to be associated with site.
-
productionURL:
string
The production URL (without the scheme) of the server. Currently, only hostnames are support.
-
recommendationsHost:
string
The host name of the recommendations server.
-
recommendationsPort:
string
The port of the recommendations server.
-
repositoryId:
string
The repository ID of the site.
-
secondaryCurrency:
string
Currency used for calculating shipping and tax for loyalty.
-
siteTypes:
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:
string
The ID of the default catalog for the site.
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 : 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:
string
Association date of loyalty program to site.
-
programId:
string
Loyalty Program Id.
-
programName:
string
Name for loyalty program.
-
repositoryId:
string
The loyalty program id associated with the site.
Nested Schema : items
Type:
Show Source
object
-
id:
string
The priceListGroup id associated with the site.
-
repositoryId:
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:
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