#Aarti
1 messages · Page 1 of 1 (latest)
Hello Aarti, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• aarti-schedule-upcoming, 1 day ago, 22 messages
This is a new issue
Here's my request:
stripe invoices upcoming --customer="cus_Ono3CCgaGbjvvo" --subscription-proration-behavior="always_invoice" -d "subscription_items[0][quantity]=10" -d "subscription_items[0][price]=price_1NdgXrIp6MB4p4mqUECUthdU" -d "automatic_tax[enabled]=true"
In this Upcoming Invoice API request, https://stripe.com/docs/api/invoices/upcoming are you changing the quantity? The above still shows 10.
yes sorry - consider I am changing the quantity to 15
What is the response you're getting?
I see a single line item - "description" : "15 × Security (at $3.35 / year)" ,
Instead of 2 line items stating the prorations. This total amount I see right now is simply the unit price x 15 instead of prorations.
Where are you passing the subscription_id?
If I pass the subscriptionID, I get an error that says that the priceID I am passing is the same as priceID of the subscription
Basically I want to simulate an update like equivalent to this:
So you're trying to change the update with a new price? You're not just trying to change the quantity?
I don't want to change the price - only the quantity
If I pass only the subscription and quantity, this is what I get:
I tested this on my end and it's working. I'm passing the subscription id, subscription_items with the id, quantity, and price. I'm not using the CLI
Can you share the request with me? Doesn't matter which language you are right?
you are using**
I was trying to see get a working CLI code, but yeah happy to share mo Node code. No, it should not matter what language you're using
const invoice = await stripe.invoices.retrieveUpcoming({ subscription: "sub_", subscription_proration_behavior: "always_invoice", subscription_items: { 0: { id: 'si_', quantity: "20", price: 'price_', }, }, customer: "cus_" });