#ajr237
1 messages · Page 1 of 1 (latest)
Hi! What is your question?
Sorry that was meant as a search. But the problem I’m facing is I can’t seem to find the 2020 api docs reference.
My current stripe version is 2020 and I’m logged in, so I’m expecting to see the api docs relating to my version
There were changes to line_items in the Checkout Session in the 2022 api version, which is being displayed in the docs, but I want to reference the checkout session from the 2020 api
Having a look
You are talking about this doc? https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items
Thanks. Yeah that’s the one.
It’s just that this is displaying the details for the new api
2022 api changed the way line items were structured
Yes I see the same thing on this page. But not sure if this is expected or not to be honest, give me a few minutes.
it is expected, we don't keep the old docs. The API reference is always the latest version of the API
if you're on an old version we sometimes how a little callout ⚠️ box with details on specific changes, but we don't in general have a way to generate old versions.
Is there a specific change you're trying to make that you're stuck on?
I’m looking to display a discount amount to a line item
In the docs it says it’ll show the api docs related to the api version I’m using
can you explain that in more detail?
I don't think that's true at all. Not sure where you read that but it's probably wrong, let me know and I can get it removed
The Stripe API differs for every account as we release new versions and tailor functiona
These docs are customized to your version of the API and display your test key and test
data, which only you can see.
yeah that's confusing wording