Get Sales Company Groups

get

/rest/v19/salesCompanies/{companyLogin}/groups

Use this endpoint to retrieve a list of groups for the specified company login name.

Request

Path Parameters
Back to Top

Response

200 Response

The sales groups for the company retrieved successfully
Body ()
Root Schema : SalesGroupCollectionModelResponse
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : salesGroupItem
Type: object
Show Source

403 Response

User has no access to the company resource

404 Response

The company resource not found
Back to Top

Examples

The following example shows how to retrieve a list of all sales company groups by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v19/salesCompanies/a_Co1BM/groups

Response Body Sample

{
  "items": [{
      "label": "AGroup1",
      "variableName": "aGroup1",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v19/salesCompanies/a_Co1BM/groups/aGroup1"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v19/salesCompanies/a_Co1BM/groups"
        }
      ]
    }
  ],
  "offset": 0,
  "limit": 1000,
  "count": 1,
  "hasMore": false,
  "links": [{
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v19/salesCompanies/a_Co1BM"
    }, {
      "rel": "canonical",
      "href": "https://sitename.oracle.com/rest/v19/salesCompanies/a_Co1BM/groups"
    }, {
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/salesCompanies/a_Co1BM/groups?offset=0&limit=1000"
    }
  ]
}
Back to Top