# `Stripe.Person`
[🔗](https://github.com/code-corps/stripity_stripe/blob/v3.3.3/lib/generated/person.ex#L1)

This is an object representing a person associated with a Stripe account.

A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.

See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information).

# `account`

```elixir
@type account() :: %{
  optional(:date) =&gt; integer(),
  optional(:ip) =&gt; binary(),
  optional(:user_agent) =&gt; binary() | binary()
}
```

Details on the legal guardian's acceptance of the main Stripe service agreement.

# `additional_document`

```elixir
@type additional_document() :: %{
  optional(:back) =&gt; binary(),
  optional(:front) =&gt; binary()
}
```

A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.

# `additional_tos_acceptances`

```elixir
@type additional_tos_acceptances() :: %{optional(:account) =&gt; account()}
```

Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.

# `address`

```elixir
@type address() :: %{
  optional(:city) =&gt; binary(),
  optional(:country) =&gt; binary(),
  optional(:line1) =&gt; binary(),
  optional(:line2) =&gt; binary(),
  optional(:postal_code) =&gt; binary(),
  optional(:state) =&gt; binary()
}
```

The person's address.

# `address_kana`

```elixir
@type address_kana() :: %{
  optional(:city) =&gt; binary(),
  optional(:country) =&gt; binary(),
  optional(:line1) =&gt; binary(),
  optional(:line2) =&gt; binary(),
  optional(:postal_code) =&gt; binary(),
  optional(:state) =&gt; binary(),
  optional(:town) =&gt; binary()
}
```

The Kana variation of the person's address (Japan only).

# `address_kanji`

```elixir
@type address_kanji() :: %{
  optional(:city) =&gt; binary(),
  optional(:country) =&gt; binary(),
  optional(:line1) =&gt; binary(),
  optional(:line2) =&gt; binary(),
  optional(:postal_code) =&gt; binary(),
  optional(:state) =&gt; binary(),
  optional(:town) =&gt; binary()
}
```

The Kanji variation of the person's address (Japan only).

# `company_authorization`

```elixir
@type company_authorization() :: %{optional(:files) =&gt; [binary() | binary()]}
```

One or more documents that demonstrate proof that this person is authorized to represent the company.

# `dob`

```elixir
@type dob() :: %{
  optional(:day) =&gt; integer(),
  optional(:month) =&gt; integer(),
  optional(:year) =&gt; integer()
}
```

# `document`

```elixir
@type document() :: %{optional(:back) =&gt; binary(), optional(:front) =&gt; binary()}
```

An identifying document, either a passport or local ID card.

# `documents`

```elixir
@type documents() :: %{
  optional(:company_authorization) =&gt; company_authorization(),
  optional(:passport) =&gt; passport(),
  optional(:visa) =&gt; visa()
}
```

Documents that may be submitted to satisfy various informational requests.

# `ethnicity_details`

```elixir
@type ethnicity_details() :: %{
  optional(:ethnicity) =&gt; [
    :cuban
    | :hispanic_or_latino
    | :mexican
    | :not_hispanic_or_latino
    | :other_hispanic_or_latino
    | :prefer_not_to_answer
    | :puerto_rican
  ],
  optional(:ethnicity_other) =&gt; binary()
}
```

The persons ethnicity details

# `passport`

```elixir
@type passport() :: %{optional(:files) =&gt; [binary() | binary()]}
```

One or more documents showing the person's passport page with photo and personal data.

# `race_details`

```elixir
@type race_details() :: %{
  optional(:race) =&gt; [
    :african_american
    | :american_indian_or_alaska_native
    | :asian
    | :asian_indian
    | :black_or_african_american
    | :chinese
    | :ethiopian
    | :filipino
    | :guamanian_or_chamorro
    | :haitian
    | :jamaican
    | :japanese
    | :korean
    | :native_hawaiian
    | :native_hawaiian_or_other_pacific_islander
    | :nigerian
    | :other_asian
    | :other_black_or_african_american
    | :other_pacific_islander
    | :prefer_not_to_answer
    | :samoan
    | :somali
    | :vietnamese
    | :white
  ],
  optional(:race_other) =&gt; binary()
}
```

The persons race details

# `registered_address`

```elixir
@type registered_address() :: %{
  optional(:city) =&gt; binary(),
  optional(:country) =&gt; binary(),
  optional(:line1) =&gt; binary(),
  optional(:line2) =&gt; binary(),
  optional(:postal_code) =&gt; binary(),
  optional(:state) =&gt; binary()
}
```

