# How to have an adjustable quantity using Checkout API?

**URL:** <https://developer.squareup.com/forums/t/how-to-have-an-adjustable-quantity-using-checkout-api/11729>\
**Category:** Questions\
**Tags:** orders-api, payments-api, checkout-api\
**Created:** [January 5, 2024, 4:46am UTC](https://developer.squareup.com/forums/t/how-to-have-an-adjustable-quantity-using-checkout-api/11729 "2024-01-05T04:46:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![withdrawn\_wisdom](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@withdrawn\_wisdom](https://developer.squareup.com/forums/u/withdrawn_wisdom)\
**Post date:** [January 5, 2024, 4:46am UTC](https://developer.squareup.com/forums/t/how-to-have-an-adjustable-quantity-using-checkout-api/11729/1 "2024-01-05T04:46:07Z")

</div>

I need to generate a payment link that allows the customer to change the quantity they want to buy. Ideally I could also set a minimum and maximum range. I have played around with all configurations of the checkout API from the documentation here: [POST /v2/online-checkout/payment-links - Square API Reference](https://developer.squareup.com/reference/square/checkout-api/create-payment-link)

How can I make the quantity adjustable?

P.s. When setting “enable\_coupon” to True on the “checkout\_options”, there is a bug that never shows the coupon box on the checkout page.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [January 5, 2024, 4:46am UTC](https://developer.squareup.com/forums/t/how-to-have-an-adjustable-quantity-using-checkout-api/11729/2 "2024-01-05T04:46:22Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Guidelines and Limitations](https://developer.squareup.com/docs/checkout-api/guidelines-and-limitations)**
>
> Learn about Square Checkout API guidelines and limitations.

> **[Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick-pay-checkout)**
>
> Learn how to create a Square-hosted quick pay checkout page by only specifying the name and price (without having to specify the Order object).

> **Additional Documentation**
>
> [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations)  
> [Checkout API Overview](https://developer.squareup.com/docs/checkout-api)  
> [Square Order Checkout](https://developer.squareup.com/docs/checkout-api/square-order-checkout)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [January 5, 2024, 3:34pm UTC](https://developer.squareup.com/forums/t/how-to-have-an-adjustable-quantity-using-checkout-api/11729/3 "2024-01-05T15:34:12Z")

</div>

The Checkout API currently does not support the ability for customers to adjust the quantity of an item in the checkout page. The quantity of an item is determined by the order that is created when you generate the payment link. Regarding the “enable\_coupon” field, it should be noted that this field only controls the visibility of the coupon section on the checkout page. However, the actual availability of coupons for use is determined by whether the seller has any active Square Marketing coupons. If there are no active coupons, the coupon section will not appear even if “enable\_coupon” is set to true. 🙂
