#Flolosain

1 messages · Page 1 of 1 (latest)

lost phoenixBOT
soft bay
digital gulch
#

Thanks but still error when I put "true" : {
"error": {
"code": "parameter_unknown",
"doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
"message": "Received unknown parameter: capabilities[transfers][enabled]",
"param": "capabilities[transfers][enabled]",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_oXFUF8dKTLYgo9?t=1683881599",
"type": "invalid_request_error"
}
}

Learn more about error codes and how to resolve them.

soft bay
#

I'd recommend checking the API reference rather than just blindly passing parameters until it works

digital gulch
#

I already try, here is my call :

type=custom&country=FR&email=email@individual.com&business_type=individual&individual[first_name]=Prénom&individual[last_name]=Nom&individual[address][line1]=2 allée clémence royer&individual[address][postal_code]=31300&individual[address][city]=Toulouse&individual[address][state]=FR&individual[address][country]=FR&capabilities[card_payments][requested]=true&capabilities[transfers][requested]=true

soft bay
#

And what was the outcome of that API call?

digital gulch
#

Raw response for the API
Status code 400
{
"error": {
"message": "Connect platforms based in FR must create Custom accounts via account tokens. For documentation on account tokens, see https://stripe.com/docs/connect/account-tokens.",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_kkfnTaO2uVRbNZ?t=1683881780",
"type": "invalid_request_error"
}
}

soft bay
#

Ok, and what is unclear about that error? You've been using the tokens, so I'm confused how you're back to that

soft bay
digital gulch
#

The payload : type=custom&country=FR&email=email@individual.com&business_type=individual&individual[first_name]=Prénom&individual[last_name]=Nom&individual[address][line1]=2 allée clémence royer&individual[address][postal_code]=31300&individual[address][city]=Toulouse&individual[address][state]=FR&individual[address][country]=FR&capabilities[card_payments][requested]=true&capabilities[transfers][requested]=true

soft bay
#
capabilities: {
    card_payments: {
      requested: "true",
    },
    transfers: {
      enabled: "true",
    },
  },
#

Still passing transfers[enabled] which is invalid

digital gulch
#

Here's my call

#

And the one for the token :

soft bay
digital gulch
#

OOh ! How to do it with an API call ?

soft bay
digital gulch
#

The direct API is what I did

#

You can see it in my screenshot

lost phoenixBOT
soft bay
#

Which is what you're not doing now

digital gulch
#

In the header ?

#

I put it in the header with authorization

soft bay
digital gulch
#

I tried but still doesn't :
{
"error": {
"message": "Parameter 'business_type' cannot be used in conjunction with an account token. To set this field create a token with the desired changes. Pass the token with 'account_token' in a request without setting 'business_type'. See https://stripe.com/docs/connect/account-tokens#updating for more information.",
"param": "business_type",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_4luGqzimuDrLUz?t=1683883605",
"type": "invalid_request_error"
}
}

Connect platforms can use Stripe.js to securely collect account details from their users.

soft bay
#

Did you try removing the business_type parameter in your request like the error indicates?

digital gulch
#

Yes

#

{
"error": {
"message": "Parameter 'individual' cannot be used in conjunction with an account token. To set this field create a token with the desired changes. Pass the token with 'account_token' in a request without setting 'individual'. See https://stripe.com/docs/connect/account-tokens#updating for more information.",
"param": "individual",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_ocWApqVqBEv2sP?t=1683883696",
"type": "invalid_request_error"
}
}

Connect platforms can use Stripe.js to securely collect account details from their users.

soft bay
#

The same again, I guess?

digital gulch
#

Yes again

soft bay
#

The issue is you're passing parameters that aren't supported you're using the account_token. You need to omit any parameters relevant to the indiovidual/business as they've already been passed when you created the Account Token