Skip to main content

Create a new managed account.

POST 

/managed_accounts

Create a new managed account owned by the authenticated user. You need to be explictly approved by Telnyx in order to become a manager account.

Request

Body

required

Parameters that define the managed account to be created

    email string

    The email address for the managed account. If not provided, the email address will be generated based on the email address of the manager account.

    password string

    Password for the managed account. If a password is not supplied, the account will not be able to be signed into directly. (A password reset may still be performed later to enable sign-in via password.)

    business_name stringrequired

    The name of the business for which the new managed account is being created, that will be used as the managed accounts's organization's name.

    managed_account_allow_custom_pricing boolean

    Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. This value may be changed after creation, but there may be time lag between when the value is changed and pricing changes take effect.

    rollup_billing boolean

    Boolean value that indicates if the billing information and charges to the managed account "roll up" to the manager account. If true, the managed account will not have its own balance and will use the shared balance with the manager account. This value cannot be changed after account creation without going through Telnyx support as changes require manual updates to the account ledger. Defaults to false.

Responses

200: Successful response with information about a single managed account.

Schema

    data

    object

    record_type stringrequired

    Possible values: [managed_account]

    Identifies the type of the resource.

    id UUIDrequired

    Uniquely identifies the managed account.

    email emailrequired

    The managed account's email.

    api_key stringrequired

    The managed account's V2 API access key

    api_user stringrequired

    The manager account's email, which serves as the V1 API user identifier

    api_token stringrequired

    The managed account's V1 API token

    organization_name string

    The organization the managed account is associated with.

    manager_account_id stringrequired

    The ID of the manager account associated with the managed account.

    balance

    object

    record_type string

    Possible values: [balance]

    Identifies the type of the resource.

    balance decimal

    The account's current balance.

    credit_limit decimal

    The account's credit limit.

    available_credit decimal

    Available amount to spend (balance + credit limit)

    currency iso4217

    The ISO 4217 currency identifier.

    created_at stringrequired

    ISO 8601 formatted date indicating when the resource was created.

    updated_at stringrequired

    ISO 8601 formatted date indicating when the resource was updated.

    managed_account_allow_custom_pricing boolean

    Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. There may be time lag between when the value is changed and pricing changes take effect.

    rollup_billing boolean

    Boolean value that indicates if the billing information and charges to the managed account "roll up" to the manager account. If true, the managed account will not have its own balance and will use the shared balance with the manager account. This value cannot be changed after account creation without going through Telnyx support as changes require manual updates to the account ledger. Defaults to false.

401: Unauthenticated response. Happens when the current user cannot be authenticated.

422: Unprocessable entity. Check the 'detail' field in response for details.

Schema

    errors

    UnprocessableEntityError[]

  • Array [

  • code intrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta object
  • ]

Loading...