#tymm-subscriptions

1 messages · Page 1 of 1 (latest)

eager nacelle
#

hello! can you share the subscription id which you've attempted the suggestion?

past granite
#

gimme a minute, i will try now

past granite
#

ok i've got it. i think i did something wrong the last time i tried, thanks~

past granite
#

Hi, question. 😄
is is possible to make create, update, delete subscriptionItems of a subscription in 1 invoice?

indigo stone
#

Hmm, depends on what state the Invoice is in

past granite
#

how can i control the state of the invoice?

#

all combinations of create update and delete will be perform at the same time one after another

indigo stone
#

Well, you generally can't if its a recurring invoice from a sub (assuming auto_advance is enabled)

#

Which invoice are you trying to update?

past granite
#

yes im dealing with recurring

#

basically i allow my users to add/ update amount/ delete subscriptionItems from their existing subscription, so preferably i would want all operations in 1 invoice

indigo stone
#

Well, you'd do that at the subscription level not the invoice. Otherwise you'd need to make those changes to the invoice at every billing cycle

past granite
#

yes, im doing it in subscription and subscriptionItem level, and im getting invoice.finalized call back for each of the operations

#

so i want the invoice to finalize after i've done all create /update/ delete ...

indigo stone
#

It will, an hour after its generated

past granite
#

i see, how do i finalize the invoice immediately?

gloomy scarab
#

Hi! I'm taking over this thread.