Magento Web APIs provide developers and integrators with the tools to use web services that communicate with the Magento system. Magento API is available for both REST and SOAP. Magento web APIs integrate any Magento application with external systems. In Magento 2, the REST and SOAP APIs have access to the same set of features, can share authentication, and use the same permissions. Now, the SOAP API is also universally WS-I compliant.
There are three separated types of authentication for mobile applications, third-party applications, and administrators and customers. All integrations and accounts are assigned to specific resources where they can get access to. The API framework checks that all calls have the authorization to perform the request. REST API determines a set of functions to which the developers can send requests and receive responses via the HTTP protocol. It can be used practically for all programming languages. Magento REST API allows managing customers and their addresses, sales orders, products, and inventory.
The Magento SOAP enables users to manage their eCommerce stores by making calls for working with such resources as sales orders, customers, products, and categories. Besides, it allows to control operations with inventory and shopping cart. SOAP is the default protocol but the Magento API also supports XML-RPC.
The APIs can be used to perform a large variety of tasks such as:
- Creating a shopping app. Developers can create a traditional app that users can download on their mobile devices. It can also be a special app that employees will use in a showroom to help shoppers make purchases.
- Integrate with a content management system (CMS). At present, there is no support for content tagging.
- Integrate with ERP (Enterprise Resource Planning) or CRM (Customer Relationship Management) back-end systems, such as Xero or Salesforce.