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
-
companyLogin(required): string
The unique variable name to identify the company
Response
200 Response
The sales groups for the company retrieved successfully
Root Schema : SalesGroupCollectionModelResponse
Type:
Show Source
object
-
count:
integer
-
hasMore:
boolean
Default Value:
false
-
items:
array items
-
limit:
integer
-
links:
array links
-
offset:
integer
-
totalResutls:
integer
Nested Schema : links
Type:
Show Source
array
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : salesGroupItem
Type:
Show Source
object
-
label:
string
Example:
GroupOne
-
links:
array links
-
variableName:
string
Example:
groupOne
Nested Schema : links
Type:
Show Source
array
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
rel:
string
Title:
Link Relationship to the current object
Link Relationship to the current object
403 Response
User has no access to the company resource
404 Response
The company resource not found
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" } ] }