#hooky_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
To add more info, invoices I have created and I would've expected to be returned from my request:
https://dashboard.stripe.com/invoices/in_1R2GJb2SYDejOqWhFWm3v0ID
https://dashboard.stripe.com/invoices/in_1R2GJA2SYDejOqWh1jkKfoLO
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?
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
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?
Ah, acct_1R2GHu2SYDejOqWh is a sandbox account for acct_1R2GHmCoDAUdY3yP
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?
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
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 ๐
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