Headless API
note
The Headless API is in beta. The schema can still change.
The Shoptet Headless API is a GraphQL API for building your own storefront on top of a Shoptet e-shop. It serves the catalogue, search, content pages, the e-shop's settings and the cart.
How to call it
Each e-shop serves the API on its own domain:
POST https://<shop-domain>/api/storefront
The Headless API must be active for the e-shop. Then create a merchant token in the administration under Connections → Headless (Propojení → Headless in the Czech administration) and exchange it for a short-lived access token. Call the API from your server – the merchant token must never reach a browser.
Related
- Shoptet Headless API documentation – the guides and the reference of every query, mutation and type, hosted outside this portal