#peterAtTenPercent
1 messages ยท Page 1 of 1 (latest)
cc @wintry oyster
As you can see here, we are quite a bit out from being up to date on your current API
Do you have an example request that I can look at?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sure thing.
Here is an older request that has it where trial_period_days was in object.data: we_1Ho9vfEELzdEgNUIGvEOqiGv
Here is a newer request that has trial_period_days in object.data.recurring: evt_1MKP3tEELzdEgNUIOs1C35Xt
You posted a webhook endpoint ID instead of a Request Id for the older request. Can you post the Request ID instead?
Are you asking for something that is prefixed with evt? So, is the new one that I sent helpful?
For some reason I am not seeing web hooks for products earlier than Dec 21st.
Okay well the oldest event in our webhook history I can see is req_kyhOjlHJm2FLE0
Okay now I am confused because I can see that req_QyN4gBpRohKiaG has trial_period_days in the data.
ahhh, okay, so any of the price.updated and price.created webhooks seem to have the recurring object and do not have trial_period_days in the data but instead are using the data.recurring, but any of the plan.updated or plan.created webhook events seem to have trial_period_days in the data.
price.updated request id: req_Aa684HZSj3E430
plan.updated request id: req_74HVLySgtT3QXB
So I guess it seems like the price versions might have changed their data shape?
So Plans are the legacy object that Prices replaced, so as far as I know, systems with webhook handles that listen for Plan-related events will be entirely different from systems with webhook handlers that listen for Price-related events
Okay that is helpful. So we will try to remove our listening for plan objects. It also does look like the price shape might have changed for us recently with regard to the location of trial_period_days. Do you happen to have any information about that?
The shape shouldn't have changed as far as I can tell, though that could have been an error on our end. Sorry to ask again, but can you send the 2 Event IDs once more? One Event ID for an old Event that shows the old location of the trial_period_days field on the Price object and another Event ID for a new Event that shows the trial_period_days field on the Price object in a different location.
Now understanding better that plan and price are different (new employee here inheriting a codebase), I can see that there is this difference in the shape of plans vs prices. We do not have webhook history past Dec 21st of 2022 and so I do not have any evidence of the shape change other than the fact that we were using the plan and price objects interchangeably (not ideal) and now the price objects are clobbering the trial_period_days data value.
As I update this, I want to make sure I understand where the data for trial_period_days will remain. On the price object, it is currently under recurring. However, it is not listed under recurring in the API docs. Is it safe for me to rely on its presence going forward?
Also, thank you for your help!
(new employee here inheriting a codebase)
A universally recognized pain-point here on this server
Is it safe for me to rely on its presence going forward?
As long as the API version remains the same, then the structure of the object should also remain the same
Okay, and the fact that the API reference does not mention it here is okay? https://stripe.com/docs/api/prices/object#price_object-recurring
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, because the docs will go off of the latest API version
Okay, well, thanks for your help today ๐