#munjay_api

1 messages ¡ Page 1 of 1 (latest)

raven bronzeBOT
#

👋 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/1288466162270732349

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

frank violet
#

Also, share the exact code you're using

surreal spear
#

I'm not sure what you mean by request Id?

#

as you can see here, when i call Payout.List, i am able to find the associated payout

frank violet
#

See the URL I shared, explains how/where to find it

surreal spear
#

but when i call payout.retrieve, it doesnt exist

#

I dont currently have access to the stripe console

#

is the request Id needed for this question?

frank violet
#

Can you at least share the po_xxx ID?

#

It's hard to know what it is you're trying to retrieve without a specific example, yeah

surreal spear
#

po_1Q2jeXDGNXYdBDEdcsTrkFOn

frank violet
#

Also, the acct_xxx ID of the conncted account that you're setting in requestOptions

surreal spear
#

acct_1Q0K0uDGNXYdBDEd

raven bronzeBOT
frank violet
#

What's the exact error you get from that API call? I can't see any logs on acct_1Q0K0uDGNXYdBDEd indicating a retrieval request

surreal spear
frank violet
#

OK, looks like your requestOptions aren't being set on the request as I can see the requests landing on the platform account

surreal spear
#

but the request options is working for Payout.list?

#

when i call Payout.list and print the results, it gives me a list of 3 payout objects, one of which is the payout object im looking for

frank violet
#

Not super familiar with Java, maybe you need to rebuild the request options again after the list call

surreal spear
#

no i only added the Payout.list for testing purposes, it wasnt working before either

#

The Payout object with that po_xxx ID definitely exists for the associated stripe-account-id, it just seems to be a java Stripe API issue

frank violet
#

I know it does, I'm not disputing that. As I said, and have shared, the request is being sent to the platform not the connected account where the payout exists. Which is why you get the resource_missing error. That seems to be because the requestOptions is dropped from the reverse method for some reason

surreal spear
#

oh its the reverse method

frank violet
#

Yeah but the request options should be forwarded to that method

surreal spear
#

ahh okay i apologies

#

I have found the error

frank violet
#

Out of interest, what fixed it?

surreal spear
#

thank you for your time

#

I didnt realise payout.reverse() required requestOptions too

#

I thought it was failing at the Retrieve() call