SAP Knowledge Base Article - Public

2245676 - API calls return error due to invalid company ID - SuccessFactors


You are trying to connect to the SuccessFactors API and the following errors could have occurred:

  • "Authentication failed due to invalid companyId"
  • "Login failure due to the invalid company!"


  • SAP SuccessFactors HXM Suite


There are 3 possibilities:

  1. The API end-point URL is incorrect.
  2. The company ID specified is incorrect.
  3. The company ID was not provided at all during the call.


Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

First, ensure that the correct API end-point URL is used to connect to Successfactors API ("/" or a typo, or a wrong URL path could lead to the error).

For example:
If your Successfactors company ID is provisioned in Data Center 4, the API url would be

Refer to the KBA 2215682 to check all the Successfactors API URLs for each Data Centers.

Also, some calls require the Company ID to be provided along with the API call. In these cases, please ensure that the Company ID is entered correctly (as it appears in the SuccessFactors instance). Note that the company ID "Abcd" and "ABCD" are treated as two different companies (the system is case-sensitive).

Some environments don't show where you need to specify the Company ID. Be aware that you can provide it along with the user, separating the two values with a "@".

For example:

For SFAPI connections on CPI environment:

If you will use a SFAPI connection, the credentials need to be stored according the example:


For Odata connections on CPI environment:

Your company ID is "abc123", and your API user is "admin". You would specify them as "admin@abc123", this way:


See Also

Guides for SFAPI and Odata API

SAP SuccessFactors HCM Suite SFAPI: Developer Guide

SAP SuccessFactors HCM Suite OData API: Developer Guide


successfactors, success, factors, api, call, sfapi, odata, invalid, companyId, company, id, error, authentication, @, boomi, hci, cpi, pi, middleware, middle, ware, fail, login, failed, url, , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-API , API & Adhoc API Framework , Problem


SAP SuccessFactors HCM suite all versions