#waqas ahmad
1 messages ยท Page 1 of 1 (latest)
Hi @fringe lichen any way you know??
Actually I want to create a record when free trial of my customer starts. Is there any way to know free trial start??
Are you talking about a new subscription that starts with a trial?
If so, you'd want to listen for customer.subscription.created :
https://stripe.com/docs/api/events/types#event_types-customer.subscription.created
Then, look at the subscription object status to checkout for trialing
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am already listen this event. Can you please explain this line
Then, look at the subscription object status to checkout for trialing
Can you share an example event or subscription ID we can refer to?
Currently I am away from my machine. If possible please explain verbally or share parameter name which help me according to my requirement.
My country it's night that's why I am on bed ๐
@fringe lichen
Thanks @fringe lichen for help.. I understand properly.
You're welcome -- I mean, can you share a specific subscription id such as sub_1234 that started as a trial, so i can show you where to look on specific events
or any recent request ID from your dashboard logs: https://dashboard.stripe.com/test/logs/
@steep hare if you can get that example please share it so we can show you a real event, but in general your customer.subscription.created events will have an data.object that is a subscription object:
https://stripe.com/docs/api/events/object#event_object-data-object
You want to inspect that object and look at status to check if it is trialing:
https://stripe.com/docs/api/subscriptions/object#subscription_object-status
Now my issue is resolved. I understand things clearly. Thanks for your time and help.
NP!