#newtreyes_api

1 messages ยท Page 1 of 1 (latest)

fossil bloomBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1349420836615880856

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

bright gyro
#

Hi @silent cypress

#

Ex. ST-V5A8N2D5H3S

silent cypress
#

Hi ๐Ÿ‘‹

By payout, you mean Payout?

bright gyro
#

Yes, Sir

silent cypress
#

Hmmm... well it's not the Trace ID...

#

So essentially they want you to return the ID the bank assigned to this payout?

bright gyro
#

I am not sure

#

We are already showing the Trace ID to them, but they are saying that's not what they want and that they were able to retrieve the ST-xxx id somehow from their side.

#

Are we missing something? Is there any way to retrieve it using the API somehow?

#

Can you confirm if that's possible at all?

silent cypress
#

I suspect this is something generated by their bank but I am digging through internal docs to see if there are any IDs we have access to that match that format

bright gyro
#

Thank you, Sir

silent cypress
#

Okay, that a Retrieve Payouts API call so that would suggest it's on the Payout object.

#

Do you have the Payout ID or the account ID?

#

Oh wait..duh

#

reference_token ST-G2K7Y4R2T2C2

#

Which, according to our docs is a Preview feature

bright gyro
#

Interesting

#

Is there anything we should do on our side to enable the retrieval of this field?

#

Also, which account id is payout po_1PfxUfEnPb0G2KZSoZouSmpW related to?

silent cypress
#

acct_1Hk96kEnPb0G2KZS

#

And as for retrieving this field, it should be available. Let me test this with my own code.

bright gyro
#

@silent cypress Is this acct_1Hk96kEnPb0G2KZS a connected account?

silent cypress
#

Shouldn't you know?

bright gyro
#

LOL

#

I should

silent cypress
#

Okay I can retrieve this data using an old API version 2020-08-27 with the following code (in Python)

po = stripe.Payout.retrieve('po_1PFnIuIlCeH6bP8RiLUTTdhS')
print(po.reference)
bright gyro
#

the problem is that the customer sent us that payout id

#

I thought it was a payout from one of our connected accounts

#

but I tried retrieving using out platform accounts and the acct_1Hk96kEnPb0G2KZS that you gave me but I was not able to

#

So, I am starting to guess if this might be a payout from an account that is not related to our platform accounts

#

Does that make sense?

#

Sorry if I am making some silly mistake here

silent cypress
#

It's not a connected account

bright gyro
#

Ok

#

that's interesting

#

Let me show you something

#

That's a payout from one of our connected accounts

#

I don't see that reference_token in there

silent cypress
#

Can you try making the request without Postman?

#

Using one of our SDKs?

bright gyro
#

Yes

#

give me a min

#

Here

#

Still nothing

silent cypress
#

Hmmm... I just made a request for a Connected Account's payout object and I got the reference.

#

What API version are you on?

bright gyro
#

Setting the version to the one you provided

fossil bloomBOT
bright gyro
#

Can you try retrieving this one?

#

stripe.Payout.retrieve('po_1R1dqfQ1cjPdOgQWIoommHLe',stripe_account="acct_1R1XHDQ1cjPdOgQW")

#

I am using the Python Stripe library

silent cypress
#

No, that isn't my connected account

bright gyro
#

I thought you might had access to any account on your side

silent cypress
#

I can look up the raw Payout object. And I see reference_token ST-K4M9O3D2D3X6

bright gyro
#

why could it be that we can't see it neither from Python nor from curl / postman

#

?

#

Also, I can't see the reference_token field in the docs

#

maybe because it's a preview feature?

silent cypress
#

I'm not sure that would make sense. It isn't private or gated. What is the default API version for your account?

bright gyro
#

Tried several versions... not getting that field on any of those versions

silent cypress
#

Okay... I see I have an API version explicitly coded here. I am using 2024-04-10 and stripe-python v9.3.0

bright gyro
#

stripe 11.6.0

#

Using the same api version gives the same result

#

Created a new test using stripe-python v9.3.0

#

Same thing

#

Could this be something related to our platform or test connected account?

hearty kernel
#

Hi, taking over as my teammate needs to step away. Let me catch up.

bright gyro
#

thank you, @hearty kernel

#

@hearty kernel Any news?

hearty kernel
#

Still looking, hang tight

bright gyro
#

thank you

hearty kernel
#

After reviewing this with a teammate, it looks like that is not supported by default and you would need to be added to a special feature to see this detail. Our support team will be able to assist you better than I can: https://support.stripe.com/contact

bright gyro
#

What is it exactly that I will need to request?

#

access to the reference_token payout field?

hearty kernel
#

yes, payout.reference_token

bright gyro
#

ok

#

sounds good

#

thank you