Use the Company Id endpoint to fetch old company IDs associated with a single company. You can choose to retrieve all or a single company ID.
Endpoint
GET: https://api.insideview.com/api/v1/companyIds/{companyId}
Request
HTTP Headers
Header Name | Type | Required | Description |
accessToken | String | Yes | Valid access token. See Authentication and Authorization Overview for more details. |
Accept | String | No | Selects the response's content type. Valid values are application/json and application/xml (default). |
URI Parameters
Parameter Name | Type | Required | Description |
companyId | Integer | Yes | Company Id to fetch Merged company IDs |
Responses
HTTP 200
Returns either a JSON or XML data structure depending on the request Accept header.
Name | type | Description |
companyId | Integer | Company InsideView ID |
currentCompanyId | Integer | Current Company ID |
mergedcompanyIds | List of Integer | Merged company IDs |
application/json example
{ "companyId": 123, "currentCompanyId":123456, "mergedCompanyIds": [123, 1234,12345] } }
application/xml example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <company> <companyId>724468</companyId> <currentCompanyId>123456</currentCompanyId>
<mergedCompanyIds> 123, 1234, 12345 </mergedCompanyIds> </company>
HTTP 400
Invalid query parameter(s).
HTTP 401
Unauthorized Error - Cannot use API's without setting a valid accessToken in header.
HTTP 405
Method Not Allowed - HTTP method other than POST is not allowed.
HTTP 404
Invalid ID, record not found.
HTTP 429
Request is throttled.
Comments
0 comments
Please sign in to leave a comment.