> 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/salesforce-commerce-cloud/how-purple-dot-works-with-sfcc.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# How Purple Dot works with SFCC

How the Purple Dot cartridge, the catalog and shipping-rate import, order export, and inventory work together on a Salesforce Commerce Cloud site.

To sell pre-orders on a Salesforce Commerce Cloud (SFCC) site, you install the Purple Dot cartridge. It adds the pre-order button and the Purple Dot checkout to your storefront, and runs jobs that send your catalog and shipping methods to Purple Dot. Shoppers pay in the [Purple Dot checkout](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#purple-dot-checkout), and each pre-order stays in Purple Dot until you [export](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#export) it, which creates the order in SFCC. Purple Dot also writes pre-order stock into your SFCC inventory list, so SFCC knows which products can sell on pre-order.

## The cartridge

The cartridge is a set of SFCC cartridges you add to your site's cartridge path. It works with Storefront Reference Architecture (SFRA) sites and older SiteGenesis sites. It adds:

* a **Pre-order** button on product pages, and a pre-order label on product tiles
* the Purple Dot checkout, which opens in a window over your storefront
* a cart button for pre-order items, if your store uses separate cart
* a link to the [shopper self-service page](https://docs.getpurpledot.com/managing-pre-orders/shopper-communication/the-shopper-self-service-page.md)
* a **Purple Dot** group of custom site preferences in Business Manager, where you turn Purple Dot on and enter your API keys
* jobs that export your catalog, inventory lists, and shipping methods to Purple Dot

SFCC sites use the Purple Dot checkout as [express checkout](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#express-checkout) or [separate cart](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#separate-cart). Since the 2024-08-29 cartridge, express checkout is the default. Combined cart isn't available for SFCC. For how the forms differ, see [Choosing a checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md#the-purple-dot-checkout).

Purple Dot also connects to your SFCC instance directly, through Salesforce's APIs. You give it API client credentials in the Merchant Portal when you install the cartridge. It uses them to read and write inventory records and to create orders.

## Catalog and shipping-rate import

Purple Dot needs your products before you can put them on a waitlist, and your shipping methods before the checkout can charge for shipping. The cartridge's jobs export them from Business Manager as files, on the schedule you set, and Purple Dot imports each file when it arrives.

The catalog job exports one catalog. Purple Dot creates or updates a product for each product in the file, with its variants, prices, and images. Only products the catalog owns are exported; products assigned to it from another catalog are skipped.

From the shipping methods file, Purple Dot keeps one rate per country: the cheapest method that is marked for Purple Dot, applies to that country, is in your store's currency, and isn't store pickup. It updates that country's rate on each import. See [Import catalog and shipping rates](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/import-catalog-and-shipping-rates.md).

## Where stock comes from

Your in-stock inventory stays in SFCC. While a product has stock in the inventory list assigned to your site, the shopper buys it through your normal SFCC checkout.

Purple Dot writes pre-order stock into the same inventory list. For each variant on a [waitlist](https://docs.getpurpledot.com/understanding-purple-dot/glossary.md#waitlist), it sets the inventory record's pre-order and backorder allocation to the units still available on pre-order, sets handling to pre-order, and sets the in-stock date to the earliest ship date of the product's open waitlists. When a variant can't sell on pre-order, Purple Dot sets the allocation to 0 and handling to none. The cartridge then shows the pre-order button for products that are out of stock and available for pre-order.

The inventory job also uploads a file to Purple Dot, but Purple Dot doesn't use it to decide stock or availability.

## Order export

Native checkout isn't available for SFCC, so the order isn't in SFCC while the shopper waits. The pre-order exists only in Purple Dot until you export it, and you find and change it in the Merchant Portal.

When you export a pre-order, Purple Dot charges any remaining balance and creates the order in SFCC through the Shopper Login and API Access Service (SLAS) credentials you gave it. The order is marked as paid with the **PurpleDot** payment method, and carries the Purple Dot pre-order reference and line item IDs in custom attributes, so your order management and warehouse systems can handle it like any other order. Export is manual for SFCC stores; [automated release](https://docs.getpurpledot.com/understanding-purple-dot/releasing-and-fulfilling-pre-orders.md#manual-and-automated-release) is available for Shopify stores. See [Export a pre-order to SFCC](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/export-a-pre-order-to-sfcc.md).

After export, refunds you issue in the Merchant Portal add a note with the refund amount to the SFCC order.

## Why it works this way

Keeping in-stock inventory in SFCC means your existing checkout, promotions, and order flow keep working for everything that's in stock. Purple Dot only steps in when a product is out of stock and on a waitlist. Creating the SFCC order at export, rather than at checkout, keeps pre-orders out of your warehouse's queue until the stock has arrived. The tradeoff is that pre-orders don't appear in SFCC reports or customer service tools until you export them.

## Related

* **Concept:** [Choosing a checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md#which-method-to-choose), [Releasing and fulfilling pre-orders](https://docs.getpurpledot.com/understanding-purple-dot/releasing-and-fulfilling-pre-orders.md#release-export-and-hold)
* **Do this:** [Install the cartridge](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/install-the-cartridge.md), [Import catalog and shipping rates](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/import-catalog-and-shipping-rates.md), [Export a pre-order to SFCC](https://docs.getpurpledot.com/e-commerce-platforms/salesforce-commerce-cloud/export-a-pre-order-to-sfcc.md)
* **Look up:** [Glossary](https://docs.getpurpledot.com/understanding-purple-dot/glossary.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/salesforce-commerce-cloud/how-purple-dot-works-with-sfcc.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.
