#JohnTheFrog
1 messages · Page 1 of 1 (latest)
Hello! 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.
- JohnTheFrog, 6 hours ago, 5 messages
Can you share the request id?
Just a sec
where can I find a request id?
"customer": "cus_Ov7GeOTfaQgio7",
"subscription": "sub_1O7H1nBNjUXLQrAu3giVj0jD",
"subscription_proration_date": 1698761400,
"subscription_items": [
{
"id": "si_Ov7Gb9gLRBEQYD",
"quantity": 3
}
]
}```
This is how my request to upcoming invoice looks like, the subscription have like 7 products and I want to increase a quantity of one of them ( si_Ov7Gb9gLRBEQYD ), but resulted invoice displays all positions which I don't understand
Well the next invoice on the subscription would also include the other subscription items
So isn't that expected? The whole point of that endpoint is to preview the upcoming invoice
I want to invoice now
I am not looking for how this invoice will look in next 30 days
I am not sure if I describe it correctly or that endpoint can't do this
I could probably use invoice_items instead of subscription_items but I want to use proration logic
Describe what you are trying to do then. I don't get it
If you pass subscription, it's going to preview that subscription's next invoice
lets say I have a subscription with 3 products, A, B, and C
I want to show to a customer how his invoice will look for buying one additional product (i.e. X)
I believe the invoice should have one position with X product
or how his invoice will look if he increase the quantity of B product, it should be an invoice around single product
Ah okay I had to add subscription_proration_behavior => always_invoice
Sorry it's late and I am bit tired.
Sorry for bothering
Ah yeah if you're just trying to get the prorated invoice that's correct
Did that solve?
Yes, thank you