getSites
get
/ccagent/v1/sites
Get Sites. Get the list of all sites.
Request
There are no request parameters for this operation.
Back to TopResponse
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,
"sort":{
"collator":null,
"numDirectives":1,
"empty":false
},
"items":[
{
"longDescription":"Site to test agent flows",
"priceListGroupList":[
{
"repositoryId":"defaultPriceGroup",
"id":"defaultPriceGroup"
},
{
"repositoryId":"JPYSiteA",
"id":"JPYSiteA"
}
],
"inventoryLocationId":"SiteUS-GlenAllen187",
"productionURL":"localhost:8080",
"recommendationsHost":"recs.atgsvcs.example.com",
"noimage":null,
"description":"New Site A",
"defaultPriceListGroup":{
"repositoryId":"JPYSiteA",
"id":"JPYSiteA"
},
"defaultCatalog":{
"repositoryId":"SiteACatalog"
},
"defaultBillingCountryId":null,
"defaultShippingCountryId":null,
"enabled":true,
"siteTypes":[
"commerce"
],
"recommendationsPort":"8080",
"defaultLocaleId":"1",
"inventoryLocations":[
"SiteUS-GlenAllen187",
"SiteUS-GlenAllen188"
],
"repositoryId":"SiteA",
"name":"Site Agent",
"additionalProductionURLs":[
],
"id":"SiteA",
"defaultSite":false,
"additionalLocaleIds":[
]
},
{
"longDescription":null,
"priceListGroupList":[
{
"repositoryId":"defaultPriceGroup",
"id":"defaultPriceGroup"
}
],
"productionURL":"localhostSiteUS:8080",
"recommendationsHost":"recs.atgsvcs.example.com",
"allowAlternateCurrency":true,
"noimage":"/file/v3496256495527410201/general/19417364_10155381677403926_746513040903355218_o.jpg",
"description":"Commerce Cloud Site",
"secondaryCurrency":"USD",
"defaultPriceListGroup":{
"repositoryId":"defaultPriceGroup",
"id":"defaultPriceGroup"
},
"defaultCatalog":{
"repositoryId":"cloudLakeCatalog"
},
"payShippingInSecondaryCurrency":true,
"defaultBillingCountryId":null,
"defaultShippingCountryId":null,
"enabled":true,
"siteTypes":[
"commerce"
],
"payTaxInSecondaryCurrency":true,
"recommendationsPort":"8080",
"defaultLocaleId":"1",
"repositoryId":"siteUS",
"name":"Commerce Cloud Site",
"additionalProductionURLs":[
],
"id":"siteUS",
"defaultSite":true,
"additionalLocaleIds":[
]
}
],
"startingIndex":0,
"totalNumberOfItems":2
}
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