#jefskoa_api

1 messages ¡ Page 1 of 1 (latest)

ember merlinBOT
#

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

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

pearl musk
#

I believe I've got the format right now, but it indicates the payout id is not valid, but that is the Payout Id from our sandbox.

stripe reporting report_runs create --report-type payout_reconciliation.by_id.summary.1 --parameters.payout po_1S3RrDIvHz5DOm3oVLwe6oe6

#

Error results:
{
"error": {
"code": "resource_missing","doc_url": "https://stripe.com/docs/error-codes/resource-missing","message": "No such payout: 'po_1S3RrDIvHz5DOm3oVLwe6oe6'","message_code": "missing_resource_with_message_about_livemode","param": "parameters[payout]","type": "invalid_request_error",
},
}

Learn more about Stripe API error codes and how to resolve them.

limpid leaf
#

Hmm that CLI is likely operating in a different context

#

If you make the same request with the sandbox SK directly, does that work like you expect?

pearl musk
#

Unsure, I was trying to use the Dev CLI online only. I can try CLI from desktop.

limpid leaf
pearl musk
#

will do ... thx for the hint

limpid leaf
#

np

#

you can confirm the context is what you need/expect using stripe accounts retrieve with no id param to get your "self" account

#

i expect from the context that this will change with and without the sandbox SK

pearl musk
#

Ya, from web cli, this:

stripe reporting report_runs create --api-key sk_test_<key> --report-type payout_reconciliation.by_id.summary.1 --parameters.payout po_1S3RrDIvHz5DOm3oVLwe6oe6 --parameters.columns 6

Still an error. I'll try from CLI on PC

limpid leaf
pearl musk
#

acct_1QptxoI1VSC7qNYw, which is different than the connected account in our sandbox tied to that payoutid.

#

can i switch connected account in Dev cli window?

limpid leaf
#

That payout object belongs to acct_1Qpv01IvHz5DOm3o, yea so that is why it doesnt work

#

if you pass in the API key via flag do you get that account ID?

#

I'm not sure if you can change that context explicitly -- switching to the sandbox in the account switch I would expect to chang ethat context too

#

but if that doesnt happen automatically I'm not sure if there's an explicit way to do that

pearl musk
#

I went to CLI on my PC and no problem. stripe login got me the correct connected account. I'm good to go ...

limpid leaf
#

Great!