Hello,
here is the answer about (direct integration without any third-party platform or service)
Integration facilitates third-party services to call the Magento web APIs. The Magento APIs currently supports many third-parties like Accounting, Enterprise Resource Planning (ERP), Customer Relationship Management (CRM), Product Information Management (PIM), and marketing automation systems out of the box.
Create integration, Follow these General 5 steps in Magento:
Step 1. Create a module with minimal structure and configuration
To develop a module, you must add this
- Create the module file structure
- Define your module configuration file
- Add your module’s composer file
- Registers the module with the Magento system
- Create an InstallData.php file that installs the integration
- configuration data into the Magento integration table
Step 2. Add files specific to the integration:
Magento offering the Integration module, which modifies the process of defining your integration. This module automatically performs functions such as:
- Managing the third-party account that connects to Magento
- Maintaining OAuth authorizations and user data
- Managing security tokens and requests
you must create multiple XML files and read through other files to determine what resources existing Magento modules have access to customize your module.
The process for customizing your module includes
- Define the required resources
- Defines which API resources the integration has access to Pr-configure the integration
- The integration can be automatically pre-configured with default values in the configuration file.
Step 3.Install the module
Start with
1. Install your module to update the Magento database schema and data.
bin/Magento setup:upgrade</code>
2. Run the following command to generate the new code.
bin/Magento setup:di:compile
3. Run the following command to clean the cache.
bin/Magento cache:clean
Step 4. Check the integration
Log in to Magento and navigate to System > Extensions > Integrations. The integration should be displayed in the grid.
Step 5. Integrate with your application
You must create two pages on your application to handle OAuth communications until you can activate your integration in Magento.
- The location specified in the identity_link_url parameter must point to a page that can handle login requests
- The location specified in the endpoint_url parameter (Callback URL in Admin) must be able to process OAuth token exchanges
See CRM for eCommerce business for more information