listOrganizationRoles

get

/ccadmin/v1/organizations/{id}/organizationalRoles

List Organization roles. This operation is used to get the collection of customer organization roles from Oracle Commerce Cloud. It can also be used to return the list on a searched string and in a sorted order against various properties of organization roles.

Request

Supported Media Types
Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : listOrganizationRoles_response
Type: object
Show Source
Nested Schema : items
Type: array
list of organization roles
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "total":5,
    "totalResults":5,
    "offset":0,
    "limit":5,
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadmin/v1/organizations/or-100001/organizationalRoles"
        }
    ],
    "items":[
        {
            "function":"admin",
            "repositoryId":"200004"
        },
        {
            "function":"buyer",
            "repositoryId":"200005"
        },
        {
            "function":"approver",
            "repositoryId":"200006"
        },
        {
            "function":"accountAddressManager",
            "repositoryId":"200007"
        },
        {
            "function":"profileAddressManager",
            "repositoryId":"200008"
        }
    ],
    "___etag___":"eyJoYXNoIjoiaS92RnVXRHZsakhtZW9DZDBMWnQvZTRDZUMxT3dnOUhZQWxtVGwxaTNsZz0iLCJ1cmkiOiIvY2NhZG1pbnVpL3YxL29yZ2FuaXphdGlvbnMiLCJ2ZXJzaW9uIjowfQ=="
}

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| |------------------|------------------| |85000|Invalid Query Expression.| |10002|The value x for parameter 'y' is invalid. 'y' can be 'limit', 'offset' or 'sort'.|
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