Get site based Organization properties
get
/ccadmin/v1/organizations/{id}/siteOrganizationProperties
Get Organization. This operation is used to list the site based Organization properties from Oracle Commerce Cloud.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
string
Required:true
The ID of the Organization.
Query Parameters
- allSites
-
Type:
string
Its a Boolean parameter. if its value is true then it includes all b2b sites in the response. If false then returns only sites of current and parent account- include
Type:string
Currently (nullContracts ,notnullContracts , "" ) are supported values for this param. nullContracts - returns sites with only null contracts notNullContracts - returns sites only with not null contracts. If equals "'" - it returns both null and not null contracts- limit
Type:string
This is the field to determine number of records to be fetched per REST call.- offset
Type:string
This field determines the offset/starting index from which data to be fetched.- searchText
Type:string
Text that will be search across site, contract, price group, catalog- sort
Type:string
This field determines the sort order of the list to be fetched.Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : siteOrganizationProperties_response- items
-
Type:
array
itemsAdditional Properties Allowed:list of Site Organization Properties - limit
-
Type:
integer
Number of records to be fetched. - offset
-
Type:
integer
The offset provided. - total
-
Type:
integer
Total number of records present in database matching the searched string. - totalResults
-
Type:
integer
Total number of records present in database matching the searched string.
Nested Schema : itemsNested Schema : itemsType:object
Nested Schema : inheritedType:object
Inherited property information- approvalRequired
-
Type:
boolean
A boolean flag to indicate whether this property is inherited or not, if true then it is inherited - contract
-
Type:
boolean
A boolean flag to indicate whether this property is inherited or not, if true then it is inherited - delegateApprovalManagement
-
Type:
boolean
A boolean flag to indicate whether this property is inherited or not, if true then it is inherited - orderPriceLimit
-
Type:
number
A boolean flag to indicate whether this property is inherited or not, if true then it is inherited
Nested Schema : siteType:object
Site information- enabled
-
Type:
boolean
The enabled flag for the site - id
-
Type:
string
The id for Site - name
-
Type:
string
The name for the site - productionURL
-
Type:
string
The production url of the site
Nested Schema : contractType:object
Contract- catalog
-
Type:
object
catalogAdditional Properties Allowed:Catalog associated with contract - displayName
-
Type:
string
Display name for contract - priceListGroup
-
Type:
object
priceListGroupAdditional Properties Allowed:Price ListGroup associated with contract - repositoryId
-
Type:
string
Repository Id of the contract
Nested Schema : catalogType:object
Catalog associated with contract- repositoryId
-
Type:
string
Repository Id of the catalog
Nested Schema : priceListGroupType:object
Price ListGroup associated with contract- repositoryId
-
Type:
string
Repository Id of the price list group
Example application/json
{ "total":1, "totalResults":1, "offset":0, "limit":1, "links":[ { "rel":"self", "href":"http://localhost:9080/ccadmin/v1/organizations/100001/siteOrganizationProperties?allSites=true" } ], "items":[ { "site":{ "productionURL":null, "name":"CloudLake US Site test", "id":"200002", "enabled":false }, "inherited":{ "approvalRequired":false, "contract":false, "delegateApprovalManagement":false, "orderPriceLimit":null }, "properties":{ "approvalRequired":false, "contract":{ "catalog":{ "displayName":"Master Catalog", "repositoryId":"cloudCatalog" }, "displayName":"20002 site", "repositoryId":"400001", "priceListGroup":{ "displayName":"Default Price Group", "repositoryId":"defaultPriceGroup" } }, "delegateApprovalManagement":false, "useExternalApprovalWebhook":false, "orderPriceLimit":null } } ] }
Default ResponseThe error response 100105 : Error while fetching site account properties 100106 : Invalid sort property 'sortString'. Allowed sort properties are [site, contract, catalog, priceListGroup] 100107 : Invalid input: 'inputOrgId' 100108 : Invalid organization id for fetching site account propertiesBodyRoot 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:
{ "total": 1, "totalResults": 1, "offset": 0, "limit": 1, "links": [{ "rel": "self", "href": "http://localhost:9080/ccadmin/v1/organizations/100001/siteOrganizationProperties?allSites=true" }], "items": [{ "site": { "productionURL": null, "name": "CloudLake US Site test", "id": "200002", "enabled": false }, "inherited": { "approvalRequired": false, "contract": false, "delegateApprovalManagement": false, "orderPriceLimit": null }, "properties": { "approvalRequired": false, "contract": { "catalog": { "displayName": "Master Catalog", "repositoryId": "cloudCatalog" }, "displayName": "20002 site", "repositoryId": "400001", "priceListGroup": { "displayName": "Default Price Group", "repositoryId": "defaultPriceGroup" } }, "delegateApprovalManagement": false, "useExternalApprovalWebhook": false, "orderPriceLimit": null } }] }