#vitaumps_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/1268992645296951399
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
HI ๐
Can you share the Request ID for a request where you updated the currency options for a Price?
Sure, I believe this one: https://dashboard.stripe.com/test/logs/req_pQUVNq1HkvDxeI
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_pQUVNq1HkvDxeI
Hmmm... that's a POST request for price price_1PjOPpCF87lYUJgA5H0QvSUX but the entire POST body parameters are
{
expand: [
"currency_options",
"product",
"tiers",
"upsell.upsells_to",
"upsell.upsells_to.product",
"upsell.upsells_to.tiers",
],
}
so that would not result in a change to any part of the Price, just return more data.
Let me add a new currency to that price and see how the request shows up
req_IC5w7soY8J473h
req_JsuSAAlkIh74Rj
These two request were made when I added a new currency option to the existing Price
Thanks for that, taking al ook
Okay I see the change clearly in this request: https://dashboard.stripe.com/test/logs/req_IC5w7soY8J473h
Yes, however for some reason no event for that update is registered, consenquently our webhook is not notified
Yes I can see that too. Our admin tools like webhook events and the requests that create them.
First I'm trying to see if this issue has been flagged before
Okay I found an answer. Unfortunately, it's not one you would like.
Because the currency option is "includable" or, as our API ref doc calls it, "expandable" that means it's actually a separate object internally and not a native part of the Price object. So changes to this property won't result in a price.updated event.
And there is not equivalent event on another object that I would be able to detect?
Unfortunately not.
Ok, so I guess the solution for now would be to periodically check this and, when we have an equivalent CRUD on our side, control these solely from our side, not allowing or supporting updates made directly from Stripe's dashboarde
That seems like a reasonable solution, given the limitations. To be clear, we won't return the currency_options property when you use either the List or Retrieve APIs unless you specify
expand=['currency_options'] in your API request. That's what the Expandable tag in the API reference generally means.
You can read more about it if you aren't already familiar here
https://docs.stripe.com/expand