#harebear_webhooks

1 messages ¡ Page 1 of 1 (latest)

zinc swiftBOT
#

👋 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.

gusty cedarBOT
strong cypress
#

Hi there!

#

How far in advance will you know of the price change? Also, will the price ever decrease?

dark crest
#

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)

strong cypress
#

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

dark crest
#

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

strong cypress
#

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.

zinc swiftBOT
dark crest
#

Ah okay. Would this sort of handling work?

  1. Use invoice.created
  2. Update invoice line item to new amount
  3. 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.

radiant sandal
#

Hi, taking over and catching up.