> 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

Let logged-in customers build a cart instantly by uploading a file of products and quantities, instead of adding items one by one.

**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="https://1875078098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI28ZFsoFjOa0T0AsCVi%2Fuploads%2Fgit-blob-e103d7ee94143c6f7fe3c26ed62a0010be80b6b7%2Funknown%20(9).png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.samita.io/samita-wholesale-b2b/setting/upload-file-to-create-cart.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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

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