#sandrayoo

1 messages ยท Page 1 of 1 (latest)

muted magnetBOT
sonic ginkgo
#

You can look through the events in the Subscription and find one of the API responses which contain the Subscription object. Those are viewable either via the developer logs in the Dashboard, or the Subscription --> Events page

runic oxide
#

thanks for the quick reply!

If I click on the latest event (e.g. subscription_schedule.canceled) I see the subscription id, but clicking on it leads me to the UI page again. I am a bit wary of checking any events prior to it since I want to know the latest state of the subscription. Not sure if i'm making any sense here ๐Ÿ˜…

sonic ginkgo
#

The event should have the Subscription object attributes you're looking for, no?

runic oxide
#

the latest event is subscription_schedule.canceled. one of the attributes is subscription, but it is not expanded and only shows a linked id

#

in the event prior (customer.subscription.deleted), i can see the expanded subscription which has a schedule.

currently, i'm hoping to see the subscription and doubly make sure it does not have a schedule

sonic ginkgo
#

The Subscription deleted event should have the most updated object attributes on it, so if it's not there, then it doesn't have one

runic oxide
#

i see! so in my case, the customer.subscription.deleted event does have a schedule, but the event right after is subscription_schedule.canceled (of that schedule). does this 100% mean the subscription does not have a schedule anymore?

#

and if so, how can i verify this?

sonic ginkgo
#

I'm not sure actually. I would make a GET request to the Subscription to make sure.

runic oxide
#

ah ok! thanks for your help ๐Ÿ˜„

sonic ginkgo
#

Sure thing!