#battalex13

1 messages · Page 1 of 1 (latest)

hallow zenithBOT
cinder aurora
#

Hi! Let me help you with this.

flat cape
#

req_62QaUfjPY37rUN

abstract egret
#

You need to pass the account token you generate when creating the Account. Looks like you passed the person token

flat cape
#

what ?

abstract egret
flat cape
#

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'],
)```
abstract egret
#

Yes, but you can't pass the individual parameter like you are, you need a person token for that

flat cape
#

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},
  },
)````
abstract egret
#

Not Account.create as its not an Account token

flat cape
#

I don't get it

abstract egret
#

ct_xxx is the Account token

flat cape
#

i want to create a custom account

#

so i use account token no ?

abstract egret
#

cpt_xxx is the Person token

flat cape
#

yes that why i used account_token in the first place

#
  account={
    "individual": {
      "first_name": "Jane",
      "last_name": "Doe",
    },
    "tos_shown_and_accepted": True,
  },
)```
abstract egret
#

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

#

You're mixing up your token IDs

flat cape
#

but is that a custom account too if i create a person ?

#

on connect ?

abstract egret
#

Yes

flat cape
#

hum

#

I'm gonna try

#

thanks for your time

abstract egret
#

Accounts can have multiple individuals (i.e. directors, etc)

flat cape
#

but how can i use individual then ?

abstract egret
#

What do you mean 'use individual'?

flat cape
#

hum

#

Ok

abstract egret
#

Let me know which part from the guide I linked you're stuck with

flat cape
#

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 ?

abstract egret
#

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

flat cape
#

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,
  },
)```
abstract egret
flat cape
#

right

#

it worked

#
  account={
    "business_type": "individual",
    "individual": {
      "first_name": "Jane",
      "last_name": "Doe",
    },
    "tos_shown_and_accepted": True,
  },
)```
#

Sorry it was not clear for me