A headless storefront is a site or app your developers build themselves, for example with Next.js, that shows your products through Tringify's shopper API. Shoppers still pay on your Tringify checkout, so payments, taxes, shipping and orders work as they do on your online store.
Create a headless storefront
Open Settings > Headless and choose Add headless storefront. Give it a name, for example Next.js site, and add the web addresses its pages are served from (allowed origins, such as https://shop.example.com). You can have up to 10 headless storefronts.
Each headless storefront is its own sales channel, listed beside Online Store. It starts with the same products as Online Store. Afterwards, choose for each product whether it is sold there in the product's sales channels. The shopper API returns only the products sold on that channel.
Keys
Inside a headless storefront, add a storefront key for code that runs in shoppers' browsers, or a server key for your site's server. A storefront key can only read what is published and start checkouts, and works only from the allowed origins. A server key is shown once: copy it then and keep it secret. Each storefront can have up to 10 active keys, and the requests each key made over the last 30 days are shown beside it.
Revoke a key you no longer use. It stops working at once; requests that still send it are treated like requests without a key.
The AI agents channel
Every store has a built-in AI agents channel. AI assistants such as ChatGPT or Gemini that shop your store through the shopper API without a key see only the products sold on it. It starts with the same products as Online Store; take a product off the channel in its sales channels to keep it away from assistants.
Orders and reports
Orders from a headless storefront show its sales channel; orders from assistants show AI agents and the assistant's name. In Analytics, an order with no ad click or campaign is credited to the headless storefront or assistant by name. Products that need personalising in an app can't be bought through an assistant: it gets a link to the product page instead.
Blog, custom content and search
Headless storefronts and AI assistants can also read your published blog posts with their approved comments, the pages of custom content types that have web pages, and search your store. Search follows your settings in Settings > Search: if search or search suggestions are off, they are off there too, and your synonyms and result types apply.
A headless storefront can post comments on your blog posts with its key. They go through the same checks as comments on your online store: your comment settings and moderation, blocked words, the block list and the comment limits, and you get the same notification. AI assistants without a key can read comments but not post them. If your blog takes comments only from signed-in customers, headless storefronts can't post them yet.
Delete a headless storefront
Deleting a headless storefront revokes all its keys and removes its sales channel. Past orders keep the channel's name.