The Storefront API lets you build your own webshop on top of a Unipage restaurant: your own UI, with Unipage as the source of truth for the catalog, opening hours, order slots, prices and orders.
https://api.unipage.eu/storefront/v1The restaurant is resolved from your key: there is no restaurant id in the URL. See Keys and CORS.
Routes
| Route | Key | |
|---|---|---|
GET /store |
public | Get the store |
GET /menu?orderType=&at= |
public | Get the menu |
GET /products/{id}?orderType=&at= |
public | Get a product |
GET /schedule?orderType=&days=&products= |
public | Get the schedule |
POST /cart/quote |
public | Quote a cart |
POST /orders |
secret | Create an order |
GET /orders/{id} |
secret | Get an order |
Public key routes are called from the browser. Secret key routes are called from your server. Unipage can also push your orders to your server as they are paid and prepared.
Conventions
- Money is a number in the restaurant’s currency (EUR):
4.5. atis a UTC unix timestamp in seconds;dateisYYYY-MM-DDandtimeisHH:MM, both in the restaurant’s timezone.- All ids are opaque strings. Do not parse them.
Next steps
Quickstart
The smallest working storefront: menu, quote and order, with code.
Checkout flow
From menu to paid order, in the order a storefront makes the calls.
Payments
Let the restaurant’s provider collect the money, the restaurant itself, or you.
Order webhooks
Signed events when an order is placed, paid and prepared.
Customer messages
Let Unipage message the customer, or send your own.
API reference
Every route, parameter and field, with request samples.