> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/samita-wholesale-b2b/setting/upload-file-to-create-cart.md).

# Upload file to Create Cart

**Upload File to Create Cart** lets customers generate a shopping cart by uploading a file with product information, instead of adding items manually — useful for bulk reorders.

<figure><img src="/files/3MMLmip5GJ22HHzfWN5h" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This feature is available on the Diamond plan, and only works for customers logged in to your store.
{% endhint %}

## File requirements

The uploaded file must include:

* **SKU or Barcode**
* **Quantity**

Both fields are required to correctly identify products and build the cart.

## Supported file formats

* **Documents:** `.csv`, `.xlsx`, `.pdf`, `.docx`, `.txt`
* **Images:** `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif`

## File limitations

* Maximum file size: **2MB**
* Maximum image resolution: **1800 x 2400 pixels**

<details>

<summary>AI processing and token usage</summary>

This feature uses a third-party AI service to read and extract product data from uploaded files, so usage is limited by that provider's token system.

**Token limit:** the current limit is **2,000,000 tokens**. If your files are relatively small, contact us — we may be able to increase this limit for you.

**How usage is calculated:** token usage isn't fixed — it depends on file size, file content, and how complex the data is. Larger, more data-heavy files consume more tokens. The app keeps a history of uploaded files so you can track total usage over time.

For example:

* An image at 1024 x 1024 resolution uses roughly **1,024 input tokens**.
* An image at 1800 x 2400 resolution uses roughly **1,452 input tokens**.

</details>


---

# 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://docs.samita.io/samita-wholesale-b2b/setting/upload-file-to-create-cart.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.