The person's registered address.

# `relationship`

```elixir
@type relationship() :: %{
  optional(:authorizer) =&gt; boolean(),
  optional(:director) =&gt; boolean(),
  optional(:executive) =&gt; boolean(),
  optional(:legal_guardian) =&gt; boolean(),
  optional(:owner) =&gt; boolean(),
  optional(:representative) =&gt; boolean()
}
```

# `t`

```elixir
@type t() :: %Stripe.Person{
  account: binary(),
  additional_tos_acceptances: term(),
  address: term(),
  address_kana: term() | nil,
  address_kanji: term() | nil,
  created: integer(),
  dob: term(),
  email: binary() | nil,
  first_name: binary() | nil,
  first_name_kana: binary() | nil,
  first_name_kanji: binary() | nil,
  full_name_aliases: term(),
  future_requirements: term() | nil,
  gender: binary() | nil,
  id: binary(),
  id_number_provided: boolean(),
  id_number_secondary_provided: boolean(),
  last_name: binary() | nil,
  last_name_kana: binary() | nil,
  last_name_kanji: binary() | nil,
  maiden_name: binary() | nil,
  metadata: term(),
  nationality: binary() | nil,
  object: binary(),
  phone: binary() | nil,
  political_exposure: binary(),
  registered_address: term(),
  relationship: term(),
  requirements: term() | nil,
  ssn_last_4_provided: boolean(),
  us_cfpb_data: term() | nil,
  verification: term()
}
```

The `person` type.

  * `account` The account the person is associated with.
  * `additional_tos_acceptances` 
  * `address` 
  * `address_kana` The Kana variation of the person's address (Japan only).
  * `address_kanji` The Kanji variation of the person's address (Japan only).
  * `created` Time at which the object was created. Measured in seconds since the Unix epoch.
  * `dob` 
  * `email` The person's email address. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `first_name` The person's first name. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `first_name_kana` The Kana variation of the person's first name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `first_name_kanji` The Kanji variation of the person's first name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `full_name_aliases` A list of alternate names or aliases that the person is known by. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `future_requirements` Information about the [upcoming new requirements for this person](https://stripe.com/docs/connect/custom-accounts/future-requirements), including what information needs to be collected, and by when.
  * `gender` The person's gender.
  * `id` Unique identifier for the object.
  * `id_number_provided` Whether the person's `id_number` was provided. True if either the full ID number was provided or if only the required part of the ID number was provided (ex. last four of an individual's SSN for the US indicated by `ssn_last_4_provided`).
  * `id_number_secondary_provided` Whether the person's `id_number_secondary` was provided.
  * `last_name` The person's last name. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `last_name_kana` The Kana variation of the person's last name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `last_name_kanji` The Kanji variation of the person's last name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
  * `maiden_name` The person's maiden name.
  * `metadata` Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
  * `nationality` The country where the person is a national.
  * `object` String representing the object's type. Objects of the same type share the same value.
  * `phone` The person's phone number.
  * `political_exposure` Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
  * `registered_address` 
  * `relationship` 
  * `requirements` Information about the requirements for this person, including what information needs to be collected, and by when.
  * `ssn_last_4_provided` Whether the last four digits of the person's Social Security number have been provided (U.S. only).
  * `us_cfpb_data` Demographic data related to the person.
  * `verification` 

# `us_cfpb_data`

```elixir
@type us_cfpb_data() :: %{
  optional(:ethnicity_details) =&gt; ethnicity_details(),
  optional(:race_details) =&gt; race_details(),
  optional(:self_identified_gender) =&gt; binary()
}
```

Demographic data related to the person.

# `verification`

```elixir
@type verification() :: %{
  optional(:additional_document) =&gt; additional_document(),
  optional(:document) =&gt; document()
}
```

The person's verification status.

# `visa`

```elixir
@type visa() :: %{optional(:files) =&gt; [binary() | binary()]}
```

One or more documents showing the person's visa required for living in the country where they are residing.

# `create`

