#harebear_webhooks
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/1232076938605236364
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there!
How far in advance will you know of the price change? Also, will the price ever decrease?
Hey there!
It's typically better for us to check the pricing closer to the actual renewal date, as there may be changes that happen to pricing between us checking and the rebill.
And yes, it's technically possible as well for prices to go down (we have this scenario as we've recently lowered prices on some products)
This might be tricky since you can't really change the amount of a Price. You'd need to create a brand-new Price each time and update the customer's Subscription to use that new Price
Ah, my apologies for not clarifying this.
We actually create Prices & Products inline for this. We found that since we use Stripe Checkout, we wanted 100% flexiblity over the product name / description, as well as individual pricing depending on the TLD / premium status of a domain.
So we are able to create a new Price, either via the API, or inline if it's supported.
I'm just not clear on what I actually need to do in a hook like invoice.created. For example, if I change the subscriptions Price in this call to a different price, will the invoice automatically update?
I'm also not clear on whether this is the "best" way to handle this. We definitely want to avoid CRONs for this, but I'm wondering if there's another webhook that's more suitable?
Anyways, thanks so much for your time, I appreciate it
For example, if I change the subscriptions Price in this call to a different price, will the invoice automatically update?
No, the already-created invoice will not automatically update.
Ah, I think you could create a one-off item where the amount is positive (if the price has increased) or the amount is negative (where the price has decreased) and, for the value of invoice , pass the invoice that's still in draft state: https://docs.stripe.com/api/invoiceitems/create#create_invoiceitem-invoice
Ah okay. Would this sort of handling work?
- Use
invoice.created - Update invoice line item to new amount
- Update subscription item to new Price
I'm worried that just adding a 1-off item will be confusing on the invoice for our customers. We definitely want to make sure that an invoice for 1 subscription item is clear to the end user.
Hi, taking over and catching up.