#pitcherojbh
1 messages · Page 1 of 1 (latest)
yes, you combine it with https://stripe.com/docs/connect/authentication to make a call on a connected account.
are you still having the problem?
yes
share your exact code and the failing request ID req_xxx please
my call is curl https://api.stripe.com/v1/payouts/po_1OAs8lBOKt173rYjPFgbVCw2
-u "xxxxxxx:"
-H "Stripe-Account: {acct_xxxx}"
which returns
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such payout: 'po_1OAs8lBOKt173rYjPFgbVCw2'",
"param": "payout",
"request_log_url": "https://dashboard.stripe.com/logs/req_Q7vylp3Fy75Frh?t=1701777876",
"type": "invalid_request_error"
}
}
seems like the header wasn't passed
probably beause you didn't put a / at the end of the second line
yeah I have added that
I'd really recommend writing some code/a script instead of raw curl
so now I get "The provided key 'sk_live_***********************************************************************************************YF7y' does not have access to account
the curl is call is just a quick test
I am going to be using the PHP sdk
request ID please
How can I get that please?
should be in the error message
this is the error
{
"error": {
"message": "The provided key 'pk_live_***********************************************************************************************8N0U' does not have access to account '{acct_1O4lFqBOKt173rYj}' (or that account does not exist). Application access may have been revoked.",
"type": "invalid_request_error",
"code": "account_invalid",
"doc_url": "https://stripe.com/docs/error-codes/account-invalid"
}
}
got it!
I had an exte {} in my header