# SureBright Documentation
# Abandoned Cart Recovery
Source: https://docs.surebright.com/abandoned-cart-guide/abandoned-cart
> Win back checkouts your shoppers left behind by offering them a protection plan, free or discounted, in a single-use code.
When a shopper fills a cart, starts checkout and leaves without paying, that checkout is an **abandoned cart**. SureBright captures it for you. Once the cart has been quiet long enough, you prepare an offer for it: your rules pick a protection plan for each product that can be covered, and a single-use discount code is created that makes that plan free or cheaper. You review the offer, change anything you want, then email it to the shopper as a Shopify invoice.
Nothing is sent without you. Every email is a button you press.
The discount code only ever applies to the protection plan, never to your own products. Your store funds the discount; SureBright still bills the plan at its normal price.
## How it works
A shopper starts checkout and leaves. SureBright records the cart automatically. It appears in the **Carts** tab as **Watching**.
Once no activity has happened for the time you set in **Settings**, the cart becomes **Ready to prepare**.
Open the cart and press **Prepare offer**. Your rules choose the plan for each covered product and create the discount code. Nothing is emailed yet.
Change the plan or the discount if you want, then press **Send now**. The shopper receives a Shopify invoice email with the code.
## Before you start
Two things must be in place, and your SureBright contact sets them up with you:
| What | Why it matters |
|---|---|
| Abandoned Cart switched on for your store | Without it the tab shows a message asking you to contact support |
| At least one **active** rule | A rule decides the discount and the plan. With none active, no cart can be prepared |
## The five tabs
| Tab | Use it to |
|---|---|
| **Carts** | See every captured checkout, prepare offers and send them |
| **Rules** | Decide who qualifies, how big the discount is and which plan is attached |
| **Messages** | See every email that went out, and retry any that failed |
| **Settings** | Set when a cart counts as abandoned, plan defaults, wording and recipients |
| **Performance** | See what recovery produced and what the discounts cost you |
---
## 1. Carts
This is where you spend most of your time. Each row is one captured checkout.

The columns tell you, left to right: when the shopper was **last active**, **who** they are, the **cart value**, the **product** that can be covered, the **plan and price** being offered, and the cart's current **status**.
Under **Warranty plan and price** you will see two figures, for example ~~$78.47~~ **Free**. The struck-through figure is the plan's full price, which is what SureBright bills you. The bold figure is what the shopper pays after your offer.
### What each status means
The chips across the top filter the list. Click one to see only those carts.
| Status | What it means | What you should do |
|---|---|---|
| **Watching** | The checkout was captured but has not been quiet long enough yet | Nothing. Wait |
| **Ready to prepare** | The cart has gone quiet and can be worked on | Open it and press **Prepare offer** |
| **Needs a plan** | The offer was prepared but no plan was attached automatically | Open it, press **Add plan** on the product line, choose a plan, then press **Create code** |
| **Ready to send** | A plan and a discount code are ready | Review it and press **Send now** |
| **Sent** | The offer email has gone to the shopper | Wait. You can send again up to the limit your rule allows |
| **Recovered with warranty** | The shopper came back, paid, and kept the protection plan | Nothing. This is the win |
| **Recovered** | The shopper came back and paid, but without the plan | Nothing. The order is recovered, the plan was not taken |
| **Bought on their own** | They completed the purchase before you sent anything | Nothing. Recovery played no part |
| **Expired** | The code's validity period ran out before they used it | Open it and press **Create code** for a fresh one, then send again |
| **Not eligible** | Your rules found nothing that could be offered | Read the reason shown beside the status. Often nothing in the cart can be covered |
| **Skipped** | You chose to skip this cart | Nothing will be sent for it |
| **Could not create offer** | The discount code could not be created in Shopify | Open the cart, read the reason, fix it, then press **Create code** |
**Bought on their own** carts are hidden from the **All** list on purpose, because there are usually many of them and there is nothing to do. Click their own chip when you want to see them.
### Finding a specific cart
- **Search** by shopper email, name, product, SKU or discount code.
- **Any rule** narrows the list to carts matched by one rule.
- **Eligible product only** hides carts where nothing can be covered.
- **Show carts with no email** reveals carts captured before the shopper entered an email. They count in your reporting, but nothing can be sent to them.
### Refresh
**Refresh** checks your live carts against Shopify for new purchases and for codes that have run out, then reloads the list. Use it when you want today's numbers to be current — statuses do not update on their own while you watch the page.
---
## 2. Preparing and sending an offer
Click any cart row to open it.
### Before you prepare

The panel tells you plainly where the cart stands and what the next step is. Nothing has been chosen and nothing has been emailed. Press **Prepare offer**.
### After you prepare

Now you can see everything the shopper will get:
- **Cart items** — each product, the plan chosen for it, and what the shopper pays.
- **Why this cart qualified** — how far the shopper got, when it was abandoned, and which rule matched.
- **Discount code** — the single-use code, when it expires, and a **Copy** button.
- **The shopper will see** — the exact subject and message of the email.
### Changing the plan on a line
Press **Change** on any line to see every plan available for that product.

Each card shows **what the shopper pays** in bold and the plan's full price struck through beside it. Pick the one you want and confirm.
If your store offers both **Accidental damage** and **Extended protection** for a product, the picker shows a tab for each. Stores with only one kind of cover see no tabs.
Changing a plan after the offer was already emailed is allowed. The cart will show **You changed this, resend** so you know the shopper has the old version.
### Changing the discount for one cart only
Sometimes one shopper deserves a better offer than your rule gives everyone. Click **Change the discount for this cart** to open it.

Choose one of three, then press **Save offer**:
| Choice | What the shopper gets |
|---|---|
| **Free** | Pays nothing for the protection plan |
| **% off** | A percentage off the plan's price |
| **Amount off** | A fixed amount off the plan's price |
This affects **this cart only**. Your rule is untouched and no other cart changes. The heading always shows the offer currently in force, so you can see it without opening the section.
Saving creates a **new** discount code for this cart. Any code you already sent stops working, so send the offer again afterwards.
### Sending
Press **Send now**. The shopper gets a Shopify invoice email carrying your branding, the cart and the code.
- **Change the email message** lets you write a one-off subject and message for this cart.
- The line beside the button tells you how many sends this cart is allowed, for example *Up to 2 sends*.
- To send several at once, tick the carts in the list and press **Send to N selected** above the table.
- **Skip this cart** marks it as deliberately left alone.
If **Send now** is unavailable, the panel says why in plain words: no email address on the checkout, no plan picked on any line, or no discount code created yet.
---
## 3. Rules
A rule answers three questions, in this order:
1. **Which carts qualify** — does this rule apply to the cart at all?
2. **How big the discount is** — how much of the plan's price you pay for.
3. **Which plan is attached** — which plan each covered product gets.

Rules are checked in **priority order**, lowest number first. The **first** rule that matches a cart wins, decides its whole offer, and no other rule is consulted. A cart matched by no rule ends up **Not eligible**.
Press **Edit** on a rule, or **+ New rule** to add one.

### Name and code
| Field | What it does |
|---|---|
| **Rule name** | Shown on every cart this rule matches and in the Messages log. Name it for what it does, for example "Free 3-year cover on TVs" |
| **Discount code prefix** | 4 to 12 letters or digits. Every cart gets its **own** code, `PREFIX-XXXXX`, which can be redeemed once. One shopper's code cannot be reused on another cart |
### Which carts qualify
Four choices. Pick the one that describes who the offer is for.

| Choice | The rule applies when… | Use it when |
|---|---|---|
| **Any eligible product** | The cart holds **anything** you can cover | You want one blanket offer across the store |
| **Selected categories** | The cart holds a product in one of the SureBright categories you tick | You want a campaign on a whole product family, such as all TVs |
| **Selected products** | The cart holds one of the exact products you search for and add | A campaign on specific items, such as one hero product |
| **Cart value floor** | The cart subtotal is at or above the amount you enter | You only want to fund a discount on baskets worth recovering |
Two things worth knowing about **Selected products**: you search by title or SKU, and the rule stores the **product ID** — the number shown beside each name — so renaming a product later does not break the rule. If you choose a targeted mode and add nothing, **Save changes** stays disabled and the footer tells you: *"Choose at least one category, product, or a cart floor."*
**Selected categories** needs SureBright categories set up for your store. If none are, the editor says so, and you should use **Any eligible product** or **Selected products** instead.
### The discount
This is how much of the **protection plan's** price you cover. It never touches your own products' prices.
| Choice | The shopper pays | You fund |
|---|---|---|
| **Free protection** | Nothing for the plan | The plan's full price |
| **Percent off** | The plan's price minus your percentage (1–100) | That percentage of the plan price |
| **Amount off** | The plan's price minus a fixed sum in your store currency | That fixed sum |
Whichever you pick, **SureBright still bills you the plan's normal price**. The discount is funded by your store — that is why the cart list shows the full price struck through beside what the shopper pays.
### Which plan is attached
Left alone, the rule uses your store default from **Settings**. The closed toggle tells you what that default currently is, for example *"Default preselected plan, every eligible line, fallback 2 years then 1 year."*
Turn on **Override the store default for this rule** when this campaign needs a different plan from the rest of the store.

**Plan strategy** — how the warranty duration is chosen:
| Option | What it picks |
|---|---|
| **Default preselected plan** | The same term your product page preselects. When that is unknown, the middle term on offer |
| **Fixed term** | Exactly the term you choose. A **Term** dropdown appears: 1, 2, 3, 4 or 5 years |
| **Cheapest plan** | The lowest-priced plan available for that product |
| **Longest plan** | The longest term available for that product |
**Coverage type** — only matters if your store offers both kinds of cover for a product:
| Option | Meaning |
|---|---|
| **Store default** | Use whatever your store setting says |
| **Extended protection** | Covers mechanical and electrical breakdown |
| **Accidental damage** | Also covers drops, spills and similar accidents |
**When several lines qualify** — a cart can hold more than one coverable product:
| Option | Which lines get a plan |
|---|---|
| **Every eligible line** | All of them. The most generous, and the most discount you fund |
| **Highest-value line only** | Just the most expensive product in the cart |
| **Only lines the rule names** | Just the products or categories this rule targets. Other coverable items in the cart are left alone. If the rule uses **Any eligible product** it names nothing, so this behaves the same as **Every eligible line** |
**A plan the shopper already chose beats your strategy.** If they had put a 3-year plan in the cart themselves, the offer re-attaches 3 years even if your rule says "cheapest" — re-offering something shorter would be a worse deal than the one they walked away from.
### Timing and limits
| Field | What it does |
|---|---|
| **Code valid for** | How long the shopper has to use the code, from **24 hours** to **30 days**, counted from the moment the code is created — not from when you send it |
| **Max sends per cart** | 1, 2 or 3. Every email to that cart counts, including retries |
| **Priority** | Lower wins when a cart matches several rules |
| **Tighten the abandonment definition for this rule** | Lets this one rule wait longer, or demand a bigger cart, than your store setting. It can only be **stricter**, never looser |
You cannot pause or delete your **only** active rule. With none active, no new cart can be prepared. Add or activate another one first.
---
## 4. Settings
Store-wide defaults. A rule can override most of them for the carts it matches.
### When is a cart abandoned

