#battalex13
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_62QaUfjPY37rUN
You need to pass the account token you generate when creating the Account. Looks like you passed the person token
what ?
You use the person token with the next step: https://stripe.com/docs/connect/account-tokens#create-person
where ?
account={
"individual": {
"first_name": "Jane",
"last_name": "Doe",
},
"tos_shown_and_accepted": True,
},
)```
here is the account token no ?
and then
country="US",
type="custom",
capabilities={"card_payments": {"requested": True}, "transfers": {"requested": True}},
account_token=response['id'],
)```
Yes, but you can't pass the individual parameter like you are, you need a person token for that
https://stripe.com/docs/connect/account-tokens has all the details
when i pass person token i get this
Request req_osvZDUJRKW8oNN: This is not a valid account token: cpt_1NE8qbALJZQwIblVCpILC13g
with this
person={
"first_name": "Jane",
"last_name": "Doe",
"relationship": {"owner": True},
},
)````
Yes, because you use cpt_1NE8qbALJZQwIblVCpILC13g with Person.create
Not Account.create as its not an Account token
I don't get it
ct_xxx is the Account token
cpt_xxx is the Person token
yes that why i used account_token in the first place
account={
"individual": {
"first_name": "Jane",
"last_name": "Doe",
},
"tos_shown_and_accepted": True,
},
)```
Yes, but you can't use the individual parameters with Account token. If you want to specifiy an individual, you use a person token and create a Person
I'd recommend just walking through the flow here: https://stripe.com/docs/connect/account-tokens
You're mixing up your token IDs
Yes
Accounts can have multiple individuals (i.e. directors, etc)
but how can i use individual then ?
What do you mean 'use individual'?
Let me know which part from the guide I linked you're stuck with
I want to do this :
type="custom",
country="US",
email="jenny.rosen@example.com",
capabilities={
"card_payments": {"requested": True},
"transfers": {"requested": True},
},
)```
juste create a custom account
but since i'm in france i need to pass token for this request
which token should i pass ?
You need to create an Account token, like you are. The issue is you're not passing business_type: 'individual' when you create the token to the account[individual] params are invalid
If there's only a single individual associated with the account, just change your token creation to include that parameter as per the error
The guide explains all of this
yes i read it but the thing I don"t understand is that I need to use this request right ?
account={
"individual": {
"first_name": "Jane",
"last_name": "Doe",
},
"tos_shown_and_accepted": True,
},
)```
The answer is here
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.