getSites
get
/ccadmin/v1/sites
Get Sites. Get the list of available sites.
Request
Supported Media Types
- application/json
Query Parameters
- expand
-
Type:
boolean
Specify whether an expanded response must be served- 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 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : getSites_response- items
-
Type:
array
itemsAdditional Properties Allowed:The list of available sites - startingIndex
-
Type:
integer
The starting index - totalNumberOfItems
-
Type:
integer
The total number of items.
Nested Schema : itemsNested Schema : itemsType:object
- additionalLocaleIds
-
Type:
array
additionalLocaleIdsAdditional Properties Allowed:IDs of additional locales. - additionalProductionURLs
-
Type:
array
additionalProductionURLsAdditional Properties Allowed:A list of additional production URLs (without schema). Currently, only plain hostnames are supported. - defaultBillingCountryId
-
Type:
string
The default billing country ID. - defaultCatalog
-
Type:
object
defaultCatalogAdditional Properties Allowed:The 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
loyaltyProgramsAdditional Properties Allowed:List 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
priceListGroupListAdditional Properties Allowed:List 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
siteTypesAdditional Properties Allowed:The list of site types.
Nested Schema : additionalLocaleIdsNested Schema : additionalProductionURLsType:array
A list of additional production URLs (without schema). Currently, only plain hostnames are supported.-
Type:
string
Nested Schema : defaultCatalogType:object
The default catalog for the site.- repositoryId
-
Type:
string
The ID of the default catalog for the site.
Nested Schema : loyaltyProgramsNested Schema : priceListGroupListNested Schema : siteTypesNested Schema : itemsType: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 : itemsType: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":"pt-recs-app1.us.oracle.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":"pt-recs-app1.us.oracle.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" ] } ] }
Default ResponseThe error responseBodyRoot Schema : errorModelType: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
errorsAdditional Properties Allowed:An 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 : errorsNested Schema : itemsType: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": "pt-recs-app1.us.oracle.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": "pt-recs-app1.us.oracle.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" ] } ] }