'How to associate a person to a company account in Stripe

I created an account for a company but according to the documentation https://stripe.com/docs/connect/account-tokens#workflow it is necessary to associate this account with a person(owner, director,...). The body response return requirements.currently_due:"relationship.account_opener" but when i try to create a person account it gives me this error Received unknown parameters: country, type

    const personResult = await props.stripe.createToken('person', {
  person: {
    first_name: 'myFirstName',
    last_name: 'myLastName',
    address: {
      line1: 'myAddress',
      city: 'Wien',
      state: 'Wien',
      postal_code: '1060',
    },
    relationship: {
      director: true,
      executive: true,
      owner: true,
      representative: true,
      title: 'CEO',
    },
    verification: {
      document: {
        front: idFile,
      },
    },
  },
  tos_shown_and_accepted: true,
});

idFile is a token returned by a post request of document ID of this person I work in a js environment in front and java in backend



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source