#Marroco-event-subscriptions
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ that's a bit of a nebulous question. The answer will depend on what you're trying to do and why, but mostly you'll look at this one: https://stripe.com/docs/api/events/types#event_types-customer.subscription.updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi, Im using this for tracking the status of the subscription
if they cancel or the payment didnt pass through I can update my database
so this event-> customer.subscription.updated || will give me a subscription object that i can get the status right?
Correct!
I have a question
how can I simulate a cancel subscription
I create one but with a trial
I just cancel it but my event didnt trigger
Do you have the request ID for the cancelled subscription?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
it change for trial to active
but when I cancel
seems like it doesnt trigger this event customer.subscription.updated
Can you provide a request ID for the request that cancelled the subscription?
req_stzeBhU1oAQ5cb
Ah, apologies, it's customer.subscription.deleted not customer.subscription.updated - https://dashboard.stripe.com/test/events/evt_1LSPhCBHYS6r19T0O9w2Onnc
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.