#ajr237

1 messages · Page 1 of 1 (latest)

raw capeBOT
dusty fossil
#

Hi! What is your question?

junior fulcrum
#

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

dusty fossil
#

Having a look

junior fulcrum
#

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

dusty fossil
#

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.

cosmic peak
#

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?

junior fulcrum
#

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

cosmic peak
cosmic peak
junior fulcrum
#

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.

cosmic peak
#

yeah that's confusing wording