#janthoe - list products

1 messages · Page 1 of 1 (latest)

crisp sleet
#

Where are you seeing this "Integration" tab?

bitter gazelle
crisp sleet
#

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?

bitter gazelle
#

for sure let me find one

crisp sleet
#

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?

bitter gazelle
#

req_QcCwt7QcKPa6t0

crisp sleet
#

Thank you

bitter gazelle
#

yes one sec

#

ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B <- unable to list products

ca_HgpJBxQqJr1W6lomCBlUreqDX8LDXxja <- works as expected

crisp sleet
#

Thank you. And ca_8M5BK6QQQQ1WeMnrBM4OccpvkJmm176B can't list any products at all?

bitter gazelle
#

only by Id

#

which defeats the purpose of list all

crisp sleet
#

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

bitter gazelle
#

sounds good, one sec

#

@crisp sleet req_Qv7UkAQyP9Acee

#

sorry for the delay

crisp sleet
#

No worries at all. I will check in to that request in a moment

bitter gazelle
#

thx!

crisp sleet
#

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.

bitter gazelle
#

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

crisp sleet
#

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.

bitter gazelle
#

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

crisp sleet
#

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?

bitter gazelle
#

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

crisp sleet
#

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?

bitter gazelle
#

req_XwzM71UEBmp0kJ
that ones actually returns the product list

crisp sleet
#

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

bitter gazelle
#

thx 🙇

crisp sleet
#

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

bitter gazelle
#

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?

crisp sleet
#

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.

#

It looks like your platform is using a 2020 API version. I think that listing products like that will show both goods and services

bitter gazelle
#

gotcha, ie: specify the api version on the calls instead of relying on the defaults

crisp sleet
#

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

bitter gazelle
#

yup, that makes the difference.
Thank you so much for your help!

crisp sleet
#

Awesome! Glad we could figure that out, that was a subtle one