Sage Intacct - Why Passing a locationId Parameter in a Query Returns a 400 Error

Error: 400

Message: Request failed

Provider Message: "response - {control={status=success, senderid=XXXXXX, controlid=XXXXXX, uniqueid=false, dtdversion=2.1}, operation={authentication={status=failure, userid=XXXXXX, companyid=XXXXXX, locationid=1234}, errormessage={error={errorno=XL03000006, description=null, description2=1234 is not a valid entity. Transaction should be owned by an entity and not by a sub-location., correction=null}}}}"

If your Intacct account is not configured with multi-entity support and you make a call to GET /ledger-accounts or GET /entities with a locationId parameter value, the call will fail with an authentication error similar to the Provider Message above. You will need to either contact Intacct. to enable this functionality or omit the locationId parameter from your Intacct API endpoint queries.