#hooky_api

1 messages ยท Page 1 of 1 (latest)

split wedgeBOT
#

๐Ÿ‘‹ 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/1349821742897430590

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

tropic hornet
#

Another hint: I tried logging as my main "parent stripe account" (acct_1HUByaDMxIuutZDZ) and then searching the connected account ID on the search bar (acct_1R2GHu2SYDejOqWh), but it cannot find it. Maybe something went wrong when connecting the account? But then when performing my request through the parent account shouldn't I get an error in that case, instead of an empty result?

feral thorn
#

Both of those invoices were created on account acct_1R2GHu2SYDejOqWh but you tried to list them on account acct_1R2GHmCoDAUdY3yP

#

You would need to make this list call as acct_1R2GHmCoDAUdY3yP

tropic hornet
#

Ahhh, correct me if I'm wrong, a Stripe account has its own individual account ID, but then when it is connected to a parent account, it receives a different, separate account ID as connected account, yes?

feral thorn
#

Ah, acct_1R2GHu2SYDejOqWh is a sandbox account for acct_1R2GHmCoDAUdY3yP

tropic hornet
#

Right, what confuses me is the whole sandbox thing. It is new to me.

#

Maybe I made a mistake when creating those invoices.

#

Is there some way to access the old "test mode", for example, to create test mode invoices in acct_1R2GHmCoDAUdY3yP? or no?

feral thorn
#

No, a connected account will keep the same ID. If acct_1234 is the platform and acct_456 is the connected account, both the platform and connected account will see acct_456 as its ID

#

Can you try making that same list call but provide acct_1R2GHu2SYDejOqWh as the connected account ID? I am not sure how sandboxes work with connect, but that may work here. Otherwise I am still looking

tropic hornet
#

That wouldn't help me though, unless... I find a way to connect the Sandbox account through Connect, maybe? If that makes sense?

#

What I am trying now is, I opened my parent account Stripe dashboard, searched acct_1R2GHmCoDAUdY3yP and I am seeing if I can create test entities in there. That may be the easiest solution. But again, I ignore if you fully deprecated "test mode" in lieu of Sandbox?

#

Ah I think it may work. I clicked the "View dashboard as..." to impersonate the connected account, and I do have access to the good and old "TEST MODE", so this may solve my issues.

#

I may need to learn more about how Connect interacts with the new Sandbox system, but I'll leave that for another day. For now I'm checking if this latest finding unblocks me... 1 sec...

#

Yes, I am unblocked!

#

That worked. Thanks for your help!

#

Your specific questions helped me figure this out ๐Ÿ™‚

feral thorn
#

Ah nice! Glad that could help. Yeah it looks like the sandbox account isn't considered to be connected to the platform account, so you do need to create objects in that account's test mode for them to show up when listing them like that

#

The other way to do this would be to create objects in the API with the secret key account setup that you were using to list invoices

#

I am not sure if/how sandboxes work with connect. Maybe a platform's sandbox will allow you to create connected accounts that you can test with or duplicates of existing accounts? Having trouble testing on my own test account at the moment

tropic hornet
#

No problem. I can look into that more in the future. For now I am unblocked, so we can close this ticket. ๐Ÿ™‚

#

I appreciate your help!