```elixir
@spec create(
  account :: binary(),
  params :: %{
    optional(:additional_tos_acceptances) =&gt; additional_tos_acceptances(),
    optional(:address) =&gt; address(),
    optional(:address_kana) =&gt; address_kana(),
    optional(:address_kanji) =&gt; address_kanji(),
    optional(:dob) =&gt; dob() | binary(),
    optional(:documents) =&gt; documents(),
    optional(:email) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:first_name) =&gt; binary(),
    optional(:first_name_kana) =&gt; binary(),
    optional(:first_name_kanji) =&gt; binary(),
    optional(:full_name_aliases) =&gt; [binary()] | binary(),
    optional(:gender) =&gt; binary(),
    optional(:id_number) =&gt; binary(),
    optional(:id_number_secondary) =&gt; binary(),
    optional(:last_name) =&gt; binary(),
    optional(:last_name_kana) =&gt; binary(),
    optional(:last_name_kanji) =&gt; binary(),
    optional(:maiden_name) =&gt; binary(),
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()} | binary(),
    optional(:nationality) =&gt; binary(),
    optional(:person_token) =&gt; binary(),
    optional(:phone) =&gt; binary(),
    optional(:political_exposure) =&gt; :existing | :none,
    optional(:registered_address) =&gt; registered_address(),
    optional(:relationship) =&gt; relationship(),
    optional(:ssn_last_4) =&gt; binary(),
    optional(:us_cfpb_data) =&gt; us_cfpb_data(),
    optional(:verification) =&gt; verification()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Creates a new person.</p>

#### Details

 * Method: `post`
 * Path: `/v1/accounts/{account}/persons`

# `delete`

```elixir
@spec delete(account :: binary(), person :: binary(), opts :: Keyword.t()) ::
  {:ok, Stripe.DeletedPerson.t()}
  | {:error, Stripe.ApiErrors.t()}
  | {:error, term()}
```

<p>Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the <code>account_opener</code>. If your integration is using the <code>executive</code> parameter, you cannot delete the only verified <code>executive</code> on file.</p>

#### Details

 * Method: `delete`
 * Path: `/v1/accounts/{account}/persons/{person}`

# `list`

```elixir
@spec list(
  account :: binary(),
  params :: %{
    optional(:ending_before) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:limit) =&gt; integer(),
    optional(:relationship) =&gt; relationship(),
    optional(:starting_after) =&gt; binary()
  },
  opts :: Keyword.t()
) ::
  {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.</p>

#### Details

 * Method: `get`
 * Path: `/v1/accounts/{account}/persons`

# `retrieve`

```elixir
@spec retrieve(
  account :: binary(),
  person :: binary(),
  params :: %{optional(:expand) =&gt; [binary()]},
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Retrieves an existing person.</p>

#### Details

 * Method: `get`
 * Path: `/v1/accounts/{account}/persons/{person}`

# `update`

```elixir
@spec update(
  account :: binary(),
  person :: binary(),
  params :: %{
    optional(:additional_tos_acceptances) =&gt; additional_tos_acceptances(),
    optional(:address) =&gt; address(),
    optional(:address_kana) =&gt; address_kana(),
    optional(:address_kanji) =&gt; address_kanji(),
    optional(:dob) =&gt; dob() | binary(),
    optional(:documents) =&gt; documents(),
    optional(:email) =&gt; binary(),
    optional(:expand) =&gt; [binary()],
    optional(:first_name) =&gt; binary(),
    optional(:first_name_kana) =&gt; binary(),
    optional(:first_name_kanji) =&gt; binary(),
    optional(:full_name_aliases) =&gt; [binary()] | binary(),
    optional(:gender) =&gt; binary(),
    optional(:id_number) =&gt; binary(),
    optional(:id_number_secondary) =&gt; binary(),
    optional(:last_name) =&gt; binary(),
    optional(:last_name_kana) =&gt; binary(),
    optional(:last_name_kanji) =&gt; binary(),
    optional(:maiden_name) =&gt; binary(),
    optional(:metadata) =&gt; %{optional(binary()) =&gt; binary()} | binary(),
    optional(:nationality) =&gt; binary(),
    optional(:person_token) =&gt; binary(),
    optional(:phone) =&gt; binary(),
    optional(:political_exposure) =&gt; :existing | :none,
    optional(:registered_address) =&gt; registered_address(),
    optional(:relationship) =&gt; relationship(),
    optional(:ssn_last_4) =&gt; binary(),
    optional(:us_cfpb_data) =&gt; us_cfpb_data(),
    optional(:verification) =&gt; verification()
  },
  opts :: Keyword.t()
) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
```

<p>Updates an existing person.</p>

#### Details

 * Method: `post`
 * Path: `/v1/accounts/{account}/persons/{person}`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
