#alexelba

1 messages · Page 1 of 1 (latest)

shy lilyBOT
#

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.

short fox
#

Hi there!

amber stag
#

hi

#

when I say product I mean the price

#

result difference is only prorations

#

req_zltn3wswWdWoY2

short fox
#

Can you clarify which part is unexpected to you exactly in the API response you shared.

amber stag
#

amount_due

short fox
#

It's set to 2395745. And you were expecting it to be 1620000 instead?

amber stag
#

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

short fox
#

Is your change supposed to increase the price the user has to pay, or decrease the price?

amber stag
#

yup total yearly 1620000

#

requests for upcomiing only difference is subscription_proration_behavior

short fox
#

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?
amber stag
#

how can be it be more then 16200?

short fox
#

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.

amber stag
#

I see, so if want to see how much client will be charged today with upgrade I need to deduct upcoming-total?

short fox
#

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.

amber stag
#

I am looking into response I send to you 3 items have proration 1

#

true