Get Sales Company
get
/rest/v16/salesCompanies/{companyLogin}
Use this endpoint to retrieve the specified company login name.
Request
Path Parameters
-
companyLogin(required): string
The unique variable name to identify the company.
Response
200 Response
The response for getting a single sales company.
Root Schema : salesCompanyItem
Type:
Show Source
object
-
links:
array links
-
login:
string
Example:
companyOne
-
name:
string
Example:
companyOne
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 -
name:
string
-
rel:
string
Title:
Link Relationship to the current object
Default Value:self
Link Relationship to the current object
403 Response
The user has no access to the resource
404 Response
Search with id not be found
Examples
The following example shows how to retrieve the specified company login name by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/salesCompanies/a_Co1BM
Response Body Sample
{ "name": "A1BM1", "login": "a_Co1BM", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/salesCompanies/a_Co1BM" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/salesCompanies" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/salesCompanies/a_Co1BM/groups", "name": "groups" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/salesCompanies/a_Co1BM/users", "name": "users" } ] }