#denis_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1297919965722050631
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
It would also be enough if you could modify a discount code to say: There must be 5x this product in the “shopping cart” for the code to be applied
Hi 👋 can you tell me more about what you mean when you say you want to provide a quantity discount?
Promotion codes don't offer that kind of restriction currently, but I can file feedback that that's something you'd be interested in seeing added in the future.
If the cost of your item is fixed, you could likely use the minimum_amount restriction to effectively implement a quantity requirement:
https://docs.stripe.com/api/promotion_codes/create#create_promotion_code-restrictions-minimum_amount
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
We offer a product that allows you to purchase the same item multiple times, such as buying it five times. When you do, you should automatically receive a discount.
Is that buying 5 at the same time? If so, it sounds like you want to set up a tiered Price to use, where the price changes based on the quantity purchased.
https://docs.stripe.com/products-prices/pricing-models#tiered-pricing
It's not, it will work with one-time payments, as long as you don't create a recurring Price. You can provide the ID of the Price you create when creating your Payment Link:
https://docs.stripe.com/api/payment-link/create#create_payment_link-line_items-price
Can you help me understand what gave you that impression so I can review our documentation and determine if they need to be revised?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
do you maybe have a javascript snippet or something like this?
For what?
For the creating of the tiered Price
oh nvm. my bad
"Can you help me understand what gave you that impression so I can review our documentation and determine if they need to be revised?"
Because on top of the site its "billing / subscriptions" and the title of the side is Recurring price models
And as a user, can you see in the checkout that you have received a tiered Price ?
Ah, good point! I agree that is a bit confusing and will flag that to see if we can help make that more clear.
Yup, the amount should adjust dynamically in the UI we show to the customer.
Okay, but would the user recognize that he has received a discount? That would be important to us
For example, once the original price and once the price with discount, similar to a coupon
I'm not sure exactly what you're looking for, so I would suggest testing this in testmode and see if it shows what you're hoping.