#manic_subscription-trial-invoice
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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
Gotcha, so there's no charge or anything? Just a $0 invoice that is automatically marked paid?
Yup
You should be able to examine the Invoice object in the invoice.created or invoice.paid webhook event to see the amount: 0
I just got thrown off because data.object.amount_paid is 0 but data.object.lines.data[0].amount is 1499
Right. Because that's showing the Price object associated with the Subscription. Totally understandable that it would be confusing