#cambo50_best-practices
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/1412490708052344884
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- cambo50_api, 4 days ago, 12 messages
hello! fyi the server is a little busy at the moment but i'll get back to you as soon as possible
No worries!
ok, looking at this now
i'm a little unfamiliar with this feature as it's relatively new, but i'm fairly certain that the way it's supposed to work is that
- you create the credit grant
- the credit grant is applied on the next applicable invoice automatically
can you explain more about what you mean by "link them like there is with products"? like specifying a price directly on an invoice?
yeah, the docs imply you can create either promotional (free) credit grants or charge the user for them, and that question link I shared suggests invoicing the user for any paid credit grants, and I'm trying to determine if there's a way to link the credit grant directly to the invoice where they pay for them, or if I just create an invoice with a custom line item and once that's paid, create the grant separately
fyi i am juggling a few threads but i'll get back to you asap
ok, sorry about the long delay here... digging into this now
i'm pretty sure the answer is it's two separate actions, but i'm trying to confirm for certain
Hi, taking over as my teammate needs to step away. Let me catch up.
It looks like you can apply it to the products, https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits/implementation-guide?dashboard-or-api=dashboard
Specifically, https://docs.stripe.com/api/billing/credit-grant/create#create_billing_credit_grant-applicability_config-scope-prices : applicability_config.scope.prices
A list of prices that the credit grant can apply to. We currently only support the metered prices. Cannot be used in combination with price_type.
As for the invoice application, I see: https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits#multiple-invoices-or-line-items
If you can apply a credit grant to multiple invoices, the credit applies first to the invoice that finalises first. Because subscription invoices finalise independently as soon as they’re eligible, we can’t guarantee the finalisation order.
If you can apply a credit grant to multiple lines on the same invoice, the credit applies to the lines in the order they appear on the invoice.
So there is not a direct way to tie it to the invoice, but you could control the line_items that it applies to