| Setting | What it does |
|---|---|
| **No activity for** | How long a checkout must be quiet before you can prepare an offer. From **30 minutes** to **3 days** |
| **Shopper got at least as far as** | Only count carts that reached a given step: any step (cart with items), contact details entered, shipping method chosen, or payment page reached. Later steps mean fewer carts but warmer ones |
| **Cart subtotal at least** | Ignore small carts. Leave empty to include every value |
| **Require an email on the checkout** | Carts without one are still captured for your reporting, but nothing can ever be sent to them |
| **Carts that already contain a protection plan** | Off by default, so the offer re-attaches the plan the shopper already chose, at your discount — they get what they wanted for less. Turn on to leave those carts alone |
| **Carts with another discount applied** | Turn on to avoid stacking your recovery code on a promotion already running |
| **Shoppers who ordered in the last (days)** | Exclude recent buyers. Empty means no exclusion |
Changing these affects carts from now on. Carts you have already prepared keep the offer they were given.
### Which plan is attached by default

The same choices as in a rule — **How we pick the plan** (plus **Term** when you choose Fixed term), **Coverage type** and **When several lines qualify** — applied whenever a rule does not say otherwise. Every cart's plan still stays editable per line in the cart panel.
One control here has no equivalent inside a rule:
**If nothing matches, try in order.** Click the terms in the order you want them tried when your chosen strategy finds nothing — for example a 3-year plan that does not exist for a particular product. The chips show that order as **(1st)**, **(2nd)** and so on. If none of them can be attached either, the cart shows as **Needs a plan** so you can pick one by hand.
**Coverage type** here reads **"Whatever your product page offers first"** rather than "Store default", because at store level there is no higher default to fall back to.
### Recipients and channel
| Setting | What it does |
|---|---|
| **Who can receive an offer** | **Only shoppers with marketing consent**, or **anyone who left an email**. Choose against your own marketing rules |
| **How the email is sent** | Shopify invoice email. Shopify sends a draft-order invoice carrying the cart and the already-discounted plan. The layout is Shopify's template; the subject and message are yours |
### Email message
Leave the subject and message **empty** and each cart gets wording matched to its own offer — a free cart is told "with free protection", a half-price cart "with 50% off protection". Type your own to use the same words on every cart instead. You can always see the exact message on a cart before you send it, and you can send yourself a **test email** first.
### Suppression list
Addresses that must never receive an offer, whatever their consent setting. Unsubscribes are added here automatically.
---
## 5. Messages
Every send, reminder, retry and copied link, with its delivery status.

Filter by kind or by status, search by recipient or code, and export to CSV. Open any row to read the message exactly as it was sent. If one failed or bounced, **Retry send** sends it again and appears as a new row linked to the original.
---
## 6. Performance
What recovery produced, and what it cost you. Switch between **7 days**, **30 days** and **90 days**.

