API reference

API reference

Every Storefront API endpoint, with its fields, examples and a playground.

Base URL: https://api.cashiar.app/v1/storefront. Every request sends the shop's publishable key: Authorization: Bearer pk_live_… (Authentication).

Shop and catalogue

Endpoint
GET/shopThe shop, its branch and hours, pickup and delivery, and collections.
GET/productsProducts on sale, a page at a time.
GET/products/{id}One product with its versions, packs, prices and extras.

Orders

Endpoint
POST/ordersPlace an order for pickup or delivery.
GET/orders/{id}Where an order is.

Bookings

Endpoint
GET/servicesServices customers can book.
GET/services/timesFree start times for a service on a day.
POST/bookingsBook one or more services.

The whole API is also an OpenAPI document, to generate types or a client.

On this page