#Honeydewd - subscription

1 messages · Page 1 of 1 (latest)

latent steppe
#

Hi, there should be a parameter. Let me look at our doc. real quick.

cedar flint
#

thanks

latent steppe
#

To add more context, the subscription schedule API allows you to automate changes to subscriptions in the future.

cedar flint
#

ah i see so i can just set it on a schedule to delete the subscription item when needed

latent steppe
#

Yes!

cedar flint
#

gotcha

#

but if i just delete the subscription item what is the expected behaviour? will it refund or just be invoiced for that month

latent steppe
#

Let me test it to confirm

cedar flint
#

also i took at look at the subscription schedules but i see no information on how to delete a subscription item at a specific time

latent steppe
#

You'd use the phases.item to do this. When there are multiple phases, the end_date of one phase will always equal the start_date of the next phase.

cedar flint
#

okay thanks!

#

also is there a webhook to detect the deletion of a subscription item

#

maybe a list of all webhooks and their functions would be nice, i just don't know where to look lol

#

there's too many docs!

#

lol

digital leaf
#

you'd get customer.subscription.updated

cedar flint
#

thanks but how do i know what was updated from a services perspective?

#

how will my backend know a subscription item was deleted

digital leaf
#

the updated event shows the diff

cedar flint
#

awesome thanks

digital leaf
cedar flint
#

thanks for your help!