# QuantityInput

Version 2024-11-01

> 📘 Important
>
> The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.

## Overview

<p>Represents the quantity information of an item</p>

## Arguments

<table>
<thead>
<tr>
<th align="left">Argument</th>
<th align="left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><code>amount</code> (<a href="doc:order-objects-decimal" title="Decimal">Decimal</a>&nbsp;<sup>required</sup>)</td>
<td align="left"><p>Amount of the item.</p>
</td>
</tr>
<tr>
<td align="left"><code>unit</code> (<a href="doc:order-objects-string" title="String">String</a>)</td>
<td align="left"><p>Unit of measure.</p>
<p>The size should be greater than or equal to 0 and less than or equal to 64.</p>
</td>
</tr>
</tbody>
</table>