#devangbhuva-price-update
1 messages ยท Page 1 of 1 (latest)
Hey there, can you explain a bit more what you mean, or what you're trying to do?
We are expecting when stripe price was updated last time from stripe dashboard?
As you see, product object has updated data - https://stripe.com/docs/api/products/object#product_object-updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That's not an attribute of the object. If you want to monitor for changes to prices, you can subscribe to the price.update event on a webhook: https://stripe.com/docs/api/events/types#event_types-price.updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes.. using webhook, our use-case partialy completed! Let me explain our complete use-case
Sure ๐
We are creating first price plan in our system & then in stripe for connected stripe accounts. Now suppose someone disconnect stripe account from our system. After that they change price plan in stripe. So we didn't receive any webhook for that. After some time user again connect same stripe account in our system. So we will sync our price plans with stripe. That time we want to build some logic to sync (don't create already created plans in stripe because maybe some of the plans we already have in stripe) So in that logic we need updated key to identify plan was not changed. if plan was changed in stripe, we want to create new plan in stripe as per our data
In short, We have our own price which linked with stripe plan (if account is connected). Now if user disconnect & re-connect account. Between that duration, we don't receive any webhooks. So on reconnect, we need to verify that our price is linked with correct stripe plan with same stripe data which we have in our system
So for verify both data (What we have stripe plan details in our system & latest stripe plan in stripe), easiest way is compare updated time.
@umbral sequoia hope you will get idea! ๐
Taking a look
I see, that's a bit tricky
so one option you have is tracking whether you actually used the pricing before disconnection
because after a price is used, its core details cannot be changed
(interval, amount, etc)
Yes price can not be changed only if there will be any active subscriptions
otherwise amount & interval are changeable fields
Unfortunately that's not possible today, but I'm sharing you feedback internally about this
If you can give me your account ID (acct_1234) I can associate that with the feedback so we can notify you if we work on this in future ๐
I would recommend you recreate the products/price, or otherwise checking all attribute still match will be necessary (eg using a retrieval + object diff comparison)
Do you need our main company account id or my test account id?
As per our business use case, we cannot not create every time new price?
Can you check again - price can update if no active subscription?
an account with your email for contacting you, so probably your main account
I mean only in the case where you reconnect to a previously connected account
Since as you say you wouldn't know if there were changes in between.
Ok..
Sorry even that won't possible. Because may be user disconnect by mistake
Perhaps, but even in that case you options are:
1/ Check all attributes match your record
2/ Recreate the price upon connection as if it were the first time you connected
@umbral sequoia my test account id: acct_1JKe5pSJ7IYQoBXU
thanks, adding to the feedback notes
yes... that's we are planning
Any specific reason, not exposing updated only for price?
Thanks @umbral sequoia for taking our feedback!
Quite welcome, thanks for sharing. I agree updated would be very useful ๐ hopefully we can add this in future!
Does stripe has any public dashboard where we can see upcoming releases for new features & feedback?
We have an API changelog here:
https://stripe.com/docs/upgrades#api-changelog
I'd suggest subscribing to our developer digest to learn about whats coming soon and new releases: https://stripe.dev/#subscribe