#janthoe - list products
1 messages · Page 1 of 1 (latest)
And do you have a request ID (req_123) from a time you were trying to list these products but didn't see all of them?
Thank you. And what is the account that you don't see that setting on?
Do you have the ID for both of these accounts?
req_QcCwt7QcKPa6t0
Thank you
yes one sec
ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B <- unable to list products
ca_HgpJBxQqJr1W6lomCBlUreqDX8LDXxja <- works as expected
Thank you. And ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B can't list any products at all?
One more ID: can you send me the request ID from a time you looked up a single product with this same exact config?
I don't see an obvious reason that there shouldn't be products listed yet, this may help illuminate what is going on
No worries at all. I will check in to that request in a moment
thx!
We may have been talking past each other a bit. Can ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B look up individual products? That second request ID is coming from ca_HgpJBxQqJr1W6lomCBlUreqDX8LDXxja which is the one that can list products properly.
one account can only get products by id, not list them
ie: req_bS5p1D9dAoJA7Y
the other one can list all:
req_dffiHVk4U0OY5a
same account different OAuth clients
Right, what I mean is, the two list requests come from the one that you say can only look up products individually but the request for an individual lookup was from the account that can list them all.
same account, different OAuth2 client ids.
when getting tokens with one client I can only get products by id
while when using the second client tokens I can list products
so I cannot understand what different between them
@crisp sleet is there any config that I may be missing?
I send identical requests the only difference is the AccessToken
I am trying to think if there is. That account has two live products so they should be showing up.
Is there a reason that you are using OAuth tokens over the Stripe-Account header?
not sure I understand the question
we allow users to import stripe data into our app, so OAuth is the way to go for us
Still looking. I think it may have to do with the API version of the ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B account
Can you try the list products call again but specify: type=service?
req_XwzM71UEBmp0kJ
that ones actually returns the product list
Gotcha, so this is the culprit https://stripe.com/docs/upgrades#2018-02-05
The account for ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B is on a 2017 version of the API and the other account uses a 2020 version. This 2018 update is why they are seeing different things
So that is the explanation. Trying to think of what that means for you going forward
thx 🙇
Can you tell me a bit more about the context of who/what is making these calls?
Like you are making this as the platform basically?
The one with this ID if it helps acct_1H7Ra7LovTLHRznp
For sure. we have an app that allows users, from many different companies, to fetch data from Stripe. We created the OAuthClient a while ago.
do you recommend to upgrade the API version?
So that would help in this specific case but I think that more generally you will need to switch up how you make this call
I think that making the call through the OAuth tokens will give you are response in the connected account's API Version by default.
So you will probably want to always specify the API version that your platform uses https://stripe.com/docs/api/versioning
It looks like your platform is using a 2020 API version. I think that listing products like that will show both goods and services
gotcha, ie: specify the api version on the calls instead of relying on the defaults
Yes. To test this out, can you make that list products call, but specify the API version to be 2020-03-02?
So no specifying type=service but do specify the API version as 2020-03-02
I think that that should list all of the products for you
yup, that makes the difference.
Thank you so much for your help!
Awesome! Glad we could figure that out, that was a subtle one