#alexelba
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.
- alexelba, 2 days ago, 7 messages
- alexelba, 3 days ago, 7 messages
- alex-expand-php, 4 days ago, 28 messages
- alex-subscription-expand, 4 days ago, 7 messages
Hi there!
hi
when I say product I mean the price
result difference is only prorations
req_zltn3wswWdWoY2
Can you clarify which part is unexpected to you exactly in the API response you shared.
amount_due
It's set to 2395745. And you were expecting it to be 1620000 instead?
less then
162000 will be full term
{
"subscription": "sub_1OBCRmHxrjf17jEDD5GmYhyV",
"subscription_proration_behavior": "none",
"subscription_items": {
"0": {
"quantity": "30",
"id": "si_OzAnWU27xFCLPC",
"price": "price_1O8MnkHxrjf17jEDYrwlBg42"
}
},
"customer": "cus_OzAnyGN8D86ONg"
}
returns 162000
{
"subscription": "sub_1OBCRmHxrjf17jEDD5GmYhyV",
"subscription_proration_behavior": "create_prorations",
"subscription_items": {
"0": {
"quantity": "30",
"id": "si_OzAnWU27xFCLPC",
"price": "price_1O8MnkHxrjf17jEDYrwlBg42"
}
},
"customer": "cus_OzAnyGN8D86ONg"
} returns 2395745
1620000
Is your change supposed to increase the price the user has to pay, or decrease the price?
yup total yearly 1620000
requests for upcomiing only difference is subscription_proration_behavior
Just to make sure I understand, can you confirm:
- The current Subscription is for 50 * $168 = $8400
- The change you are making is for 30 * $540 = $16 200. So you are increasing the price of the Subscription
- When you check the upcoming invoice without proration, the total to pay is $162.00
- When you check the upcoming invoice with proration, the total to pay is $23957.45, which you think is wrong?
how can be it be more then 16200?
Upcoming invoice is a preview of the next invoice. That means it contains both the proration items for the change you make and also the amount for the next month.
I see, so if want to see how much client will be charged today with upgrade I need to deduct upcoming-total?
To only see the proration, you have to inspect the lines of the upcoming invoice and only sum up the ones that are marked proration:true.