📄️ Overview
The Storefront API enables you to build custom shopping experiences for voucher products. Unlike traditional REST APIs, the Storefront API uses SignalR for real-time, bidirectional communication between your frontend application and our servers.
📄️ Environments
The Storefront API is available in two environments for development and production use.
📄️ Connection
The Storefront API uses SignalR for real-time communication. This page explains how to establish and manage a connection from your frontend application.
📄️ Hub Methods
Hub methods are invoked from your client application to perform actions on the server. All methods are asynchronous and should be called using connection.invoke().
📄️ Server Events
Server events are pushed from the Storefront API to your client application. Register handlers for these events to respond to basket updates and errors.
📄️ Data Models
This page describes the data structures used in the Storefront API.
📄️ Checkout Integration
When a customer is ready to complete their purchase, redirect them to the hosted checkout page. The checkout process is handled by our secure checkout system.
📄️ Complete Example
This example demonstrates a complete shopping cart implementation using the Storefront API.