#feetscha - billing cycle
1 messages · Page 1 of 1 (latest)
hey there, the subscription will renew at the currentPeriodEnd and that will be when a new invoice/payment is created
okay thank you. I was looking for something that also shows when the subscription gets cancled but then I'll just combine currentPeriodEnd with cancel_at_period_end to show the next billing date or if there even is one if subscription got cancled
you can also you the upcoming invoice endpoint to see a preview of the next invoice for a subscription:
https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.