The following may not be well known in the partner channel hence the sharing to the community. So we do have Business central in cloud. We have an API with basic authentication.This always gives this error:
{ "error": { "code": "Authentication_InvalidCredentials", "message": "The server has rejected the client credentials." } }
We use endpoint: api.businesscentral.dynamics.com/.../v1.0
This scenario was happening with a Delegated User Account (partner account). The answer from the product group was:
Delegated admins cannot use web service key as we cannot resolve their license without OAuth.