#piq-subscription-trial

1 messages · Page 1 of 1 (latest)

wooden compassBOT
glass badge
#

@uncut gazelle yes at the end of the trial the Subscription moves to active and a new Invoice is created

#

piq-subscription-trial

uncut gazelle
#

cool! what happens to the trial fields of the subscription? do they become null?

glass badge
#

no

uncut gazelle
#

alright. i'll test it there

#

anyway i can see the json object for this subscription? sub_1OWOMkGJhtMpdHF8hwFDdums

glass badge
uncut gazelle
#

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

glass badge
#

👍

uncut gazelle
#

thanks! wave