SAP Knowledge Base Article - Public

2245676 - API calls return the error - Authentication failed due to invalid companyId


You are trying to connect to API.

 The following error has occurred.

"Authentication failed due to invalid companyId"


The environment could be Boomi / PI / Direct API Web Service / HCI

Reproducing the Issue

Steps to Re-produce the issue.

Connect to the data center specific API end-point url using the below:

  • Company Id
  • Username 
  • Password

 The error is re-produced with the above steps.


There are 2 possibilities:

1. The API end-point url is incorrect. ("/" or a typo or a wrong url path could be the reason)

2. The company ID specified is not correct. Please note that company ID Abcd and ABCD are treated as two different companies. This is case-sensitive.


Please ensure that the correct API end-point URL is used to connect to Successfactors API.

For example - If your Successfactors company Id is provisioned in Data Center 4, The API url would be -


For other data centers, You would find the respective end-point url from the handbook from the below link -

Please refer to the KBA to know Successfactors API URLs for different Data Centers.

Secondly, Please ensure that the Company Id is entered as it appears in the successfactors instance (Case-Sensitive)



See Also

Reference guides for SFAPI and Odata API



invalid companyId error  , KBA , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , Problem


SAP SuccessFactors HCM Core all versions