getSites

get

/ccagent/v1/sites

Get Sites. Get the list of all sites.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getSites_response
Type: object
Show Source
Nested Schema : items
Type: array
The list of available sites
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : additionalLocaleIds
Type: array
IDs of additional locales.
Show Source
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
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 : siteTypes
Type: array
The list of site types.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
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",
            "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
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top