getSites
get
/ccadmin/v1/sites
Get Sites. Get the list of available sites.
Request
Supported Media Types
- application/json
Query Parameters
- includeHistorical
-
Type:
boolean
The historical sites flag, if you want historicalSites then make it true- q
Type:string
The search query string in SCIM format. Results will be filtered based on this query.
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 : getSites_response
- items
-
Type:
array
itemsThe list of available sites - startingIndex
-
Type:
integer
The starting index - totalNumberOfItems
-
Type:
integer
The total number of items.
Nested Schema : items
Type:
object
- additionalLocaleIds
-
Type:
array
additionalLocaleIdsIDs of additional locales. - additionalProductionURLs
-
Type:
array
additionalProductionURLsA list of additional production URLs (without schema). Currently, only plain hostnames are supported. - defaultBillingCountryId
-
Type:
string
The default billing country ID. - defaultCatalog
-
Type:
object
defaultCatalogThe default catalog for the site. - defaultLocaleId
-
Type:
string
The ID for the default locale of the site. - defaultShippingCountryId
-
Type:
string
The default shipping country ID. - defaultSite
-
Type:
boolean
Indicates is the site is a default site. - description
-
Type:
string
A description of the site. - enabled
-
Type:
boolean
Indicates whether the site is enabled. - id
-
Type:
string
The repository ID of the site. - longDescription
-
Type:
string
A long description of the site. - loyaltyPrograms
-
Type:
array
loyaltyProgramsList of loyalty programs associated with site. - name
-
Type:
string
The name of the site. - noimage
-
Type:
string
Site specific no-image image - priceListGroupList
-
Type:
array
priceListGroupListList of priceListGroups to be associated with site. - productionURL
-
Type:
string
The production URL (without the scheme) of the server. Currently, only hostnames are support. - recommendationsHost
-
Type:
string
The host name of the recommendations server. - recommendationsPort
-
Type:
string
The port of the recommendations server. - repositoryId
-
Type:
string
The repository ID of the site. - secondaryCurrency
-
Type:
string
Currency used for calculating shipping and tax for loyalty. - siteTypes
-
Type:
array
siteTypesThe list of site types.
Nested Schema : additionalLocaleIds
Nested Schema : additionalProductionURLs
Type:
array
A list of additional production URLs (without schema). Currently, only plain hostnames are supported.
-
Type:
string
Nested Schema : defaultCatalog
Type:
object
The default catalog for the site.
- repositoryId
-
Type:
string
The ID of the default catalog for the site.
Nested Schema : loyaltyPrograms
Nested Schema : priceListGroupList
Nested Schema : siteTypes
Nested Schema : items
Type:
object
- associationDate
-
Type:
string
Association date of loyalty program to site. - programId
-
Type:
string
Loyalty Program Id. - programName
-
Type:
string
Name for loyalty program. - repositoryId
-
Type:
string
The loyalty program id associated with the site.
Nested Schema : items
Type:
object
- id
-
Type:
string
The priceListGroup id associated with the site. - repositoryId
-
Type:
string
The priceListGroup id associated with the site.
Example 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":"some.recs.machine.us.example.com",
"productionURL":"wakko:9080",
"favicon":null,
"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":[
"mysite.com"
],
"id":"site2",
"additionalLocaleIds":[
"3",
"4",
"5"
]
},
{
"priceListGroupList":[
{
"repositoryId":"defaultPriceGroup",
"id":"defaultPriceGroup"
}
],
"recommendationsHost":"some.recs.machine.example.com",
"productionURL":"wakko:9080",
"favicon":null,
"timezone":"america_newyork",
"noimage":null,
"secondaryCurrency":"USD",
"defaultCatalog":{
"repositoryId":"cloudLakeCatalog"
},
"defaultBillingCountryId":"AR",
"defaultShippingCountryId":null,
"siteTypes":[
"commerce"
],
"recommendationsPort":"8080",
"defaultLocaleId":"1",
"repositoryId":"siteUS",
"name":"Commerce Cloud Site",
"additionalProductionURLs":[
"othersite.com"
],
"id":"siteUS",
"additionalLocaleIds":[
"3",
"4",
"5"
]
}
],
"startingIndex":0,
"totalNumberOfItems":2
}
Default Response
The error response
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:
{ "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": "some.recs.machine.us.example.com", "productionURL": "wakko:9080", "favicon": null, "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": ["mysite.com"], "id": "site2", "additionalLocaleIds": [ "3", "4", "5" ] }, { "priceListGroupList": [{ "repositoryId": "defaultPriceGroup", "id": "defaultPriceGroup" }], "recommendationsHost": "some.recs.machine.example.com", "productionURL": "wakko:9080", "favicon": null, "timezone": "america_newyork", "noimage": null, "secondaryCurrency": "USD", "defaultCatalog": {"repositoryId": "cloudLakeCatalog"}, "defaultBillingCountryId": "AR", "defaultShippingCountryId": null, "siteTypes": ["commerce"], "recommendationsPort": "8080", "defaultLocaleId": "1", "repositoryId": "siteUS", "name": "Commerce Cloud Site", "additionalProductionURLs": ["othersite.com"], "id": "siteUS", "additionalLocaleIds": [ "3", "4", "5" ] } ], "startingIndex": 0, "totalNumberOfItems": 2 }