#piq-subscription-trial
1 messages · Page 1 of 1 (latest)
@uncut gazelle yes at the end of the trial the Subscription moves to active and a new Invoice is created
piq-subscription-trial
cool! what happens to the trial fields of the subscription? do they become null?
no
You can test all of this quickly with https://stripe.com/docs/billing/testing/test-clocks
alright. i'll test it there
anyway i can see the json object for this subscription? sub_1OWOMkGJhtMpdHF8hwFDdums
@uncut gazelle not sure what you mean. You can use the Retrieve Subscription API https://stripe.com/docs/api/subscriptions/retrieve to look at it in you code
Cool! Looks like the trial fields will have the dates
{
...
"status": "active",
"tax_percent": null,
"test_clock": "clock_1OWOItGJhtMpdHF8vt60bBtS",
"transfer_data": null,
"trial_end": 1705346100,
"trial_settings": {
"end_behavior": {
"missing_payment_method": "create_invoice"
}
},
"trial_start": 1705259700
}
in my app i have an action that gets fired when a trial expires based on trial_end date. but i guess i can just add status field in the condition
👍
thanks! 