Chapter 9. The Web API

Throughout previous chapters, we learned how to use some of the backend components so that storeowners can manage and manipulate the data such as customers, products, categories, orders, and so on. Sometimes this is not enough, like when we are pulling data in or out from third-party systems. In cases like these, the Magento Web API framework makes it easy to call Magento services through REST or SOAP.

In this chapter, we will cover the following topics:

  • User types
  • Authentication methods
  • REST versus SOAP
  • Hands-on with token-based authentication
  • Hands-on with OAuth-based authentication
  • OAuth-based Web API calls
  • Hands-on with session-based authentication
  • Creating custom Web APIs
  • Search Criteria Interface for list filtering

Before we ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.