> 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

The **Upload File to Create Cart** feature allows customers to quickly generate a shopping cart by uploading a file containing product information.

Instead of adding items manually, customers can upload a supported file format and the system will automatically extract product data and create the cart accordingly.

This feature is designed to save time and streamline bulk ordering.

<figure><img src="/files/BtWMDP1kMdrXFVJh3bTu" alt=""><figcaption></figcaption></figure>

***Note: This feature is available for Diamond plan and only works if customers login to your store.***&#x20;

#### 1. File requirements:&#x20;

To successfully create a cart, the uploaded file must contain:

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

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

#### 2. Supported File Formats

a. Document Files:  `.csv, .xlsx, .pdf, .docx, .txt`

b. Image Files: `.png, .jpg, .jpeg, .webp, .gif`

#### 3. File Limitations

a. Maximum file size: **2MB**

b. Maximum image resolution: **1800 x 2400 pixels**

#### 4. AI Processing & Token Usage

This feature uses a third-party AI service to analyze and extract product data from uploaded files. Therefore, usage is limited based on the AI provider’s **token system**.

**a. Token Limit**

* The current limit is **2,000,000 tokens**

If your uploaded files are relatively small, we may support increasing this limit upon request.

**b. How Token Usage Works**

* Token usage is **not fixed**
* It depends on:
  * File size
  * File content
  * Data complexity

The larger and more data-heavy the file, the more tokens it will consume.

The app keeps a **history of uploaded files** to calculate and track the total number of tokens used.

**For example:**&#x20;

* An image file with resolution **1024 x 1024** may consume approximately **1,024 input tokens**
* An image file with resolution **1800 x 2400** may consume approximately **1,452 input tokens**


---

# 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:

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

The question should be specific, self-contained, and written in natural language.
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.