The four figures at the top:
| Figure | Meaning |
|---|---|
| **Recovered order value** | Total value of orders that came back after an offer |
| **Warranty revenue attached** | Full price of the plans those orders kept |
| **Discount you funded** | What your discount cost you, at the plan's normal price |
| **Net on warranties** | Attached revenue minus the discount you funded |
The **Funnel** shows each stage as a share of abandoned carts in the period: captured, how many had a product that could be covered, how many got a code, how many were emailed, how many came back, and how many kept the plan. **By rule** and **By plan term** show which rule and which warranty duration are actually working.
---
## Common questions
No. Every offer email is sent by you, from the cart panel or by selecting carts in the list.
Your rules found nothing to offer. The most common reason is that no product in the cart has protection available. The exact reason is shown beside the status when you open the cart.
No. It only ever reduces the price of the protection plan.
By default the offer re-attaches the same plan they chose, at your discount, so they get what they already wanted for less. You can switch this off in Settings.
Not until you send again. The cart shows **You changed this, resend** as a reminder.
The code's validity period, set by **Code valid for** on the rule, ran out before the shopper used it. Open the cart and press **Create code** to issue a fresh one, then send it again.
Purchases and expiries are checked when you press **Refresh** on the Carts tab, or when you open a cart.
---
# Authentication
Source: https://docs.surebright.com/api-reference/authentication
> Learn how to authenticate your requests to the SureBright API
## Overview
The SureBright API uses a private API key for authenticating requests to secure endpoints. This key must be included in the request header using the X-SureBright-Access-Token field. You can view and manage your API key through the SureBright Merchant Portal under Account Settings.
🔒 Important:
Your API key grants privileged access—treat it as sensitive information. Never expose your API key in public repositories (e.g., GitHub) or embed it in client-side code.
All API requests must be made over HTTPS. Requests sent over plain HTTP will be rejected.
Authentication is required only for secure endpoints, such as those involving order details, claims, and other sensitive merchant or customer data. Public or non-sensitive endpoints may not require authentication.
| Type | API key
|------|----------------------|
| Header Parameter Name | X-SureBright-Access-Token |
## Example Request
### Sandbox Environment
```bash
curl -X POST \
https://{HOST_NAME}/platform/api/v1/order \\
-H 'Accept: application/json' \\
-H 'Content-Type: application/json' \\
-H 'X-SureBright-Access-Token: {sandbox access token}'
```
## Required Credentials
The following values will be provided as part of the SureBright Integration Kit for both staging and production environments:
- `storeId`
- `X-SureBright-Access-Token`
- `HOST_NAME`
---
# Cancel Contracts for Whole System Warranty
Source: https://docs.surebright.com/api-reference/endpoint/order/cancel-contract-whole-system-warranty
> This endpoint cancels an existing warranty contract for a whole system order. Provide the contract ID obtained from the Create Contracts for Whole System Warranty endpoint. The API returns the cancellation status of the warranty contract.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | Yes |
## Overview
This endpoint cancels warranty contract for a whole system order.
A contract can only be cancelled within 30 days after the date of sale of purchase.
---
# Create Contracts for Order
Source: https://docs.surebright.com/api-reference/endpoint/order/create-contract
> This endpoint is used to create warranty contracts for a specific order. 🛠️ **Contract Creation Logic** Warranty contracts are created in a 1:1 ratio with the quantity of the associated product purchased. The warranty quantity is automatically inferred from the product quantity. Contracts are only created for the exact number of products purchased—warranty coverage cannot exceed or fall short of the product quantity. 🏷️ **Using policySKU** The `policySKU` is a required field that determines the parameters of each warranty contract, including: - Coverage Type (e.g., accidental damage, mechanical breakdown) - Tenure (duration of coverage) - Country (to apply relevant terms and conditions) - Category (product type classification) Merchants must ensure that the appropriate `policySKU` is used for each product to ensure accurate coverage assignment. 🔁 **Handling Updates** If this endpoint is called for an order where contracts already exist: - Existing contracts will be updated if the quantity or details have changed. - Warranty price, tenure, and coverage type are handled automatically based on the provided `policySKU`.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | Yes |
| Content-Type | application/json | Yes |
---
# Create / Update Contracts for Whole System Warranty
Source: https://docs.surebright.com/api-reference/endpoint/order/create-contract-whole-system-warranty
> This endpoint creates or updates a warranty contract for a whole system proposal. Provide sbProposalId, the selected warranty quote and plan details, and customer information. The covered line items, total covered amount, and installer warranty duration come from the proposal. If a contract already exists for the proposal, it is updated. Covered line items can be updated within 90 days from the original sale date; updates do not restart this window. Customer details and other non-line item fields can still be updated afterward, subject to the usual request validations. Backward compatibility: Existing integrations can provide sbSalesLeadId instead of sbProposalId. If both are supplied, their values must match; otherwise, the endpoint returns HTTP 400 with errorType 512. For new integrations, use sbProposalId.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | Yes |
| Content-Type | application/json | Yes |
## Overview
This endpoint creates or updates a warranty contract for a whole system order. It is used after obtaining warranty quotes from the **List Quotes for Whole System Warranty** endpoint.
### Flow
1. Call the **List Quotes for Whole System Warranty** endpoint to get available warranty plans for your proposal.
2. Select the desired plan from the returned `warrantyQuoteItemList`.
3. Submit `sbProposalId`, the selected warranty details, and customer information to this endpoint. The covered line items, total covered amount, and installer warranty duration come from the proposal.
### Request Details
- **`sbProposalId`** - The SureBright proposal ID returned by the List Quotes API. The proposal must belong to the supplied `storeId`.
- **`warrantyQuoteId`** - The quote ID returned by the List Quotes API.
- **`warrantyQuoteItemId`** - The ID of the selected plan within that quote.
Provide `sbProposalId` and use the quote and plan IDs from the same quote response.
`sbProposalId` is required to identify the proposal whose covered products will be used for the contract, subject to the backward-compatibility exception below. Obtain this ID from the **List Quotes for Whole System Warranty** endpoint. Do not send `lineItemList`; any supplied value is ignored.
**Updating Existing Contracts**
If a contract already exists for the provided proposal, calling this endpoint updates that contract:
- Covered line items can be updated within **90 days from the original sale date**. Updating the contract does not restart this window.
- **Customer details** and other non-line item fields can still be updated after this window, subject to the usual request validations.
To change covered products, first request updated quotes for the same proposal, then submit the selected quote and plan details to this endpoint.
**Backward compatibility:** Existing integrations can provide `sbSalesLeadId` instead of `sbProposalId` when creating or updating contracts. If both are supplied, their values must match; otherwise, this endpoint returns HTTP `400` with `errorType: 512`. For new integrations, use `sbProposalId`.
### Validations
The endpoint checks the proposal, store, selected plan, and contract update window. Failed checks return the following errors:
| Check | Error |
|-------|-------|
| `sbProposalId` is provided and valid (see the backward-compatibility note for existing integrations) | `512` Validation Failed for Input Parameters |
| The proposal exists and belongs to the supplied `storeId` | `515` Sales Lead Not Found |
| `warrantyQuoteId` matches the quote associated with the proposal | `518` Quote ID Mismatch |
| The selected quote exists | `513` No Quote Found |
| The supplied `storeId` identifies an existing store | `514` Store Not Found |
| `warrantyQuoteItemId` identifies a plan within the selected quote | `519` Quote Item Not Found |
| `warrantyCoverageYears` matches the selected plan's `coverageYears` | `520` Warranty Coverage Years Mismatch |
| The existing contract associated with the proposal can be found when updating it | `516` Contract Not Found |
| Covered line-item changes are within 90 days from the original sale date | `517` Line Items Update Not Allowed |
### Response
On success, you will receive:
- **`contractId`** - The unique identifier for the warranty contract created or updated.
---
# Overview
Source: https://docs.surebright.com/api-reference/endpoint/order/index
The **Order entity** serves as the foundational record that captures detailed information about the line items purchased by a customer. Each line item within an order represents a product eligible for various warranty offerings, such as:
- Product protection plans
- Shipping warranties
The **SureBright Order API** is designed to transmit sold contract details to our system and to manage related operations such as order updates and cancellations. It acts as the primary interface for creating, updating, or canceling warranty contracts associated with your sales.
---
## 🔧 Key Functions of the Order API
### ✅ Create Warranty Contracts
When a new order is submitted:
- The API checks if the `partnerOrderId` exists in SureBright’s records.
- If it **does not exist**, the API automatically generates **warranty contracts** for the order’s line items based on the provided details.
### ♻️ Update Existing Contracts
When the `partnerOrderId` **already exists**:
- Use the **`PUT method`** to update the existing order and its associated warranty contracts.
- If a lower quantity is specified for any line item compared to the original order, the system will **automatically cancel** the corresponding number of warranty contracts to reflect the reduced coverage.
### ❌ Cancel Specific Line Items
To cancel warranty coverage on a particular product line:
- Set the `warrantyQuantity` field to `0` for that line item in the `lineItemList` via the `PUT` method.
- This action cancels **only** the warranty contracts for that specific line item, leaving the rest of the order unaffected.
---
## 🧾 Summary of API Capabilities
| Operation | Description |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Create Order (POST)** | Generates new warranty contracts if the order is not yet recorded (`partnerOrderId` not found). |
| **Update Order (PUT)** | Modifies existing warranty contracts and adjusts quantities. Cancels contracts if quantity decreases. |
| **Cancel Line Item(PUT)** | To cancel a specific line item, Using PUT method of order API set the field "warrantyQuantity" in lineItem inside lineItemList to 0 as part of the lineItem details. |
---
This API provides a robust way to keep your warranty contracts in sync with your order lifecycle, ensuring **accurate coverage management** across sales, returns, and cancellations.
---
# Cancel / Update contracts for Order
Source: https://docs.surebright.com/api-reference/endpoint/order/update-contract
> This endpoint is used to create, update, or cancel warranty contracts for a specific order. 🔄 **Updating Line Item Quantities** If the quantity of a product in the original order is changed (e.g., reduced), the corresponding warranty contract quantity is automatically adjusted to match the updated product quantity. To reduce or cancel warranty coverage for a line item, update the `quantity` field inside the relevant `lineItem` object in the `orderLineItemList`. ❌ **Cancelling Line Items** To cancel warranty coverage for a specific line item, set its `quantity` to 0 in the `orderLineItemList`. Once cancelled, a warranty contract cannot be reactivated. This applies to both partial cancellations (some items in the order) and full order cancellations. 🧾 **Handling Full Order Cancellation** For full order cancellations, merchants have two options: - Remove the `planDetails` object entirely from the request payload. - Set the `quantity` of each relevant `lineItem` in `orderLineItemList` to 0. ⚙️ **Automatic Price and Tenure Updates** Any changes to warranty price or tenure (e.g., due to product updates or plan revisions) are handled automatically by the system.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | Yes |
| Content-Type | application/json | Yes |
---
# Overview
Source: https://docs.surebright.com/api-reference/endpoint/quote/index
A **Quote** represents the dynamically generated pricing and coverage details for an extended warranty plan when a user inquires about protection for a specific product variant or product category.
It serves as a core object in the warranty flow, allowing customers to view and select the most relevant protection plans at the point of sale.
---
## 🧩 How Quotes Are Generated
Quotes can be generated in two ways:
### 🔹 For a Specific Product Variant
Provides **precise pricing and plan options** tailored to the exact product configuration (e.g., brand, model, price).
- Ideal for **product detail pages** or **checkout flows**
### 🔹 For a Product Category
Returns a **price range** that reflects variability across products within the selected category (e.g., Televisions, Home Appliances).
- Includes **multiple tenure and coverage options**
- Helps users understand **general cost and protection level**
---
## 🌍 Geographic Sensitivity
Quotes are **region-aware** and vary based on:
- **Country**
Warranty pricing, tax, regulations, and coverage terms may differ by country.
- **Province/State (within a Country)**
Localized pricing or regulations may apply.
_Example: California vs Texas, or Ontario vs Quebec._
---
## 📦 Quote & QuoteItem Structure
Each quote is uniquely identified by a `quoteId`.
A `quoteId` may include **multiple plan options**, each represented by a unique `quoteItemId`.
Each `quoteItemId` includes:
- **Coverage Type** – e.g., Accidental Damage, Breakdown, or both
- **Tenure** – Duration of coverage (e.g., 12, 24, 36 months)
- **Price** – Fixed cost (variant-level) or price range (category-level)
- **Deductible** – Optional customer-paid portion per claim
- **Region** – Country and, if applicable, province/state
- **Currency & Locale** – Ensures accurate regional pricing
- **Terms & Conditions URL** – Link to the full warranty policy
---
## 🚀 Usage
Quotes enable both customers and merchant systems to:
- Dynamically present **warranty options** based on user location and product context
- Power **product detail pages**, modals, or embedded widgets with tailored protection plans
- Drive **upsell logic** that reflects jurisdiction-specific compliance and pricing logic
---
# By Category
Source: https://docs.surebright.com/api-reference/endpoint/quote/list-warranty-quotes-by-category
> Lists warranty quote options for one or more products, by category and product price. Each quoteItemList entry carries a quoteId and quoteItemId; send these in planDetails when recording the order.
## Note
All quote inputs go inside the `payload` JSON, which is sent Base64-encoded (UTF-8) as a query parameter. Send `quoteSyncMode=SYNC` when you will record an order with the returned `quoteId` and `quoteItemId`.
## Headers
No authentication header is needed for this endpoint.
## Country and State Codes
- Country codes (Alpha 2): [IBAN Country Codes](https://www.iban.com/country-codes)
- US State codes: [FIPS State Codes](https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code)
---
# By Product
Source: https://docs.surebright.com/api-reference/endpoint/quote/list-warranty-quotes-by-product
> This endpoint retrieves a list of warranty quotes for a specific product and its price.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | No |
## Country and State Codes
- Country codes (Alpha 2): [IBAN Country Codes](https://www.iban.com/country-codes)
- US State codes: [FIPS State Codes](https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code)
---
# By Product Details
Source: https://docs.surebright.com/api-reference/endpoint/quote/list-warranty-quotes-by-product-details
> This endpoint retrieves a list of warranty quotes based on product details (title, description, and price). The response includes detailed warranty options, pricing, and coverage information similar to other quote endpoints.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | No |
| Content-Type | application/json | Yes |
## Country and State Codes
- Country codes (Alpha 2): [IBAN Country Codes](https://www.iban.com/country-codes)
- US State codes: [FIPS State Codes](https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code)
---
# By Url
Source: https://docs.surebright.com/api-reference/endpoint/quote/list-warranty-quotes-by-url
> This endpoint fetches all warranty quotes for the product category to which product in the sent URL belongs.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | No |
## Country and State Codes
- Country codes (Alpha 2): [IBAN Country Codes](https://www.iban.com/country-codes)
- US State codes: [FIPS State Codes](https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code)
---
# For Whole System Warranty
Source: https://docs.surebright.com/api-reference/endpoint/quote/list-warranty-quotes-for-whole-system
> This endpoint generates warranty quotes for a whole system order. Provide your store, product line items, and installer warranty duration to receive available warranty plans, prices, product coverage details, and terms and conditions. When quotes are available, SureBright saves them and your product details as a proposal that you can update or use to create a contract.
## Headers
| Header | Description | Required |
|--------|-------------|----------|
| X-SureBright-Access-Token | Access token for authentication | No |
| Content-Type | application/json | Yes |
## Country and State Codes
- Country codes (Alpha 2): [IBAN Country Codes](https://www.iban.com/country-codes)
- US State codes: [FIPS State Codes](https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code)
---
## Requesting Quotes
Send `storeId`, `lineItemList`, and `installerWarrantyDuration` to request warranty quotes for your products. Leave `sbProposalId` out of the initial request.
You can include a new `partnerProposalId` to associate the proposal with an ID from your system. Reusing an existing ID updates that proposal.
When quotes are available, the response includes the warranty plans and `sbProposalId`. Save this ID to request updated quotes or create a contract.
## Updating Quotes for an Existing Proposal
Include `sbProposalId` or `partnerProposalId` with your current line items and installer warranty duration to request updated quotes for the same proposal. If you provide both, they must refer to the same proposal. A conflicting `partnerProposalId` returns HTTP `409` with code `PROPOSAL_ID_MISMATCH`.
Quotes are recalculated using the submitted product details and current pricing and coverage. If the products, classification, installer warranty duration, pricing, and coverage are unchanged, the existing quote and plan IDs are returned. If these details change, the proposal and its quotes are updated.
To create or update a contract, submit `sbProposalId`, `warrantyQuoteId`, and the selected `warrantyQuoteItemId` to the **Create / Update Contracts for Whole System Warranty** endpoint. Use the quote and plan IDs from the same response. Updating quotes does not automatically update an existing contract.
**Backward compatibility:** The response also includes `sbSalesLeadId` with the same value as `sbProposalId`. Existing integrations can use it to request updated quotes or create and update contracts. Leave it out of the initial quote request. If you provide both `sbProposalId` and `sbSalesLeadId`, their values must match; otherwise, this quote endpoint returns HTTP `409` with code `SB_PROPOSAL_ID_MISMATCH`. Any supplied `partnerProposalId` must refer to the same proposal. For new integrations, use `sbProposalId`.
---
# Overview
Source: https://docs.surebright.com/api-reference/endpoint/store-category/index
> A Store Category represents a distinct grouping of products within a specific store that are eligible for extended warranty coverage.
It is used to determine applicable protection plans based on:
- Product type
- Usage patterns
- Risk profiles
This classification enables stores to tailor warranty offerings to their unique catalog and customer base.
---
## Unique Identification
Each store category is uniquely defined by:
- **Store ID**
- **Product Category**
This ensures that the same product category (e.g., _Televisions_) can have customized warranty rules across different stores—allowing flexibility in **coverage**, **pricing**, and **eligibility**.
---
## Examples of Store Categories
Products within a store category typically share functional or physical characteristics. Common examples include:
- **Consumer Electronics**
- Smartphones, tablets, laptops
- **Home Appliances**
- Microwaves, washing machines
- **Major Appliances**
- Refrigerators, ovens
- **Mobility**
- E-bikes, hoverboards, electric scooters
- **Furniture**
- Indoor furniture, outdoor furniture, mattresses, rugs
---
## Coverage Options
Warranty coverage associated with a store category may include:
- **Accidental Damage Protection**
- Drops, spills, and other unintentional physical damage
- **Mechanical or Electrical Breakdown**
- Failures occurring after the manufacturer's warranty expires
- **Configurable Plan Features**
- Deductible options
- Custom warranty durations
---
ℹ️ **Recommendation:**\
The **store category-based quotes** functionality is primarily recommended for **POS (Point-of-Sale) stores** that do not have complete product-level information available in their catalog. This approach enables these stores to offer warranty coverage based on broader product classifications rather than individual SKUs.
---
# List Category
Source: https://docs.surebright.com/api-reference/endpoint/store-category/list-category
> Lists the warranty categories active on a store. Send either storeId or storeParentId. Use the returned sbCategoryId when listing quotes by category.
## Headers
No authentication header is needed for this endpoint.
---
# HTTP Status Codes
Source: https://docs.surebright.com/api-reference/http-status-codes
Insufficient Parameters
Validation Failed for Input Parameters
Product Not Found
No Quote Found
Store Not Found
Not Eligible
Category Not Found
Quotes Found
Something Unexpectedly Went Wrong
---
# Introduction
Source: https://docs.surebright.com/api-reference/introduction
### Offer Seamless Protection with SureBright
**SureBright’s API-first platform empowers merchants to offer comprehensive product protection, including:**
- **Accidental Damage**
- **Extended Warranty**
- **Shipping Protection**
Our proprietary technology handles the full lifecycle—from categorizing products and capturing contract sales to powering dynamic UI and managing post-purchase customer experiences.
---
### Why SureBright
- **API-first & Developer-friendly**: Built for fast, flexible integrations.
- **End-to-End Coverage**: We manage everything—from backend logic to the customer experience.
- **AI-Driven Efficiency**: Reduces integration time, operational workload, and ongoing maintenance by up to **95%**.
- **Dynamic Pricing Engine**: Available **on request**, this feature enables real-time pricing optimization to boost customer conversions.
---
### Seamless Customer Experience
**Consumers can purchase protection plans at key points in the shopping journey:**
- **Product Page** – Offer protection alongside the product for early decision-making.
- **Cart Popup** – Reinforce protection at a high-intent moment.
- **Cart Page** – Final chance to add protection before checkout.
On the **cart page**, customers are also offered the option to:
- **Protect all items in the cart using Shipping Protection**, ensuring comprehensive coverage for their order.
---
### Easy Integration with Full UI Control
SureBright’s solution is designed for seamless integration while giving you:
- **Full control over the widget UI** to ensure a consistent and branded customer experience
- **Dynamic, context-aware display** of protection offers tailored to your catalog
- **Zero backend maintenance** – we handle pricing updates, logic, and product changes so you don’t have to
---
### Comprehensive API Suite for Full Program Visibility
SureBright provides a full gamut of APIs that give merchants complete visibility and control over their product protection programs. Merchants can:
- **Push orders and contracts** seamlessly to SureBright’s platform
- **Retrieve and manage store product categories** for accurate protection mapping
- **Check quotes for any product** in real time to offer dynamic, up-to-date protection plans
This API suite ensures you have full transparency and operational control throughout the entire customer protection lifecycle.
---
# Over the Phone Sales using Draft Order Extension
Source: https://docs.surebright.com/draft-order-guide/shopify-draft-order
> This document describes how to use Shopify’s Draft Orders to record over the phone sales
A Draft Order in Shopify allows merchants to manually create orders for custom or over the phone sales outside the regular checkout process. It benefits merchants by providing personalized orders, flexible payment options, and the ability to review an invoice before payment. Draft orders reserve inventory, enabling quick adjustments like adding items or modifying quantities. They also allow for special discounts and act as quotations, offering transparency in pricing.
## Sales Use Cases/ Scenarios
We have listed the common scenarios/use cases below. Please feel free to directly jump to the scenario which is applicable to you.
1. Selling product and the warranty plan in one single order through Draft Orders
2. Selling a warranty plan for a customer who has already bought the product that he wants to cover using Shopify
3. Selling a warranty plan for the case when the customer had already bought the product but not on Shopify. Though the product is listed in your Shopify store.
4. Selling a warranty plan for the case when the customer had already bought the product but not on Shopify. Though the product is NOT listed on your Shopify store.
## Prerequisite
### Installing SureBright Extension for Draft Orders
**Note:** The SureBright Draft Order extension for Shopify requires permission to create draft orders.
Follow these steps to access the SureBright Draft Order extension:
1. Open any one of your existing draft orders or created orders.
2. If you don’t have an existing draft order, simply click on ‘Create order’ and add any product to it. Click ‘Save’ — only then will the next step become available.

3. On the order page, click on the **More actions** dropdown (located at the top of the page).
4. From the dropdown, select **SureBright - Product Protection Draft Order**.

5. On first use, you will be redirected to a Shopify authentication screen for sharing necessary permissions. Please proceed with the same.
6. Once authenticated, the SureBright popup will open and you can begin adding warranty plans to your line items.
##
### Sales Use Case 1: Selling a Product and Warranty Plan in a Single Order through Draft Orders
You can create a draft order that sells both a product and its associated warranty plan in single transaction.
- In your Shopify admin, go to Orders \> Drafts \> Create Order.

- Search for the product by clicking “Browse” button and add it to the draft order.

- Click Save on the top.

- In the draft order page, click on the **More actions** dropdown (located at the top of the order page).
- From the dropdown, select **SureBright - Product Protection Draft Order**.

- A popup will open. For the respective line items, select the appropriate warranty plan from the drop-down menu and click **Save**.

- Confirm the product and warranty are added.
- Choose the payment method or send an invoice to the customer.
- Fulfill the order once payment is completed.
### Sales Use Case 2: Selling a Warranty Plan for a Customer Who Already Bought the Product via Shopify
If a customer previously purchased a product from your Shopify store and now wants to buy a warranty:
- Open Order page with the product sale for which policy is to be purchased.
- Click on the **More actions** dropdown and select **SureBright - Product Protection Draft Order**.

- A popup will open. For the respective line items, select the appropriate warranty plan from the drop-down menu and click **Save**.

- If the product has not been auto-categorized yet, the warranty options dropdown will display **"No Extended Warranty Options Available"**.

- Click on the dropdown and select **"No, I will categorize the product"**. A **Select Category** dropdown will appear below.

- Choose the appropriate category for the product. A **Fetch Quotes** button will appear — click it to retrieve available warranty policies.

- Once quotes are fetched, a **Select Policy** dropdown will appear.

- Choose your preferred warranty policy from the list and click **Save** to complete the process.

- Set the payment terms or send an invoice.
### Sales Use Case 3: Selling a Warranty Plan for a Customer Who Bought the Product Elsewhere, But It’s Listed in Your Shopify Store
If a customer bought a product from another platform but the product is present in your Shopify store, you can still sell them a warranty plan.
- In your Shopify admin, go to Orders \> Drafts \> Create Order.

- Search for the product by clicking “Browse” button and add it to the draft order. You can add it for record-keeping purposes, even if they already own the product.

- Click Save on the top.

- Click on the **More actions** dropdown and select **SureBright - Product Protection Draft Order**.

- A popup will open prompting you to select the product purchase date. Click on **Select Product Purchase Date** to open the date picker.

- The date picker calendar will appear. Select the product purchase date.

- Once selected, the chosen date will be displayed. Click **Next** to proceed.

- For the respective line items, select the appropriate warranty plan from the drop-down menu and click **Save**.

- The warranty will be added to the draft order alongside the product.

- To remove the line item associated with the selected warranty, click on the ‘Delete’ icon next to the original product. (This step ensures the product is not purchased twice.)
- The bill will only contain the warranty for the associated product. Set the payment terms. Finalize and fulfill the order once the warranty payment is processed
### Sales Use Case 4: Selling a warranty plan for the customer who bought the product outside Shopify, and the product SKU is not listed in your Shopify Store
In cases where the product is not listed on your Shopify store, but a customer wants to buy a warranty for it:
- If the product SKU selected is not present in your Shopify store, then add it in your Shopify store.
After adding SKU, please wait a few hours for auto-categorization to work. Only then will the policy options become visible. For immediate assistance, feel free to contact us at [support@surebright.com](mailto:support@surebright.com).
- Navigate to Orders \> Drafts \> Create Order

- Search for the product for which the warranty is to be selected by clicking Browse (which is listed on your Shopify store) and add it to the draft order.

- You can add it for record-keeping purposes, even if they already own the product.
- Click Save on the top.

- Click on the **More actions** dropdown and select **SureBright - Product Protection Draft Order**.

- A popup will open prompting you to select the product purchase date. Click on **Select Product Purchase Date** to open the date picker.

- The date picker calendar will appear. Select the product purchase date.

- Once selected, the chosen date will be displayed. Click **Next** to proceed.

- The system will show "No Extended Warranty Options Available" in the warranty options dropdown.

- Click on the dropdown and select **"No, I will categorize the product"** to enable manual categorization.
- A **Select Category** dropdown will appear below.

- Choose the appropriate category for your product from the available options.
- After selecting the category, a **Fetch Quotes** button will appear. Click **Fetch Quotes** to retrieve available warranty policies for the selected category.

- Once quotes are fetched, a **Select Policy** dropdown will appear.

- Choose your preferred warranty policy from the list and click **Save** to complete the process.

- The warranty will be added to the draft order alongside the product.

- To remove the line item associated with the selected warranty, click on the ‘Delete’ icon next to the original product. (This step ensures the product is not purchased twice.)
- Set the payment terms or send an invoice. Finalize and fulfill the order once the warranty payment is processed.
1. **E-Commerce Platform Apps**
- Shopify
- WooCommerce
- BigCommerce
- Shift4Shop
2. **Brick and Mortar Store and Over the Phone Sales**
- Shopify POS
- Lightspeed POS
- Dedicated POS portal
3. **Missed Point of Sales and Marketplace (e.g., Amazon) Sales**
- Dedicated Online Portal
- QR Code-based warranty cross-selling
- 1-click checkout dynamic web links for retailer's post-purchase campaigns
- Follow up email campaigns
4. **Independent Websites**
- Integration via two simple APIs
- Website widget
---
# JavaScript Injection
Source: https://docs.surebright.com/frontend-widget-integration/frontend-widget-kit/javascript-injection
## Selection-Change Callback
SureBright fires a callback whenever the customer's protection selection changes — when they select a plan, switch plans, or deselect. Use it to react to those changes in your own code; for example, to update the price shown on your page so it reflects the selected protection.
The callback lives on the same `window.SureBright` global you use for `initialize`.
### 1. Register a Handler
Pass your handler to `window.SureBright.onSelectionChange`. SureBright invokes it on every selection change and passes a `selectionChange` object that describes what changed. Read the price from that object to update your page — SureBright never modifies your page's price elements for you.
```javascript js
window.SureBright.onSelectionChange(function (selectionChange) {
if (selectionChange.action === "selected" && selectionChange.pricing) {
// Protection added — the total now includes the selected plan.
console.log(selectionChange.pricing.totalPrice, selectionChange.pricing.currency);
} else {
// Protection removed — fall back to the base product price.
console.log(selectionChange.pricing?.basePrice, selectionChange.pricing?.currency);
}
});
```
`onSelectionChange` returns a function that unsubscribes your handler. Keep a reference to it only if you need to stop listening later.
### 2. Read the Selection Change
Each call receives a single `selectionChange` object describing what the customer did:
The kind of change. Either `selected` or `deselected`.
The widget surface the change came from: `pdp`, `quickview`, `cart`, `checkout`, `postPurchase`, `registration`, or `shippingInsurance`.
The selected protection plan. Present on a `selected` action from a surface that exposes a full quote; `null` on `deselected` or where a quote isn't available.
Identifier of the quote the plan belongs to.
Identifier of the selected plan within the quote.
Length of coverage, in years.
One of `BREAKDOWN`, `ACCIDENTAL`, `ACCIDENTAL_BREAKDOWN`, or `SHIPPING`.
Price of the protection plan.
ISO currency code for the plan price.
Identifier of the policy product's variant — the protection plan itself, not the covered product.
Whether this plan is the quote's default selection.
Whether the plan shows a highlight ribbon (e.g. a "Best Seller" badge).
Text shown on the highlight ribbon.
Length of the manufacturer's warranty, in years. Optional.
The product the customer was viewing. `null` when product data isn't available at selection time.
Identifier of the covered product.
Identifier of the selected variant.
Display title of the product.
ISO currency code for the product price.
Computed price breakdown for the selection. `null` when the base product price is unknown.
Price of the product without protection.
Price of the selected protection plan.
Sum of the base price and the protection price.
ISO currency code for the amounts above.
---
# SDK Installation
Source: https://docs.surebright.com/frontend-widget-integration/frontend-widget-kit/sdk-installation
> Add the SureBright script to a custom storefront so the protection widget can show up.
If your store runs on Shopify, Magento, or Salesforce Commerce Cloud, our app adds the SureBright script for you and there is nothing to do here.
If you built your own storefront — Hydrogen, Next.js, or any custom front end — someone on your team needs to add the script once:
```text title="Script URL"
https://cdn.surebright.com/sbsimxsdk.js
```
Add it to the `
` of your storefront, in the place that applies to every page, so it loads on product, cart, and checkout pages. Keep the id as `sbsimxsdk`, and add it only once per page.
There are two ways to do it. Either one is fine.
## Option 1: Add the Script Tag
Paste this into the `` of your storefront:
```html title="Static injection"
```
## Option 2: Add the Script with JavaScript
Or add it to the `` from your own code:
```html title="Dynamic injection"
```
## After You Add It
To confirm it is live, open a product page and check that `sbsimxsdk.js` loads in your browser's Network tab.
That is all the code you need. There is nothing to configure and no keys to add — we turn the integration on for your store from our side.
Once the script is on your storefront, let the SureBright team know. We finish and test the integration, then enable it for your store.
If you also want your own code to react when a shopper adds or removes a protection plan, see [JavaScript Injection](/frontend-widget-integration/frontend-widget-kit/javascript-injection).
---
# Brand Managed Campaign
Source: https://docs.surebright.com/klaviyo-integration/brand-managed-campaign-guide
> Follow the steps below to configure a Klaviyo Flow that targets customers eligible for warranty upsell emails using your own email templates and messaging
Access credentials must be shared and initial configuration steps completed as outlined in the [Klaviyo Integration Guide](/klaviyo-integration/integration-guide). Once setup is complete, you may proceed with this guide.
## Seamless Integration
To power these campaigns, SureBright automatically sends enriched customer and order data to your Klaviyo account once you have shared access as mentioned in integration guide. This includes:
- Warranty plan details
- Order and product information
- Coverage summary
- Personalized post-purchase journey links
This enables you to craft dynamic, timely, and relevant messages to drive conversions and enhance customer trust.
## Flow Configuration
### Overview
To engage customers with eligible warranty options, you'll set up a custom flow in Klaviyo based on SureBright's eligibility events. This involves:
- Creating a new flow tailored for warranty outreach.
- Selecting the specific **SureBright: Eligible Order** event as the trigger.
- Filtering the trigger to target only eligible orders.
- Designing email steps that leverage SureBright Event data for personalized messaging.
- Inserting dynamic links and details from the events to enhance relevance.
- Test the functionality end-to-end by creating an order with SureBright Warranty Eligible product.
All post-purchase emails must be approved by the SureBright team to ensure brand and compliance alignment.
### 1. Navigate to the Flow Builder
- Log in to your Klaviyo account.
- Go to **Flows** from the left-hand menu.
- Click [**Create Flow**](https://help.klaviyo.com/hc/en-us/articles/115002774932-Getting-Started-with-Flows).
- Choose **Build your own**, and name your flow something like `SureBright Post-Purchase Warranty`.
---
### 2. Set the Trigger
- For the **Trigger**, select **Metric**.
- In the dropdown, \*\*choose \*\*`SureBright: Eligible Order`.
_Do not use the generic "Placed Order" trigger—this will not capture warranty-eligible events._
---
### 3. Add a Trigger Filter
- After selecting the trigger, click **"Trigger Filters"**.
- Add a condition:
- **Field:** `is_eligible`
- **Condition:** `equals`
- **Value:** `true`
This ensures that only orders eligible for a post-purchase warranty offer are included.
---
**4. Build Your Flow**
- Add your **email step(s)** to the flow as desired.
- Use **SureBright event data** to personalize your messaging.
### 5. Personalize Using Event Attributes
In your email content, you can dynamically insert values from the SureBright event payload. One key attribute to include is:
- `{{ event.post_purchase_url }}` – This is a unique, customer-facing link where protection plans can be directly purchased.
You can also use additional attributes like:
- `{{ event.order_id }}`
- `{{ event.product_title }}`
- `{{ event.coverage_options }}`
- `{{ event.person.first_name }}`
### 6. Submit for Review
Before activating the flow, please submit a preview or test email to the SureBright team for compliance review and approval.
## Event Details
### **Event - SureBright: Eligible Order**
This event is triggered when a customer purchases a product that is eligible for a SureBright warranty. Here are the attributes available to you in Klaviyo about SureBright eligibility on your store's orders:
Platform Order Id (Example: Shopify Order Id)
Total Order Amount
Currency code (Example: "USD")
Timestamp of order creation
URL of the merchant's logo
Url for SureBright's Logo
Name of the merchant
URL for post-purchase warranty actions
Title of the purchased product
Whether the order is warranty eligible
Indicates type of coverage
Coverage based dynamic title
Array of Coverage options provided with the warranty.
Icon for the particular coverage text
Coverage text
**Example Payload:**
```json SureBright: Eligible Order [expandable]
{
"order_id": "1234567890",
"order_amount": "199.99",
"currency": "USD",
"created_at": "2025-04-10T14:57:11.451046",
"merchant_logo_url": "https://yourstore.com/logo.png",
"merchant_name": "Your Store Name",
"post_purchase_url": "https://yourstore.com/?quoteLeadId=1234567890",
"product_title": "Sample Product Name",
"is_eligible": true,
"coverage_type": "AD",
"coverage_option_title": "Your Accidental Damage Protection Plan ensures:",
"coverage_options": [
{
"icon_url": "https://cdn.example.com/icons/damage.png",
"text": "Protection against unforeseen damage such as drops, spills, and falls."
},
{
"icon_url": "https://cdn.example.com/icons/breakdown.png",
"text": "Coverage for mechanical and electrical breakdowns, including power surges."
},
{
"icon_url": "https://cdn.example.com/icons/repair.png",
"text": "Full coverage for parts, labor, and repairs."
},
{
"icon_url": "https://cdn.example.com/icons/wear.png",
"text": "Protection against wear and tear impacting functionality."
},
{
"icon_url": "https://cdn.example.com/icons/replace.png",
"text": "If it can't be repaired, it will be replaced."
}
]
}
```
### **Event - SureBright: Policy Purchased**
This event is triggered when a customer successfully purchases a warranty for their product. Most merchants use this event to stop further warranty marketing once coverage has been bought.
Here are the attributes available in Klaviyo when a policy is purchased:
Platform Order Id (Example: Shopify Order Id)
Unique identifier for the SureBright warranty contract
Title of the product covered by the warranty
Duration of the warranty coverage (e.g., 1 year, 2 years)
Price paid by the customer for the warranty
Timestamp when the warranty was purchased
Type of warranty coverage (e.g., AD for Accidental Damage, B for Breakdown)
**Example Payload:**
```json SureBright: Policy Purchased [expandable]
{
"order_id": "1234567890",
"contract_id": "4efcf6ce8f7b465da14fe1d65c64dsd",
"product_title": "Sample Product Title",
"policy_tenure": "1 year",
"policy_price": "29.99",
"warranty_purchase_date": "2025-04-10T15:00:41.301007",
"coverage_type": "AD"
}
```
## Implementation Use Cases
### SureBright: Eligible Order
Use this event to drive engagement and conversion among customers who didn't buy a warranty at checkout:
- **Timed Drip Flows:** Create flows that trigger based on time elapsed since purchase, nudging non-buyers at key intervals.
- **Follow-up Campaigns:** Send reminder emails prompting customers to purchase protection for eligible products.
- **Direct to Purchase:** Use the `post_purchase_url` to guide customers to a pre-filled, personalized warranty offer page.
### SureBright: Policy Purchased
Leverage this event to build customer trust and extend your brand experience post-purchase:
- **Acknowledge and Appreciate Your Customers:** Brand's customized thank-you message.
- **Stop further communications:** Scheduled communications can be terminated based on this event.
## Flow Example

## Best Practices
Ensure your campaign delivers maximum value and conversion by following these recommendations:
- **Dynamic Personalization:** Use attributes like `product_title`, `coverage_type`, and `policy_price` to tailor messaging.
- **Contextual Journeys:** Differentiate your flows based on warranty type—e.g., breakdown vs. accidental damage—to increase relevance.
### FAQs
Event Data from SureBright begins flowing into Klaviyo only after the integration is enabled. This means that any historical SureBright Data—captured prior to activation—will not be available within Klaviyo.
Once SureBright has completed the configuration on your account, the relevant events (e.g., SureBright: Eligible Order, SureBright: Policy Purchased) and associated data will appear in Klaviyo. If you've already shared access but still don't see the events, please wait for confirmation from the SureBright team or contact support for an update.
## [****](https://surebrighttechnologiesinc.mintlify.app/klaviyo-integration/klaviyoIntegrationGuide#implementation-use-cases)Support
Need help with setup or strategy? Reach out to your **SureBright Representative**, email us at [support@surebright.com](mailto:support@surebright.com), or your **Klaviyo account manager** for hands-on support.
---
# Integration Guide
Source: https://docs.surebright.com/klaviyo-integration/integration-guide
> SureBright enables you to engage customers who did not purchase a warranty at the time of checkout by sending personalized post-purchase emails across multiple channels.
### Program Options
We offer two flexible modes to support your campaign:
1. **White-Glove Campaigns (Recommended)**\
Our team will handle everything—from setup to execution—for all eligible customers. This is the most hands-off option and ensures high-performing campaigns aligned with best practices.
2. [**Brand-Managed Campaigns**](/klaviyo-integration/brand-managed-campaign-guide)\
For brands that prefer to control their customer experience, we enable you to use your own email templates and messaging. SureBright provides the necessary data; you bring the creative.
## Steps to Enable Access
To enable the SureBright integration, we require your **Klaviyo Public and Private API Keys**. Follow [this quick guide](https://app.storylane.io/share/gmb05pqr5zbj) to generate and share the keys.
For Brand-Managed Campaigns, refer to the [Brand-Managed Campaign Guide](/klaviyo-integration/brand-managed-campaign-guide) for step-by-step instructions on flow creation, event parameters, and best practices.
## Support
Need help with setup or strategy? Contact your SureBright representative, email us at [support@surebright.com](mailto:support@surebright.com), or reach out to your Klaviyo account manager for hands-on support.
---
# Disable/Enable Module
Source: https://docs.surebright.com/magento/disable-guide
> Guide to disable/enable SureBright module.
## **Disable SureBright Module**
### 1. Turn off SureBright Module
Run this command to disable SureBright module.
> php bin/magento module:disable Surebright_Integration --clear-static-content
### 2. Rebuild Code
Run following command to rebuild code
> bin/magento setup:di:compile
### 3. Clear Cache
Run this to clean up the cache:
> bin/magento cache:clean
## ✅ **All Set\! SureBright Integration Disabled**
🎉 You’ve successfully **disabled** the SureBright Integration on your Magento store\!
## **Enable SureBright Module**
### 1. Turn on SureBright Module
Run this to enable the module:
> php bin/magento module:enable Surebright_Integration
### 2. Rebuild Code
Run following command to rebuild code
> bin/magento setup:di:compile
### 3. Clear Cache
Run this to clean up the cache:
> bin/magento cache:clean
## ✅ **All Set\! SureBright Integration Enabled**
🎉 You’ve successfully **enabled** the SureBright Integration on your Magento store\!
---
# Installation Guide
Source: https://docs.surebright.com/magento/install-guide
> Installation guide for SureBright Magento module to enable product and shipping protection on you website.
## Installation Steps
### A. Module Installation Steps
Use the terminal (putty/ any ssh client) on your computer to connect to your Magento server (this is called SSH)
> ssh [username@your.server.ip](mailto:username@your.server.ip)
- Replace **username** with your actual username
- Replace \*\*your.server.ip \*\*with your server IP address or website domain name. e.g. (127.0.0.1 / [mystore.com](http://mystore.com))
- Windows users please download putty, you can visit this link to download putty https://www.wikihow.com/Use-Putty-in-Windows
Once you're connected, go to the main folder where all your store’s files are kept.
**Usually, it's /var/www/html**
> cd /path/to/magento/root
Run this command to install the integration.
> composer require surebright/integration
> bin/magento setup:upgrade
>
> bin/magento setup:di:compile
Deploy static files (like images and styles) by running
> bin/magento setup:static-content:deploy -f -j5
Refresh Magento so everything works properly by running:
> bin/magento cache:clean
After completing these steps, the integration should be successfully installed.
**You can follow the steps below to activate your SureBright Product Protection app**
### B. Activation Steps

Click on the Integrations option within the Extensions heading of your System menu item

Look for SureBright Product Protection line item and click on Activate / Reauthorize option

Please authorize/reauthorize the SureBright app that would help it access details like catalogue and order information required for running the warranty program

### C. Login to SureBright
You can now login to SureBright Merchant portal using the credentials shared. This would give you complete visibility into the warranty program. If you have not received the credentials, please reach out to your Account Manager.

Click on Add Payment Method to provide payment details. This allows SureBright to charge for the cost of the warranty plans sold to customers, through your store. We charge at a weekly/monthly frequence as per your preference.

## ✅ **All Set\! SureBright Integration Completed**
🎉 You’ve successfully **installed** the SureBright Integration on your Magento store\!
---
# Re-Install Guide
Source: https://docs.surebright.com/magento/reinstall-guide
> Re-install guide to disable and re-enable SureBright module for Magento.
## Re-Installation Steps
### A. Uninstall SureBright module
Run this command to disable the module and remove old files:
> php bin/magento module:disable Surebright_Integration --clear-static-content
Run this to rebuild the necessary files:
> bin/magento setup:di:compile
Run this to remove the SureBright integration:
> composer remove surebright/integration
Run this to apply the changes
> bin/magento setup:upgrade
Run this to clean up the cache and setup your store visuals:
> bin/magento setup:static-content:deploy -f -j5
> bin/magento cache:clean
### B. Re-Install Steps
Run this to add SureBright again:
> composer require surebright/integration:v1.3.11
Run this to enable the module:
> php bin/magento module:enable Surebright_Integration
Run this to finalize the reinstall:
> bin/magento setup:upgrade
> bin/magento setup:di:compile
### C. Clear Cache
Run these commands to apply schema updates, recompile dependency injection, and flush the cache:
```bash
bin/magento setup:static-content:deploy -f -j5
php bin/magento cache:flush
```
## ✅ **All Set! SureBright Integration Completed**
🎉 You’ve successfully **reinstalled** the SureBright Integration on your Magento store!
---
# Business Manager Setup
Source: https://docs.surebright.com/salesforce-commerce-cloud/BusinessManagerSetup
> Step-by-step guide for setting up SureBright integration in SFCC Business Manager including cartridge upload, metadata import, and catalog configuration.
# Business Manager Setup
The integration follows SFRA’s extensibility and modularity principles and is built on top of app_storefront_base and related modules. It must be implemented in an environment that adheres to SFRA guidelines.
**Prerequisites**: Ensure you have administrative access to your SFCC Business Manager instance before proceeding with these steps.
---
## Upload Cartridge & Include in Cartridge Path
1. Upload the **surebright_sfra** cartridge to your SFRA sandbox environment.
2. Go to Business Manager **→** Administration **→** Site **→** Manage Sites. Select your desired site and go to Settings.
3. At the beginning of the Cartridge Path, add `surebright_sfra:` to include the cartridge in your current site's configuration.

**Important**: Always test in your sandbox environment first before deploying to production. Ensure the cartridge is compatible with your SFCC version.
---
## Import Metadata
1. Go to Business Manager **→** Administration **→** Site Development **→** Import & Export
2. Upload the following files from the SureBright integration package:
- **system-objecttype-extensions.xml**
- **custom-objecttype-definitions.xml**
3. Go to Business Manager **→** Administration **→** Site Development **→** Import & Export **→** Metadata **→** Import
4. You should see both files as available for import. Proceed to importing both files.

These files contain custom object definitions and system extensions required for the SureBright integration to function properly.
---
## Import Custom Jobs
1. Go to Business Manager **→** Administration **→** Operations **→** Import & Export
2. Upload the following file: **jobs.xml**
3. Go to Business Manager **→** Administration **→** Operations **→** Import & Export **→** Jobs **→** Import
4. You should see the jobs file as available for import. Proceed to importing it.
The jobs file contains automated job definitions for product synchronization, order processing, and contract creation. These will be configured in detail in the [Jobs Guide](./Jobs).
## Import SureBright Product Catalog
1. Select your site integrating with SureBright
2. Go to Business Manager **→** Merchant Tools **→** Products and Catalogs **→** Inventory List Import
3. Upload the following file: **catalog.xml**
4. This will import variant products according to unique warranty tenure and price.
We recommend keeping the surebright products as a separate master catalog for better visibility and management.
---
## Verify Installation
After completing all import steps, verify the installation by checking:
### 1. Cartridge Status
- Go to `Administration → Sites → [Your Site] → Cartridges`
- Verify `surebright_sfra` cartridge is listed and active
- Check for any compatibility warnings or conflicts
### 2. Job Definitions
- Go to `Administration → Jobs → Job Definitions`
- Verify SureBright jobs are imported:
- `SureBrightProductsExport`
- `SureBrightOrdersCreation`
### 3. Product Catalog
- Go to `Merchant Tools → Products → Product Catalog`
- Verify warranty products are imported with correct SKUs
- Check that products are assigned to your site's catalog
---
## Next Steps
Once you have completed the Business Manager setup:
1. **Configure User Access**: Follow the [Configuration Guide](./Configuration) to set up API clients and user accounts
2. **Set Up Data Sync**: Use the [Jobs Guide](./Jobs) to configure automated synchronization jobs
3. **Test Integration**: Run comprehensive tests using the [Testing Guide](./Testing)
---
## Troubleshooting
### Common Issues
**Cartridge Upload Fails**
- Verify you have administrative permissions
- Check cartridge compatibility with your SFCC version
- Ensure sufficient disk space in your sandbox
**Metadata Import Errors**
- Verify XML file format and structure
- Check for existing conflicting custom objects
- Review import logs for specific error messages
**Product Catalog Import Issues**
- Verify inventory list and pricebook assignments
- Check product SKU naming conventions
- Ensure site configuration is complete
### Getting Help
If you encounter issues during setup:
1. Check the [FAQs](./FAQs) for detailed answered questions
2. Contact your SureBright representative for immediate assistance
3. Email [support@surebright.com](mailto:support@surebright.com) for technical support
---
## ✅ Setup Complete
Great job! You have successfully completed the Business Manager setup phase. The SureBright integration foundation is now in place and ready for configuration.
**What's Next**: Proceed to the [Jobs Guide](./Jobs) to configure automated data synchronization jobs.
---
# Configuration
Source: https://docs.surebright.com/salesforce-commerce-cloud/Configuration
> User and API configuration guide for SureBright SFCC integration including user account creation, API client setup, and credential management.
# Configuration
This phase involves setting up proper user access and API credentials within your SFCC Account Manager to enable the SureBright integration.
**Prerequisites**: Ensure you have completed the [Business Manager Setup](./BusinessManagerSetup) before proceeding with configuration.
---
## Integration Approaches
Choose the configuration approach that best fits your team's technical capabilities:
**Recommended for most merchants**
SureBright handles all technical configurations while you focus on business requirements.
*Best for: Merchants with limited technical resources*
**For technical teams**
Your development team handles SFCC configuration while SureBright provides integration support.
*Best for: Merchants with dedicated SFCC development teams*
---
## Full Business Manager Access
This approach provides SureBright with comprehensive access to your SFCC environment, enabling our team to handle all technical configurations.
This approach requires granting SureBright administrative access to your SFCC Business Manager. All activities will be logged and auditable.
### Create SureBright User Account
**Purpose**: Create a dedicated SFCC user account for SureBright with appropriate permissions for integration management.
**Step-by-Step Instructions**:
1. **Access Account Manager**
- Log into your SFCC Account Manager (separate from Business Manager)
- Navigate to `Administration → Users and Roles`
- Click "Add User" button to create a new user account

2. **Configure User Details**
- **Username**: `surebright-integration` (must be unique)
- **Email**: Use the email address provided by your SureBright representative
- **First Name**: `SureBright`
- **Last Name**: `Integration`
- **Password**: Create a strong password (you'll share this securely with SureBright)
- **Status**: Set to "Active" to enable immediate access
3. **Assign Required Roles**
In the "Roles" section, select these specific roles:
- **Administrator**: Provides full access to Business Manager configuration, cartridge management, and system settings
- **API User**: Enables programmatic access to SFCC APIs for data synchronization
- **Job Manager**: Allows import/export operations and job management for data sync processes
4. **Verify and Save**
- Review all user details and role assignments
- Click "Save" to create the user account
- Note the username and password for secure sharing with SureBright
**Security Note**: This user account will have administrative access to your SFCC instance. Only share credentials through secure, encrypted channels and verify the recipient's identity before sharing.
### Configure API Client
**Purpose**: Create an API client that enables programmatic access to your SFCC instance for data synchronization and integration management.
**Step-by-Step Instructions**:
1. **Access API Settings in Account Manager**
- In your Account Manager, navigate to `Administration → API Settings`
- Click "Create API Client" button
- You'll need Account Manager administrative access to perform this step
2. **Configure Client Settings**
Fill in the following information:
- **Client Name**: `SureBright Integration`
- **Client Type**: Select "Public" (this allows the client to be used by external applications)
- **Description**: `API access for SureBright Product Protection integration`
- **Redirect URI**: Leave blank (not required for this integration type)

3. **Assign Required OAuth Scopes**
In the "Scopes" section, check the following boxes to grant necessary permissions:
- `sfcc.catalogs.rw` - Read/Write access to product catalogs (allows product data sync)
- `sfcc.products.rw` - Read/Write access to product data (enables product management)
- `sfcc.orders.rw` - Read/Write access to order information (for warranty order processing)
- `sfcc.custom-objects.rw` - Read/Write access to custom objects (for warranty data structures)
- `sfcc.jobs.rw` - Read/Write access to job management (for data synchronization jobs)
4. **Save and Retrieve Credentials**
- Click "Save" to create the API client
- **Important**: Copy and securely store these values immediately:
- **Client ID**: Unique identifier for API authentication (you'll need this)
- **Client Secret**: Secret key for API authentication (you'll need this)
- **Organization ID**: Found in `Administration → Organization → Organization Settings`
- **Realm**: Part of your SFCC URL (e.g., if URL is `https://your-realm.demandware.net`, realm is `your-realm`)
- **Short Code**: Your site identifier (found in `Administration → Sites → [Your Site] → Settings`)
**Finding Your Organization Details**: If you're unsure about Organization ID, Realm, or Short Code, refer to the FAQ section in the [FAQs Page](./FAQs) for detailed instructions.
### Share Credentials Securely
**Purpose**: Provide SureBright with the necessary credentials to establish secure API connectivity with your SFCC instance.
**Required Information**:
```
Client ID: [Your Client ID]
Client Secret: [Your Client Secret]
Organization ID: [Your Organization ID]
Realm: [Your Realm]
Short Code: [Your Short Code]
```
**Security Requirements**:
- Use encrypted communication channels (encrypted email or secure file sharing)
- Never share credentials via unsecured email or chat platforms
- Consider using a password manager or secure note-sharing service
- Verify the recipient's identity before sharing sensitive information
These credentials provide access to your SFCC instance. Treat them as sensitive business information and ensure they are shared only with authorized SureBright personnel.
---
## API-Only Access
This approach is designed for merchants with dedicated SFCC development teams who prefer to maintain full control over their SFCC environment.
This approach requires your development team to have experience with SFCC cartridge deployment, job management, and custom object configuration.
### Create SFCC API Client
**Purpose**: Create an API client that enables SureBright to provide integration support and data synchronization guidance.
**Development Team Tasks**:
1. **Access Account Manager**
- Navigate to `Account Manager → Administration → API Settings`
- Click "Create API Client"
2. **Configure API Client**
```
Client Name: SureBright Integration
Client Type: Public
Description: API access for SureBright Product Protection integration support
```
3. **Assign Required OAuth Scopes**
```
sfcc.catalogs.rw - Read/Write access to product catalogs
sfcc.products.rw - Read/Write access to product data
sfcc.orders.rw - Read/Write access to order information
sfcc.custom-objects.rw - Read/Write access to custom objects
sfcc.jobs.rw - Read/Write access to job management
```
4. **Document Credentials**
- Securely store all generated credentials
- Prepare for secure sharing with SureBright team
### Share Integration Information
**Purpose**: Provide SureBright with necessary credentials and site configuration details for integration support.
**Required Information**:
```
API Credentials:
- Client ID: [Your Client ID]
- Client Secret: [Your Client Secret]
- Organization ID: [Your Organization ID]
- Realm: [Your Realm]
- Short Code: [Your Short Code]
Site Configuration:
- Inventory List ID: [Your Inventory List ID]
- Pricebook ID: [Your Pricebook ID]
- Site ID: [Your Site ID]
```
**Prerequisites**:
- Ensure inventory list and pricebook are properly assigned to your site
- Verify all site configurations are complete and active
- Confirm API client has been tested and is functional
Share this information only through secure, encrypted channels. Verify the recipient's identity before sharing sensitive credentials.
---
## Integration File Distribution
For API-Only Access, SureBright will provide your development team with all necessary integration files and detailed technical documentation for SFCC deployment.
### Integration Package Contents
**Package Contents**:
1. **SureBright Integration Cartridge**
- Complete SFCC cartridge with warranty functionality
- Compatible with your SFCC version
- Includes all necessary controllers, models, and templates
2. **Data Import XML Files**
- **Job Import XMLs**: Product sync and order sync job configurations
- **Custom Fields XML**: Line item and product attribute definitions
- **Pricing XML**: Warranty plan pricing configurations
- **Inventory XML**: Warranty product availability settings
3. **Technical Documentation**
- Detailed deployment instructions
- Configuration parameters and settings
- API integration specifications
---
## Next Steps
Once you have completed the configuration:
1. **Set Up Data Sync**: Use the [Jobs Guide](./Jobs) to configure automated synchronization jobs
2. **Test Integration**: Run comprehensive tests using the [Testing Guide](./Testing)
3. **Go Live**: Deploy to production and monitor.
---
### Getting Help
If you encounter issues during configuration:
1. Check the [FAQs Page](./FAQs) for detailed solutions
2. Contact your SureBright representative for immediate assistance
3. Email [support@surebright.com](mailto:support@surebright.com) for technical support
---
## ✅ Configuration Complete
Great job! You have successfully completed the configuration phase. The SureBright integration is now ready for data synchronization setup.
**What's Next**: Proceed to the [Business Manager Setup](./BusinessManagerSetup) to set up Business Manager.
---
# FAQs
Source: https://docs.surebright.com/salesforce-commerce-cloud/FAQs
> Frequently asked questions about SureBright SFCC integration including setup, configuration, and common issues.
---
## General Integration Questions
SureBright requires specific OAuth scopes for full integration functionality:
**Required Scopes**:
- `sfcc.catalogs.rw` - Read/Write access to product catalogs
- `sfcc.products.rw` - Read/Write access to product data
- `sfcc.orders.rw` - Read/Write access to order information
- `sfcc.custom-objects.rw` - Read/Write access to custom objects
- `sfcc.jobs.rw` - Read/Write access to job management
**User Roles Required** (for Full Access approach):
- Administrator (for cartridge deployment and configuration)
- API User (for programmatic access)
- Job Manager (for import/export operations)
The SureBright cartridge is designed to be compatible with most SFCC setups, but we take precautions:
**Compatibility Measures**:
- Cartridge is tested with common SFCC cartridges
- Proper cartridge priority configuration prevents conflicts
- Namespaced code prevents function and variable conflicts
- Modular design allows selective feature activation
**If Conflicts Occur**:
- SureBright will adjust cartridge priority settings
- We can modify specific functions if needed
- Alternative deployment methods are available
- Your existing functionality remains unaffected
These values are located in different parts of your SFCC Business Manager:
**Organization ID**:
- Go to `Administration → Organization → Organization Settings`
- Look for "Organization ID" field
**Realm**:
- Found in your SFCC instance URL: `https://[realm].demandware.net`
- Also visible in `Administration → Organization → Organization Settings`
**Short Code**:
- Go to `Administration → Sites → [Your Site] → Settings`
- Look for "Site ID" or "Short Code" field
- Usually matches your site's identifier
---
## Technical Setup Questions
You'll need to request access from your SFCC administrator or use the Full Business Manager Access approach:
**Required Permissions**:
- Account Manager access with API client creation rights
- User management permissions for creating SureBright user account
- Business Manager administrative access
**Alternative Solutions**:
- Request temporary elevated permissions for integration setup
- Use the Full Business Manager Access approach instead
- Have your SFCC administrator create the API client and share credentials
- Contact Salesforce support for permission escalation if needed
Follow these steps in your SFCC Business Manager:
**Check Inventory List Assignment**:
1. Go to `Merchant Tools → Inventory → Inventory Lists`
2. Select your inventory list
3. Check "Sites" tab to ensure your site is assigned
4. Note the Inventory List ID for sharing with SureBright
**Check Pricebook Assignment**:
1. Go to `Merchant Tools → Pricing → Price Books`
2. Select your pricebook
3. Check "Sites" tab to ensure your site is assigned
4. Note the Pricebook ID for sharing with SureBright
**Verify Site Configuration**:
1. Go to `Administration → Sites → [Your Site] → Settings`
2. Confirm inventory list and pricebook are properly configured
3. Check that the site is active and properly set up
The SureBright integration is compatible with SFCC versions that support SFRA (Storefront Reference Architecture).
**Minimum Requirements**:
- SFCC version 20.1 or later
- SFRA-based storefront
- Business Manager administrative access
**Recommended**:
- Latest SFCC version for optimal performance
- Sandbox environment for testing before production deployment
SureBright creates warranty products using SFCC's standard product creation process:
**Product Creation Process**:
- Surebright products are created as regular SFCC products
- They're assigned to a dedicated warranty category
- Custom attributes define warranty plan types and coverage
- Products are linked to your main products via relationships
**Product Configuration**:
- SKUs follow a consistent naming convention
- Pricing is dynamically calculated based on product value
- Inventory is managed through your existing inventory system
- Products are automatically assigned to your site's catalog
**Merchant Control**:
- You can modify warranty product descriptions
- Product availability can be controlled via inventory lists
- Warranty products integrate with your existing product management workflow
Product data synchronization follows this schedule:
**Product Export Job**:
- Runs daily (recommended)
- Can be configured for different frequencies
- Exports all merchandisable products
- Updates product information in SureBright system
**Order Synchronization**:
- Real-time processing (every 15-30 minutes)
- Immediate order data transfer
- Contract creation processing
- Status updates and tracking
**Manual Sync**:
- Available for immediate updates
- Useful for testing and troubleshooting
- Can be triggered from Business Manager
---
## Storefront Display Questions
This is usually a cartridge priority or configuration issue. Follow these steps:
**Immediate Checks**:
1. **Verify Cartridge Priority**: Ensure SureBright cartridge has proper priority in Business Manager
2. **Check Site Assignment**: Confirm warranty products are assigned to your site
3. **Review Product Status**: Ensure warranty products are active and available
4. **Check Inventory**: Verify inventory levels are sufficient
**Business Manager Steps**:
1. Go to `Administration → Sites → [Your Site] → Cartridges`
2. Check that SureBright cartridge is listed and active
3. Verify cartridge priority is set correctly
4. Check for any error messages or conflicts
**If Issues Persist**:
- Contact SureBright support with specific error details
- Provide screenshots of Business Manager configuration
- Share any error logs from your SFCC instance
- Test in a different browser or incognito mode
## Still Have Questions?
If you don't see your question answered here, we're here to help:
**Email Support Team**
[support@surebright.com](mailto:support@surebright.com)
*For detailed technical questions and assistance*
**Direct Support**
Contact your assigned SureBright representative for immediate assistance.
*For urgent issues and business questions*
---
# SFCC Integration Guide
Source: https://docs.surebright.com/salesforce-commerce-cloud/IntegrationGuide
> Complete guide to onboard SureBright Product Protection within Salesforce Commerce Cloud (SFCC) SFRA store. This guide covers both scenarios: when SureBright gets Business Manager access and when only API access is provided.
The SureBright Product Protection integration with Salesforce Commerce Cloud (SFCC) follows a structured, phase-based approach designed to ensure successful deployment and configuration. This guide provides comprehensive instructions for merchants to integrate warranty and protection plans directly within their SFCC storefront.
**Integration Timeline**: The complete setup typically takes 2-3 business days, depending on your SFCC environment complexity and chosen integration approach.
## Integration Overview
SureBright Product Protection seamlessly integrates with Salesforce Commerce Cloud (SFCC) to enable merchants to offer comprehensive product protection plans directly within their e-commerce storefront. This integration leverages SFCC's robust API framework and cartridge system to provide a native shopping experience for warranty products.
## Choose Your Integration Path
Based on your team's technical capabilities and security requirements, select the most appropriate integration approach:
**Recommended for most merchants**
SureBright handles the complete SFCC configuration including cartridge deployment, job setup, and custom object creation.
*Best for: Merchants with limited technical resources*
**For technical teams**
Your development team handles SFCC configuration while SureBright provides integration files and technical guidance.
*Best for: Merchants with dedicated SFCC development teams*
## Prerequisites
Before beginning the integration, ensure you have access to:
Ability to create users and API clients in Account Manager
Administrative access to your SFCC Business Manager instance
Your complete product catalog with SKUs, pricing, and categories
Your site's inventory list ID and pricebook assignments
## Quick Start Checklist
Use the [Configuration Guide](./Configuration) to set up API clients and user accounts.
Follow the [Business Manager Setup Guide](./BusinessManagerSetup) to upload cartridges and import metadata.
Configure automated jobs using the [Jobs Guide](./Jobs) for product and order synchronization.
Run comprehensive tests using the [Testing Guide](./Testing) to validate all functionality.
Deploy to production and refer to the [FAQs](./FAQs) for common questions and answers.
---
## What's Next
Great job! Now that you have uploaded the necessary files from the cartridge, you will begin configuring the various settings for your SureBright offerings. First, you will tackle the SureBright products you just uploaded, and then work with the various different Custom Preferences available within the integration.
**Next Steps:**
1. Configure your [User and API Settings](./Configuration)
2. Complete the [Business Manager Setup](./BusinessManagerSetup)
3. Set up [Data Synchronization Jobs](./Jobs)
4. Run [Integration Tests](./Testing)
---
## Support and Resources
### Getting Technical Support
If you encounter any issues during the integration process, we provide comprehensive support through multiple channels:
**Contact Your SureBright Representative**
For urgent issues or immediate assistance during integration setup.
*Response time: Within 2 hours during business hours*
**Email Support Team**
[support@surebright.com](mailto:support@surebright.com)
*For detailed technical issues and documentation requests*
### Additional Resources
**Salesforce Commerce Cloud Resources**:
- [SFCC Developer Center](https://developer.salesforce.com/docs)
- [SFCC API Documentation](https://documentation.b2c.commercecloud.salesforce.com/)
- [SFCC Business Manager Guide](https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/admin/business_manager.html)
---
**What's Next**: Proceed to the [Configuration Guide](./Configuration) to set up user access and API credentials.
---
# Jobs
Source: https://docs.surebright.com/salesforce-commerce-cloud/Jobs
> Data synchronization jobs configuration for SureBright integration including product export and order processing jobs.
This guide covers the configuration and management of automated jobs that synchronize data between your SFCC instance and the SureBright system.
**Prerequisites**: Ensure you have completed the [Business Manager Setup](./BusinessManagerSetup) and [Configuration](./Configuration) phases before configuring jobs.
---
## SureBright Products Export
This job uses SureBright's API to traverse the entire storefront catalog and export each Simple and Variant Product that is, at the time of the job run, merchandisable (online and in stock).
### Configuration Steps
1. Go to Business Manager **→** Administration **→** Operations **→** Jobs. Select the **SureBright Products Export** job.
2. Go to Job Steps and select **Scope**. Configure this to run in the scope of the site integrating with SureBright.
3. Ensure this job is triggered at least once without errors and notify SureBright after the successful run. SureBright will confirm if the product sync was successful.
4. Schedule this to run at the preferred cadence (SureBright recommends once per day), at a time that's most suitable for a recurring job setup, ideally after the catalog is being updated.
### Job Parameters
| Parameter | Description | Default Value |
|-----------|-------------|---------------|
| **Scope** | Site scope for product export | Your site identifier |
| **Frequency** | How often to run the job | Daily |
| **Time** | Preferred execution time | After catalog updates |
| **Error Handling** | Retry and notification settings | 3 retries, email notification |

**Best Practice**: Schedule this job to run during low-traffic hours to minimize impact on storefront performance.
---
## SureBright Orders Creation
This job uses SureBright's Orders API to consume the orders. When this job is triggered, it sends an Order generation request to SureBright and SureBright will generate any necessary service contracts or lead tokens (for Post Purchase flow).
### Configuration Steps
1. Go to Business Manager **→** Administration **→** Operations **→** Jobs. Select the **SureBright Orders Creation** job.
2. Configure the job scope to your site integrating with SureBright.
3. Set the job to run at frequent intervals (recommended: every hour) for real-time order processing.
4. Configure error handling and retry mechanisms.
### Job Parameters
| Parameter | Description | Default Value |
|-----------|-------------|---------------|
| **Scope** | Site scope for order processing | Your site identifier |
| **Frequency** | How often to run the job | Every hour |
| **Queue Processing** | Number of orders to process per run | 50 orders |
| **Error Handling** | Retry and notification settings | 3 retries, email notification |
---
## Job Monitoring and Management
### Monitoring Job Execution
1. **Job Status**: Go to `Administration → Jobs → Job Status` to monitor job execution
2. **Job Logs**: Review job logs for errors and performance metrics
### Common Job Issues
**Job Execution Failures**
- Check job logs for specific error messages
- Verify API connectivity and credentials
- Ensure sufficient system resources
**Data Synchronization Issues**
- Verify product data format and structure
- Check order data completeness
- Review contract creation parameters
## Next Steps
Once you have configured all necessary jobs:
1. **Test Integration**: Run comprehensive tests using the [Testing Guide](./Testing)
2. **Go Live**: Deploy to production and monitor job execution
---
## Troubleshooting
### Common Job Issues
**Job Execution Failures**
- Check job logs for specific error messages
- Verify API connectivity and credentials
- Ensure sufficient system resources
**Data Synchronization Issues**
- Verify product data format and structure
- Check order data completeness
- Review contract creation parameters
### Getting Help
If you encounter issues with job configuration:
1. Contact your SureBright representative for immediate assistance
2. Email [support@surebright.com](mailto:support@surebright.com) for technical support
---
## ✅ Jobs Configuration Complete
Great job! You have successfully configured all necessary data synchronization jobs. The SureBright integration is now ready for testing and validation.
**What's Next**: Proceed to the [Testing Guide](./Testing) to run comprehensive integration tests.
---
# Testing
Source: https://docs.surebright.com/salesforce-commerce-cloud/Testing
> Comprehensive testing and validation guide for SureBright SFCC integration including product sync, order processing, and storefront functionality testing.
Now that you have setup all the necessary elements, you can test the functionalities on storefront. Ensure the product catalog has been exported and SureBright Product Protection is enabled on product from the Merchant Portal.
**Prerequisites**: Ensure you have completed the [Business Manager Setup](./BusinessManagerSetup), [Configuration](./Configuration), and [Jobs](./Jobs) phases before running tests.
---
## Storefront Display and User Experience
Go to any Surebright Covered Simple or Variant Product. Select a variant and you will be presented with Surebright Offering Widget to select option.

### Test Scenarios
#### 1. Product Page Display
- Check warranty options appear on product pages
- Verify warranty plan descriptions and pricing
- Test warranty selection and configuration
- Confirm mobile responsiveness
#### 2. Cart and Checkout Integration
- Verify warranty products add to cart correctly
- Check cart display and warranty information
- Test checkout flow with warranty products
- Confirm order summary accuracy
---
### Getting Help
If you encounter issues during testing:
1. Contact your SureBright representative for immediate assistance
2. Email [support@surebright.com](mailto:support@surebright.com) for technical support
---
## ✅ Testing Complete
Great job! You have successfully completed comprehensive testing of the SureBright integration. The system is now ready for production deployment.
**What's Next**: Proceed to the [FAQs](./FAQs) for any questions.
---
# SureBright’s update claim and service status API for Servify
Source: https://docs.surebright.com/servify/update-claim-service-status
Payload to be encrypted by SureBright's pub key.
---
# Create discount excluding SureBright Products
Source: https://docs.surebright.com/shopify/create-discount-excluding-surebright-products
## Steps to create discount excluding SureBright Products
**Name:**
- **Example:** All products except Surebright
**Conditions:**
- Product vendor → is not equal to → Surebright
**Path:** Shopify Admin → Discounts → Create discount → Amount off products
In **Applies To**, select Specific Collections:
- Search for the collection (All products except Surebright) you named excluding Surebright Products
Complete the discount setup and save your changes.
---
# Enable SureBright Cart Validator
Source: https://docs.surebright.com/shopify/enable-surebright-cart-validator
> Prevent unauthorized warranty purchases with built-in fraud protection by enabling the SureBright Cart Validator in your Shopify store.
## Prevent Unauthorized Warranty Purchases with Built-in Fraud Protection
The SureBright Cart Validator acts as a fraud prevention layer within your Shopify store, designed to block the purchase of warranty products through unauthorized or unintended channels.
Warranty plans are meant to be purchased alongside their corresponding products. However, in certain cases, customers may attempt to add and purchase warranty policies independently — leading to invalid coverage, operational challenges, and potential misuse.
To address this, SureBright establishes intelligent checkout validation rules that enforce correct purchase behavior.
Once enabled, the Cart Validator ensures that:
- Warranty products cannot be purchased as standalone items
- Each warranty policy is always tied to an eligible product in the cart
- Invalid or suspicious checkout attempts are automatically blocked
By enforcing these rules at checkout, you not only maintain data integrity but also protect your store from misuse, ensuring that every warranty sold is valid and compliant.
## Follow the steps below to enable this validation in your store.
Navigate to your Shopify Admin dashboard and click on **Settings** from the bottom-left corner of the sidebar.
In the Settings menu, click on **Checkout** from the left-hand navigation panel. Scroll down to the bottom of the page to locate the **Checkout rules** section.
In the **Checkout rules** section, click the **Add rule** button. A list of available checkout rule extensions will appear. Locate the **SUREBRIGHT - EXTENDED WARRANTY** section and click on **sb-cart-validator** to select it.
The **Checkout rule for sb-cart-validator** page will open with an **Inactive** status. Enter a **Title** for the rule. Leave the **Block checkout if app experiences a problem** option unchecked, so that orders are still processed even if the validation app encounters an issue.
Click the status dropdown next to the Title field and change it from **Inactive** to **Active**.
Click **Save changes** to apply the rule. Once saved, the page header will display the rule title with an **Active** status badge.
Navigate back to the **Checkout rules** section in your Checkout settings. The rule will now appear with an **Active** status badge. To confirm everything is working correctly, perform a test by completing a basic user journey through to the checkout page. Attempt to add a SureBright warranty product without its associated product to verify that the validation is triggered as expected.
If the cart validator app encounters an error, the checkout will still proceed normally as long as the **"Block checkout if app experiences a problem"** option is left unchecked. This ensures a seamless customer experience at all times.
---
# Add Online Sales Channel to any Product
Source: https://docs.surebright.com/shopify/online-sales-channel
## Steps to add Online Sales channel
🎉 You've successfully enabled the Online Sales Channel on your Shopify store!
---