> For the complete documentation index, see [llms.txt](https://guides.stellaraio.com/stellar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.stellaraio.com/stellar/retailers/john-lewis.md).

# John Lewis

<img src="https://zz0-7.gitbook.io/zz-docs/~gitbook/image?url=https%3A%2F%2F357882544-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMXSxgK6obGSHU6W4eZxD%252Fuploads%252FgCqxafFNqAiQylJscM4I%252Fimage.png%3Falt%3Dmedia%26token%3D6c08ab45-0f0b-48e8-b14d-7a6d6aa18e0e&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=ba8cc31c&#x26;sv=2" alt="" width="563">

#### Preliminary Checklist <a href="#preliminary-checklist" id="preliminary-checklist"></a>

Before setting up tasks on John Lewis, make sure you have everything below prepared:

#### **Profiles**

> * Create and save your checkout <https://guides.stellaraio.com/stellar/navigating-stellaraio/what-is-the-profiles-tab/how-do-i-add-a-profile> under the **Profile tab** in Stellar. These contain your billing, shipping and payment info.

#### Proxies <a href="#proxies" id="proxies"></a>

> * Use **high-quality ISP or Residential proxies** for the best success rate.
> * **Low-quality, overused, or flagged proxies** are likely to trigger **Akamai** protection and result in failed tasks.
> * For the most reliable performance, use a **mix of proxy types and providers** rather than relying on a single proxy pool.
>   * At the time of writing, the **UK pools** from **Icey Proxies,** **Immaculate**, **Byte**, and **OneStop** are all working well with John Lewis. As always, it's recommended to have multiple proxy providers, don't just rely on one.

#### **Cook Group Access**

> * Joining a **cook group** isn't required, but it's **highly recommended** when running John Lewis.
>   * A good cook group can provide:
>     * **Early restock alerts** so you're notified as soon as products become available.
>     * **Product URLs**, **PIDs**, and **SKUs** to help you set up tasks quickly.
>     * **Estimated stock numbers** and release information to help you judge your chances of success.

### Task Overview <a href="#task-overview" id="task-overview"></a>

**Monitor Mode**

<img src="https://zz0-7.gitbook.io/zz-docs/~gitbook/image?url=https%3A%2F%2F357882544-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMXSxgK6obGSHU6W4eZxD%252Fuploads%252FsdlwSMWaZXzZZUvp4fAE%252Fimage.png%3Falt%3Dmedia%26token%3Daf00dd16-42fe-4044-9cef-bc747064136c&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=417b83b4&#x26;sv=2" alt="" height="395" width="718">

**Guest Mode**

**With PID**

<img src="https://zz0-7.gitbook.io/zz-docs/~gitbook/image?url=https%3A%2F%2F357882544-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMXSxgK6obGSHU6W4eZxD%252Fuploads%252F4cb0WMeb5UCYbfwZbtEg%252Fimage.png%3Falt%3Dmedia%26token%3Dbb6aa0e7-8040-41e1-8e8e-0af087d4c429&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=c2087&#x26;sv=2" alt="" height="383" width="719">

**With SKU**

<img src="https://zz0-7.gitbook.io/zz-docs/~gitbook/image?url=https%3A%2F%2F357882544-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMXSxgK6obGSHU6W4eZxD%252Fuploads%252FLqliCdT4O3iB0rdRQJtX%252Fimage.png%3Falt%3Dmedia%26token%3Db85e8417-aac5-460d-a1e4-f22b18fd4775&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=28f7d55f&#x26;sv=2" alt="" height="391" width="720">

* Which **Mode** do I use?
  * **Monitor Mode** continuously checks for product availability. When the item comes into stock, it will automatically trigger your linked **Guest Mode** tasks to begin checkout.
    * **Only Product IDs (PID)** are supported in this mode.
  * **Guest Mode** adds the specified product to your cart and completes the checkout process.
    * **Both Product IDs (PID) and SKUs** are supported in this mode.
* What does **Profile** mean?
  * A **Profile** contains your saved checkout information, including your billing address, shipping address, and payment details.
    * Select the profile you want to use, and the bot will use the information stored in that profile during checkout.
* What type of **Proxies** shall I use?
  * Both **ISP** and **Residential** proxies are supported.
    * We recommend testing with **ISP proxies** first using an **in-stock item** and **invalid payment details** to confirm everything is working correctly. If you encounter errors or poor success rates, switch to **Residential proxies**.
* **What are PID and SKU, and how do I find them?**

  * There are **two supported product inputs** for **Guest Mode** tasks: **PID** and **SKU**.
    * PID (Product ID)
      * A **PID** (also known as a **pValue**) is the easiest product identifier to obtain. It always starts with the letter **`p`** followed by a series of numbers and can be found directly in the product URL.
      * Example
        * <https://www.johnlewis.com/lego-pokemon-72151-eevee-building-toy/p115302067>
          * PID - p115302067
            * Note: A PID is only available once the product page is live on the John Lewis website.
    * SKU
      * A **SKU** is a **backend product identifier** that is separate from the PID. It is commonly shared by **cook groups** before or shortly after a product is loaded onto the site.
        * **IMPORTANT**: A common misconception is that the SKU is simply the PID without the leading **`p`**. **This is incorrect.**
      * **PIDs and SKUs are completely different values** and are not interchangeable.
      * If a SKU isn't provided by your cook group, you can find it by viewing the **page source** of the product page, where it is embedded in the site's data.
        * Example product page:
          * <https://www.johnlewis.com/lego-pokemon-72151-eevee-building-toy/p115302067>
            * The **SKU** can be located within the page source or developer tools.

  <img src="https://zz0-7.gitbook.io/zz-docs/~gitbook/image?url=https%3A%2F%2F357882544-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMXSxgK6obGSHU6W4eZxD%252Fuploads%252F82Daj21eSlEaO4GJvFHn%252Fimage.png%3Falt%3Dmedia%26token%3D8045fa8f-e794-4a37-860a-0ac94e0a0538&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=b5d2fe73&#x26;sv=2" alt="" height="141" width="189">

  * As shown above, the **PID** and **SKU** are **completely different values**. A SKU is **not** the PID with the leading `p` removed—they are separate identifiers used for different purposes. Always use the correct value for the task mode you're running.
* Which input should I use?
  * **Monitor Mode:** **Only PIDs are supported.** Using a **SKU** in Monitor Mode will **not monitor stock,** and your task will not function correctly.
  * **Guest Mode:** Both **PIDs** and **SKUs** are supported. However, cook groups will often only provide the **SKU** if the product page has not yet gone live on the John Lewis website.
* Best Practice
  * For the highest chance of success:
    * If you **only have a SKU**, create your Guest Mode tasks using the **SKU**.
    * Once the product page goes live and a **PID** becomes available, create additional Guest Mode tasks using the **PID**.
    * If you already have **both the PID and SKU**, create tasks with **both identifiers**. This maximises compatibility and gives you the best chance of a successful checkout.
* What is Delay?
  * **Delay** is the amount of time, in **milliseconds (ms)**, that a task waits before retrying after encountering an error.
    * **Recommended starting value:** **5000ms** or lower.
    * Adjust as needed based on:
      * Proxy quality
      * Site performance
      * Error frequency
* What is Monitoring Delay?
  * **Monitoring Delay** is the interval, in **milliseconds (ms)**, between each stock check.
  * **Recommended starting value:** **5000ms**.
    * Adjust as required depending on proxy quality and monitoring needs
* What is QTY?
  * **QTY** is the number of units you want to purchase in a single order.
  * Recommended starting point: 1 QTY
    * Increase this only if the product allows multiple units per order.
* What is Reset Delay?
  * **Reset Delay** is the amount of time, in **milliseconds (ms)**, that a task waits before resuming monitoring after stock has been detected.
    * **Recommended starting value:** **5000ms**.
      * Adjust as required depending on proxy quality and monotring needs
* What is a watch task?
  * When **Watch Task** is enabled, the task remains idle until a linked **Monitor Task** detects stock.
  * Once stock is found, the Watch Task automatically wakes up and begins attempting checkout.
  * This helps reduce unnecessary proxy usage and allows you to run large numbers of checkout tasks efficiently.
* What is "Use TopCashback" box?
  * Optional option after following the [Topcashback guide](https://guides.stellaraio.com/stellar/navigating-stellaraio/what-is-the-settings-tab/how-do-i-set-up-topcashback).
    * When configured correctly, eligible purchases may earn **cashback** through TopCashback while your task checks out.
* What is "Retry on Decline" box?
  * When enabled, the task will automatically restart if:
    * Your payment card is **declined**, or
    * The product goes **out of stock** before checkout is completed.
  * This allows the task to continue attempting checkout without requiring manual intervention.

**Important notes**

* **PID and SKU are completely different values.** A SKU is **not** the PID without the leading **`p`**. They are unique identifiers and are **not interchangeable**.
* **Monitor Mode only supports PIDs.** Using a SKU in Monitor Mode will **not monitor stock** and your task will not work correctly.
* **Guest Mode supports both PIDs and SKUs.** If you have both values, create tasks using **both** for the best chance of success.
* **A PID only exists once the product page is live.** Before then, cook groups will usually only provide the **SKU**.
* **Use high-quality ISP or Residential proxies.** Poor-quality or flagged proxies are likely to trigger **Akamai** protection and reduce your success rate.
* **Always test your setup before a release.** Run a checkout on an **in-stock item** using **invalid payment details** to confirm your profiles, proxies, and settings are working correctly without placing an order.


---

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

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guides.stellaraio.com/stellar/retailers/john-lewis.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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

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