Introduction to Storefront API
The Storefront API provides customer-facing access to a shop's data. This enables you to build customer-facing shopping experience. You can access functionalities such as managing a customer's cart, accessing the storefront view of products, and creating checkouts. Storefront API access is not the same as Admin API access, which is merchant-facing side of the application and does not include the same set of permissions.
Using the Storefront API, you can:
- Fetch data about a single product, category or a collection of products that are displayed on any website or device.
- Create unique checkout experiences with full control over the shopping cart.
- Create new customers or modify existing ones, including address information.
- Allow customers to select unique product options.
Note: The Storefront API is an unauthenticated public API.
Using an unauthenticated public API
The Storefront API is an unauthenticated public API, which means that the data it publishes can be accessed by users without them having to provide a username or password. You should only use the Storefront API if you are comfortable with this risk.
Mandatory header in all APIs
To access the Storefront APIs, the header "domain-name" which holds the published storefront domain must be passed in all requests.
Header | Value |
domain-name | Published storefront domain of your store |