How to Create new API information for integration in Magento 2

Create new API Integration in Magento 2 that indicates combining your Magento store with a third-party API. The workflow of the API Integration is configuring the location of 0Auth credentials from the Magento Admin, redirecting URL for third-party integrations, and recognizing the available API sources that are required for the integration.

Let understand the instructions underneath to explain particularly what you should do to generate a great API integration for your own store.

Add a new Integration in Magento 2

  • Open your Magento 2 Backend.
  • Add a new Integration.
  • Save Configuration and check the result.

Step1:Open your Magento 2 Backend

In Dashboard, click System. In the Extensions section, select Integrations.

Step2:Add a new Integration

  • In the top-right corner, select the Add New Integration button and complete all information.
  • In the "Integration Info" field, and follow the following steps:

rr2.PNG

  • In the Name area, enter the Name of the Integration.
  • In the Email area, enter the Contact Email Address.
  • In the Callback URL area, enter the Callback URL where OAuth credentials can be assigned when using OAuth for the token switches. We strongly suggest using https://.
  • In the Identity Link URL area, enter the Identity Link URL to redirect the users to a third-party account with these Magento Integration Credentials.
  • In the Dashboard, select API, and do the following steps:

rr3.PNG

  • In the Resources Acess area, select one of the following
    • All
    • Custom
  • If you select Custom, mark the checkbox of each resource that is required

Step3:Save Configuration 

When finished with these steps Click on the Save button.

To change the API guest access security setting

  • In Dashboard, click Store. In the Settings section, select Configuration.
  • Choose Magento Web API under Services in the sidebar.
  • Open the Web API Security Setting area, and do the following steps.

rn3.PNG

  • In the Allow Anonymous Guest Access field, choose Yes.
  • When complete, click Save Config.

 

If you are looking for Magento Services, Visit Magento Consultant.