> For the complete documentation index, see [llms.txt](https://help.thenorthcop.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.thenorthcop.com/tnc-extras/walmart-ca-precarting.md).

# Walmart CA Precarting

Pre-carting allows you to add any products to cart even if its out of stock. You can then wait on the page and complete checkout once the monitor pings instock!

```
fetch("https://www.walmart.ca/api/product-page/v2/cart?responseGroup=essential&storeId=1061&lang=en", {
  "headers": {
    "accept": "application/json",
    "accept-language": "en-US,en;q=0.9",
    "content-type": "application/json",
    "sec-ch-ua": "\"Google Chrome\";v=\"89\", \"Chromium\";v=\"89\", \";Not A Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "wm_qos.correlation_id": "33d099ba-025-178cddd5967322,33d099ba-025-178cddd59674b6,33d099ba-025-178cddd59674b6"
  },
  "referrer": "https://www.walmart.ca/en/ip/jurassic-world-camp-cretaceous-epic-roarin-tyrannosaurus-rex-dinosaur-figure-multi/6000201578484",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"postalCode\":\"A1B2C3\",\"items\":[{\"offerId\":\"SKU HERE\",\"skuId\":\"SKU HERE\",\"quantity\":1,\"allowSubstitutions\":false,\"subscription\":false,\"action\":\"ADD\"}],\"pricingStoreId\":\"1061\"}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
```

From the code above you will want to edit the `"body"` section where it says `SKU HERE`  You can find the sku to any product by scrolling down on the product page and copying the SKU value.

![](/files/-MYCrwrM5WQShnxttdeb)

Now using the SKU `6000201578485` and replacing it in the two `SKU HERE` sections the code below will add that product to cart. Make sure you keep the `\` next to the `SKU HERE`

```
fetch("https://www.walmart.ca/api/product-page/v2/cart?responseGroup=essential&storeId=1061&lang=en", {
  "headers": {
    "accept": "application/json",
    "accept-language": "en-US,en;q=0.9",
    "content-type": "application/json",
    "sec-ch-ua": "\"Google Chrome\";v=\"89\", \"Chromium\";v=\"89\", \";Not A Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "wm_qos.correlation_id": "33d099ba-025-178cddd5967322,33d099ba-025-178cddd59674b6,33d099ba-025-178cddd59674b6"
  },
  "referrer": "https://www.walmart.ca/en/ip/jurassic-world-camp-cretaceous-epic-roarin-tyrannosaurus-rex-dinosaur-figure-multi/6000201578484",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "{\"postalCode\":\"A1B2C3\",\"items\":[{\"offerId\":\"6000201578485\",\"skuId\":\"6000201578485\",\"quantity\":1,\"allowSubstitutions\":false,\"subscription\":false,\"action\":\"ADD\"}],\"pricingStoreId\":\"1061\"}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
```

## Adding To Cart

1\) using chrome press the command `CTRL + Shift + i` to open up the inspect console.&#x20;

2\) From the top of the bar select "CONSOLE" to open up the command console.&#x20;

3\) Paste in the code with the edited SKU HERE values

4\) Press enter to execute the command

![](/files/-MYCsvXRE4-n3fzG1baw)

## Is it in my cart?

Head over to your cart and you should see it in there! If you don't see it in your cart, repeat the process or open a ticket for support.


---

# 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://help.thenorthcop.com/tnc-extras/walmart-ca-precarting.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.
