#bugkiller.

1 messages ยท Page 1 of 1 (latest)

frozen sinewBOT
brave garnet
#

Hello! A trial can be added to a Subscription independently, regardless of the trial data on the Plan. In fact, we no longer recommend setting trials on Plans and instead recommend setting trial periods directly on Subscriptions themselves.

rocky osprey
#

then what is best way to check if subscription had trial or not

brave garnet
#

Had? As in ever had a trial in the past? Or currently has a trial period?

rocky osprey
#

ever ha

#

d

brave garnet
#

That's something we recommend you track on your end if you want to know about past trial activity. If you don't store it on your end you would likely need to look at the Subscription's previous Invoices to determine if any of them mention a trial period.

#

A Subscription can have multiple trial periods, and they can happen at any time between other paid periods.

rocky osprey
#

hmm, so no easy way to tract it?

#

if my subscriptoin doesn't have trial, what data are you sending on field 'trial_end'?

brave garnet
#

If there's no trial trial_end will be null.

rocky osprey
#

in my check, I got timestamp so asking

brave garnet
#

That means there's a trial.

#

Can you give me the Subscription's ID so I can take a look?

rocky osprey
#

sub_1NPAklBTGnRwDyDi88xiPjhb

#

for example..

brave garnet
rocky osprey
#

hmm, then this plan is updating existing plan maybe?

brave garnet
#

Not sure I understand?

rocky osprey
#

anyway, one other question. can I get last paid amount for subscription easily?

brave garnet
rocky osprey
#

latest_invoice is just id,

#

I need to query again?

brave garnet
rocky osprey
#

when I retreive the subsccription, can I get latest invoice detail together somehow?

brave garnet
#

You mean you want to get the Subscription and the latest Invoice in one API request?

rocky osprey
#

yes

brave garnet
#

Yep, that's what expansion is for.

#

You can expand the latest_invoice property to get the full Invoice object instead of just the Invoice ID.

rocky osprey
#

super!!

#

your api is like heaven if it's compared to paypal api ๐Ÿ˜„

#

let me try

#

I expand , but no latest invoice then it will be null?

#

one more question

#

๐Ÿ˜ฆ

brave garnet
#

Not sure I understand. You have a Subscription with no latest Invoice?

frozen sinewBOT