#sive_code
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/1435555723638603796
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You'd probably model that with credits: https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits
Grant billing credits to your customers so they can use them to pay for usage-based products or services, memberships, pay-as-you-go plans, or subscriptions. Learn about approved and prohibited use cases for billing credits, how to apply credit grants, and what information displays in the credit balance summary and in credit balance transactions.
it says public preview, i didnt see anywhere in the api docs for subscriptions with prepayment to link usage meters?
does this mean its not released?
ive seen billing credits in the dashboard but nothing related to subscriptions
would I have to manually create a setup intent to capture their card information for later use and then create a credit grant manually each month and additionally manually create a invoice each month in which this credit grant and metered events apply to?
The credits are applied at the customer level: https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits/implementation-guide?dashboard-or-api=api#grant-the-billing-credits
No, you can use them with subscriptions and just apply the credits to the recurring invoices the sub generates each interval
how do i also apply the metered events to the same subscription?
Should be automatically applied actually assuming the customer has credits
good to know
Yes, using the meter and passing the matching cus_xxx ID
so subscriptions will automatically include meters?
You create the meter that is attached to a price_xxx object, and then any subscription that subscribes to that price can accept usage. I'd recommend reading this guide end-to-end: https://docs.stripe.com/billing/subscriptions/usage-based/use-cases/credits-based-pricing-model