#Mahoney

1 messages ยท Page 1 of 1 (latest)

hearty tuskBOT
twilit nimbus
#

๐Ÿ‘‹ happy to help

#

do you know which Stripe API version is your account's default?

keen eagle
#

Not sure

twilit nimbus
#

would you mind sharing your account id?

keen eagle
#

Sure: acct_1KxYUtBJUDSam0A0

twilit nimbus
#

thanks ๐Ÿ™‚

#

ok so you're on the 2020-08-27 API version (not the latest)

keen eagle
#

Can I specify a version when using the CLI to get a resource?

twilit nimbus
#

why do you need to change the API version?

keen eagle
#

I want to see what the resource looks like on the latest version

twilit nimbus
#

you can add --stripe-version

#

with the stripe version that you want

keen eagle
#

OK, done it - they are identical

#

So same questions

twilit nimbus
#

just to clarify, I wasn't saying they weren't

#

I was just informing you of my findings ๐Ÿ™ˆ

keen eagle
#

No probs, just thought that the documentation might be more accurate for the latest version

twilit nimbus
#

Plans is the old name of recurring Prices

#

it is in fact this way

#

but regardless in your situation it's something else

#

we haven't deprecated Plans yet but you should always look at the Price objects

keen eagle
#

OK, so have to use /items/data[0]/price/recurring/interval. I guess I know that in my case there's always a first price.

#

It might be an idea to acknowledge the existence of /plan and /items/data[]/plan in the docs but say that they are deprecated and should not be used.

#

Thanks for your help

twilit nimbus
twilit nimbus