Starting with Dynamics CRM 2016 (v8.0), we’ve got the REST API endpoint for cross-platform integration. It will look like this: https://crmorgname.crm.dynamics.com/api/data/v8.0/accounts
SOAP endpoints are out of date, the REST / JSON / Odata-based CRM web API endpoint is a watershed in the game. We can use XMLHttpRequest or any other means to reach this endpoint with a VERB hint, for example, PUT, GET or POST for our purpose.
To authenticate, we must use OAuth, for this we need to register the PHP application in Azure Active Directory & enable permissions for Dynamics CRM online. After that, we can use this client ID & Client Secret for authentication and BEARER TOKEN can be used for API calls.
source share