View Source Stripe.Account (Striped v0.1.0)
This is an object representing a Stripe account. You can retrieve it to see properties on the account like its current e-mail address or if the account is enabled yet to make live charges.
Some properties, marked below, are available only to platforms that want to create and manage Express or Custom accounts.
Link to this section Summary
Functions
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
With Connect, you can create Stripe accounts for your users.To do this, you’ll first need to register your platform.
With Connect, you can delete accounts you manage.
Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.
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.
With Connect, you may flag accounts as suspicious.
Retrieves the details of an account.
Updates a connected account by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.
Link to this section Types
@type t() :: %Stripe.Account{ business_profile: term() | nil, business_type: binary() | nil, capabilities: term(), charges_enabled: boolean(), company: term(), controller: term(), country: binary(), created: integer(), default_currency: binary(), details_submitted: boolean(), email: binary() | nil, external_accounts: term(), future_requirements: term(), id: binary(), individual: Stripe.Person.t(), metadata: term(), object: binary(), payouts_enabled: boolean(), requirements: term(), settings: term() | nil, tos_acceptance: term(), type: binary() }
The account type.
business_profileBusiness information about the account.business_typeThe business type.capabilitiescharges_enabledWhether the account can create live charges.companycontrollercountryThe account's country.createdTime at which the account was connected. Measured in seconds since the Unix epoch.default_currencyThree-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country.details_submittedWhether account details have been submitted. Standard accounts cannot receive payouts before this is true.emailAn email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders.external_accountsExternal accounts (bank accounts and debit cards) currently attached to this accountfuture_requirementsidUnique identifier for the object.individualmetadataSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.objectString representing the object's type. Objects of the same type share the same value.payouts_enabledWhether Stripe can send payouts to this account.requirementssettingsOptions for customizing how the account functions within Stripe.tos_acceptancetypeThe Stripe account type. Can bestandard,express, orcustom.
Link to this section Functions
@spec capabilities(client :: term(), account :: binary(), params :: map()) :: {:ok, Stripe.List.t(Stripe.Capability.t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
Details
- Method:
get - Path:
/v1/accounts/{account}/capabilities
Query parameters
:expandarray of: string
@spec create(client :: term(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
With Connect, you can create Stripe accounts for your users.To do this, you’ll first need to register your platform.
#### Details * Method: `post` * Path: `/v1/accounts`@spec delete(client :: term(), account :: binary()) :: {:ok, Stripe.DeletedAccount.t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
With Connect, you can delete accounts you manage.
Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
If you want to delete your own account, use the account information tab in your account settings instead.
Details
- Method:
delete - Path:
/v1/accounts/{account}
@spec list(client :: term(), params :: map()) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.
Details
- Method:
get - Path:
/v1/accounts
Query parameters
:createdany of:- object with (optional) properties:
gt: integergte: integerlt: integerlte: integer
- integer
- object with (optional) properties:
:ending_beforestring:expandarray of: string:limitinteger:starting_afterstring
@spec persons(client :: term(), account :: binary(), params :: map()) :: {:ok, Stripe.List.t(Stripe.Person.t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
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.
Details
- Method:
get - Path:
/v1/accounts/{account}/persons
Query parameters
:ending_beforestring:expandarray of: string:limitinteger:relationshipobject with (optional) properties:director: booleanexecutive: booleanowner: booleanrepresentative: boolean
:starting_afterstring
@spec reject(client :: term(), account :: binary(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
With Connect, you may flag accounts as suspicious.
Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
Details
- Method:
post - Path:
/v1/accounts/{account}/reject
@spec retrieve(client :: term(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves the details of an account.
Details
- Method:
get - Path:
/v1/account
Query parameters
:expandarray of: string
@spec update(client :: term(), account :: binary(), params :: map()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Updates a connected account by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked Custom Only below.) Parameters marked Custom and Express are not supported for Standard accounts.
To update your own account, use the Dashboard. Refer to our Connect documentation to learn more about updating accounts.
Details
- Method:
post - Path:
/v1/accounts/{account}