> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/what-you-need-to-build.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# What you need to build

The storefront behavior you implement when Purple Dot does not supply a theme embed or cartridge.

On Shopify Liquid and Salesforce Commerce Cloud, Purple Dot ships a theme embed or a cartridge. On another storefront you use the Public API and `@purple-dot/browser` to do the same jobs.

The shopper still pays in the [Purple Dot checkout](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#purple-dot-checkout) unless the store is on native Shopify checkout. The pre-order stays in Purple Dot until you [export](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#export) it. See [Choosing a checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md).

## Pre-order state

Purple Dot is the source of whether a variant is on pre-order and which ship dates to show. Read `GET /variants/preorder-state` for a selected variant and `GET /products/preorder-state` where no variant is selected. The browser package wraps those calls. See [Show pre-order state on a product page](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/show-pre-order-state-on-a-product-page.md).

## Checkout

Combined cart keeps pre-order lines in your cart and opens the Purple Dot checkout when the cart contains one. Express checkout opens for a single variant and does not add it to your cart. The package provides both. Shopify's headless guides are the worked examples: [Set up combined checkout for a headless storefront](https://docs.getpurpledot.com/e-commerce-platforms/shopify/integrate-with-a-headless-storefront/combined-checkout.md) and [Set up express checkout for a headless storefront](https://docs.getpurpledot.com/e-commerce-platforms/shopify/integrate-with-a-headless-storefront/express-checkout.md).

## Shopper page

Confirmation emails send shoppers to a page you host. That page renders `<purple-dot-self-service />`. See [Use web components](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/use-web-components.md).

## Inventory

Shopify and SFCC send stock through their own connections. Another platform sets available units with `POST /inventory` on the Private API. The value is an absolute count. See [Send inventory with the External SKU API](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/send-inventory-with-the-external-sku-api.md).

## Related

* **Do this:** [Setup checklist](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/setup-checklist.md), [Use the browser SDK](https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/use-the-browser-sdk.md)
* **Look up:** [Public API](https://docs.getpurpledot.com/purple-dot-apis/public-api.md), [Private API](https://docs.getpurpledot.com/purple-dot-apis/private-api.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/e-commerce-platforms/other-and-custom/what-you-need-to-build.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
