#jchannon
1 messages ยท Page 1 of 1 (latest)
I think you can edit capabilities by clicking the connect account in the connect accounts tab of your dashboard and scrolling to the bottom
There should be a capabilities section
that's what I was hoping but can't see anything
Gotcha. Not sure then. We're not really dashboard experts in here. We mostly just help developers integrate our api
You could ask our support team: https://support.stripe.com/contact
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Please never publicly share your secret key
That's sensitive data. You'll need to roll your api keys now: https://stripe.com/docs/keys#rolling-keys
Can you reshare the snippet you tried without the secret key in it?
curl https://api.stripe.com/v1/accounts/acct_1Nie8c4ZjO5tDYHa \
-u REDACTED: \
-d "capabilities.transfers=true"
{
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: capabilities.transfers. Did you mean capabilities?",
"param": "capabilities.transfers",
"request_log_url": "https://dashboard.stripe.com/acct_1Nie8c4ZjO5tDYHa/test/logs/req_6PmcjHmw0IUSfC?t=1692891923",
"type": "invalid_request_error"
}
}
try capabilities[transfers]
bingo, thanks
hmm still an exception though
does it take time for transfers to be acknowledged inside Stripe?
What exception
Your destination account needs to have at least one of the following capabilities enabled: transfers, crypto_transfers, legacy_payments
Can you share the request id?
req_d15VM4BSsjVjcE
i've just done a GET on the account and capabilities is empty even though the earlier POST seemed to succeed
Looks like you sent the same idempotency key for that transfer
So the same response was used
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Try making the transfer without idempotency key or using a different key
I don't actually see a request where you enabled transfers
But I also see that account has charges disabled
And that's a pre-requisite for enabling transfers I believe
You'll need to fulfill the outstanding requirements on the account
Should show on the dashboard, but you can also retrieve the connect account and look at the requirements: https://stripe.com/docs/api/accounts/object#account_object-requirements
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i can see the requirements via curl but i can't see a way to resolve them in the dashboard
curl https://api.stripe.com/v1/accounts/acct_1Nie8c4ZjO5tDYHa \
-u REDACTED: \
-d "tos_acceptance[date[1692893067]]"
is that valid?
๐ hopping in here since codebame_duchess has to head out
thanks
i tried adding the ip too but this payload is invalid -d "tos_acceptance[date]=1692893067, tos_acceptance[ip]=78.32.147.140"
should it be json?
You're likely making your curl requests wrong you probably want -d "tos_acceptance[date]"=1692893067 -d "tos_acceptance[ip]"="78.32.147.140"
curl https://api.stripe.com/v1/accounts/acct_1Nie8c4ZjO5tDYHa \
-u REDACTED: \
-d "tos_acceptance[date]=1692893067" \ -d "tos_acceptance[ip]=78.32.147.140"
{
"error": {
"code": "parameter_missing",
"doc_url": "https://stripe.com/docs/error-codes/parameter-missing",
"message": "Missing required param: tos_acceptance[ip].",
"param": "tos_acceptance[ip]",
"request_log_url": "https://dashboard.stripe.com/acct_1Nie8c4ZjO5tDYHa/test/logs/req_Svhl4syZTBY3qf?t=1692893430",
"type": "invalid_request_error"
}
}
curl: (3) URL using bad/illegal format or missing URL
curl: (3) bad range in URL position 16:
tos_acceptance[ip]=78.32.147.140
Backing up for a second here - why are you making curl requests and not using one of our server-side libraries to make these requests? Is this just a one-off test?
yeah
i've got a test connect account that seems to have missing requirements and then i'm using the server side libraries to send a transfer request to it
the exception i get above is from the .NET Stripe library
Just do it all on one line to be sure it works
curl https://api.stripe.com/v1/accounts/acct_1Nie8c4ZjO5tDYHa -u REDACTED: -d "tos_acceptance[date]=1692893067" -d "tos_acceptance[ip]=78.32.147.140"
that did it however
"error": {
"message": "You cannot accept the Terms of Service on behalf of Standard and Express connected accounts.",
๐
ok i'll see if i can setup a test new connected account
Ah, I missed that this was an express account - if you still want to fix that accuont I belive all you'd need to do is create an account link (https://stripe.com/docs/connect/express-accounts#create-link) to have them finish going through the onboarding process