getSite

get

/ccagent/v1/sites/{id}

Get Site. Get a site by ID. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getSite_response
Type: object
Show Source
Nested Schema : additionalLocaleIds
Type: array
Additional Country ids.
Show Source
Nested Schema : additionalProductionURLs
Type: array
The array of additional production URLs
Show Source
Nested Schema : allowedOriginMethods
Type: object
Additional Properties Allowed
Show Source
Map of hostname (key) and the allowed http methods (values) for that host.
Nested Schema : billingCountries
Type: array
The list of billing countries
Show Source
Nested Schema : defaultCatalog
Type: object
The default catalog associated with the site
Show Source
Nested Schema : defaultListPriceList
Type: object
The default list price list
Show Source
Nested Schema : defaultPriceListGroup
Type: object
The default price list group
Show Source
Nested Schema : defaultSalePriceList
Type: object
The default sale price list
Show Source
Nested Schema : defaultShippingSurchargePriceList
Type: object
The default shipping surcharge price list
Show Source
Nested Schema : masterCatalog
Type: object
The master catalog for the site
Show Source
Nested Schema : paymentGateways
Type: array
The array of the payment gateway names
Show Source
Nested Schema : priceListGroupList
Type: array
List of Price List Groups associated with the site including default Price List Group
Show Source
Nested Schema : profileContextList
Type: object
The list of profile contexts
Show Source
Nested Schema : siteTypes
Type: array
List of site types supported by this site. Each site type has to be one of the allowed siteType options (case sensitive)
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : allRootCategories
Type: array
The array of all root categories
Show Source
Nested Schema : rootCategories
Type: array
The root categories of the default catalog
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : categoryIdPaths
Type: array
The ids of the paths associated with the category
Show Source
Nested Schema : categoryImages
Type: array
The array of image URLs associated with the category
Show Source
Nested Schema : categoryPaths
Type: array
The category paths of the category
Show Source
Nested Schema : childCategories
Type: array
The array of child categories
Show Source
Nested Schema : fixedParentCategories
Type: array
The array of the fixed parent categories.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : currency
Type: object
The currency of the price list group
Show Source
Nested Schema : allRootCategories
Type: array
The array of all root categories
Show Source
Nested Schema : rootCategories
Type: array
The root categories of the default catalog
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : categoryIdPaths
Type: array
The ids of the paths associated with the category
Show Source
Nested Schema : categoryImages
Type: array
The array of image URLs associated with the category
Show Source
Nested Schema : categoryPaths
Type: array
The category paths of the category
Show Source
Nested Schema : childCategories
Type: array
The array of child categories
Show Source
Nested Schema : fixedParentCategories
Type: array
The array of the fixed parent categories
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : currency
Type: object
The currency of the price list group
Show Source
Example Response (application/json)
{
    "longDescription":null,
    "priceListGroupList":[
        {
            "repositoryId":"defaultPriceGroup",
            "id":"defaultPriceGroup"
        }
    ],
    "inventoryLocationId":"SiteUS-GlenAllen187",
    "productionURL":"localhostSiteUS:8080",
    "description":"Commerce Cloud Site",
    "secondaryCurrency":"USD",
    "defaultCatalog":{
        "repositoryId":"cloudLakeCatalog"
    },
    "defaultBillingCountryId":null,
    "defaultShippingCountryId":null,
    "enabled":true,
    "payTaxInSecondaryCurrency":true,
    "defaultLocaleId":"1",
    "loyaltyPrograms":[
        {
            "programName":"Movie rewards",
            "repositoryId":"siteUS_LP0001",
            "associationDate":"2017-07-05T14:15:37.000Z",
            "programId":"LP0001"
        }
    ],
    "additionalProductionURLs":[
    ],
    "id":"siteUS",
    "defaultSite":true,
    "additionalLocaleIds":[
    ],
    "recommendationsHost":"recs.atgsvcs.example.com",
    "allowAlternateCurrency":true,
    "noimage":"/file/v3496256495527410201/general/19417364_10155381677403926_746513040903355218_o.jpg",
    "defaultPriceListGroup":{
        "repositoryId":"defaultPriceGroup",
        "id":"defaultPriceGroup"
    },
    "payShippingInSecondaryCurrency":true,
    "siteTypes":[
        "commerce"
    ],
    "recommendationsPort":"8080",
    "repositoryId":"siteUS",
    "name":"Commerce Cloud Site"
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |30012|Could not get site for the id| |30011|Given Site id does not exist| |30016|Site internal error.|
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