#manic_subscription-trial-invoice

1 messages ยท Page 1 of 1 (latest)

little onyxBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1226927573611581591

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hard robinBOT
raw arrow
#

HI ๐Ÿ‘‹

#

Subscriptions with a trial phase generate a $0 Inoivce.

#

Because there is no payment, the invoice gets transitioned to status: "paid" immediately. This is necessary on our end to move the Subscription to a active state

weary gust
#

Gotcha, so there's no charge or anything? Just a $0 invoice that is automatically marked paid?

raw arrow
#

Yup

#

You should be able to examine the Invoice object in the invoice.created or invoice.paid webhook event to see the amount: 0

weary gust
#

I just got thrown off because data.object.amount_paid is 0 but data.object.lines.data[0].amount is 1499

raw arrow
#

Right. Because that's showing the Price object associated with the Subscription. Totally understandable that it would be confusing