#denden-Checkout
1 messages · Page 1 of 1 (latest)
I would like to put a limit on the number of items I can sell
We have a limited number of products.
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-adjustable_quantity-maximum you can use this param to specify the max quantity
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Doesn't this specify a maximum number of pieces that can be purchased at one time?
I would like to put a limit on the total number of products
You have different types of products in one checkout sessions?
No. There is only one type of product.
Then you can use the param that I posted earlier.
For example, if you have 100 items, you want to make sure that the number of orders does not exceed 100.
Can that be accomplished with the param I just mentioned?
Oh, you are talking about inventory management, am I right?
The param that I mentioned is to limit the number of items that your customer can purchase in one checkout, it's not linked to inventory.
Yes! Sorry for the lack of clarity.
No problem
The requirement would be to limit the number of inventory
I see, while Checkout doesn't manage inventory, we recommend you to set a expiration on the checkout session to cope with limited inventory https://stripe.com/docs/payments/checkout/managing-limited-inventory
Is this a policy to limit the time available for purchase?
Basically it set an expiration to the checkout session
As a result, do you put an expiration date on the inventory limit instead of limiting it by the number of orders?
I'd suggest you to read the doc first and come back if you have more questions.
I understand. Thank you very much.