Today’s customers expect more than just personalization – they demand speed and accuracy at every touchpoint. For retailers, this means navigating the immense pressure of managing sales orders while ensuring seamless data synchronization across systems and channels. Keeping customer information updated in real-time is crucial for providing a smooth shopping experience and equipping sales teams with accurate data.
Dynamics 365 Commerce addresses this challenge with real-time customer creation capabilities in the Dynamics 365 Modern POS or Dynamics 365 Store Commerce app. This integration, enabled through an API, allows for instant customer creation during transactions, making it particularly valuable in point-of-sale (POS) scenarios.
Curious to see how it works? Our blog provides a detailed implementation guide for real-time customer creation, along with best practices to ensure success.
What is real-time customer creation?
Real-time customer creation ensures that newly created customer records are instantly available across the system. This eliminates delays and enhances operational efficiency in customer-centric processes.
Steps to implement real-time customer creation
Ready to get started with the implementation? Here are the steps to get started:
Step 1: Prerequisites
Before starting, ensure the following:
- A Dynamics 365 instance with Dynamics 365 Commerce is enabled.
- Access the D365 environment’s Azure Active Directory (AAD) app registration.
- Necessary permissions to use D365 APIs.
- An API testing tool like Postman for initial testing.
Step 2: Set up Azure Active Directory authentication
Dynamics 365 APIs use OAuth 2.0 for authentication via Azure Active Directory. The steps below explain how it’s done:
1. Register an app in the Azure Active Directory:
- Navigate to the Azure portal.
- Register an application and note the Application ID and Tenant ID.
2. Generate client secret:
- Create a client secret under the app registration and store it securely.
3. Assign API permissions:
- Assign permissions for Dynamics 365 ERP APIs.
Step 3: Understand the API endpoint
The endpoint for creating customers in Dynamics 365 is part of the OData services:
POST API URL https:///api/services/CreateCustomerServiceGroup/CreateCustomerService/CreateCustomer’
POST Token URL
https:// /oauth2/token