#Mist-sub-update-sub

1 messages · Page 1 of 1 (latest)

foggy wind
#

Hey, can you share an example API call you're making to change the subscription?

ocean current
#

yep

#
      items: [
        {
          id: stripeSub.items.data[0].id,
          price: priceId,
        },
      ],
    });```
foggy wind
ocean current
#

that ends up charging them the full amount

#

the problem seems to be that both generate an invoice immediately, proration or none

foggy wind
#

So you essentially want to schedule the update?

ocean current
#

I guess if that prevents unexpected charges, most customers expect the charge to happen at the end of the billing period

foggy wind
#

Updates like that will reset the billing anchor on the subscription to now. So you either need to:

Subscriptions are billed on a cycle, learn how to set the billing date.

Learn how to use subscription schedules.