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
- application/json
Body
required
Parameters that define the managed account to be created
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 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.)
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.
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.
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.
- application/json
401: Unauthenticated response. Happens when the current user cannot be authenticated.
422: Unprocessable entity. Check the 'detail' field in response for details.
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/managed_accounts' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "larry_cat_food@customer.org",
"password": "3jVjLq!tMuWKyWx4NN*CvhnB",
"business_name": "Larry'\''s Cat Food Inc",
"managed_account_allow_custom_pricing": false,
"rollup_billing": false
}'
Response samples
{
"data": {
"record_type": "managed_account",
"id": "f65ceda4-6522-4ad6-aede-98de83385123",
"email": "user@example.com",
"api_key": "KEY01236170692E74656C6E79782E636F6D_YmlnIGlyb24gaXMgZGVhZA",
"api_user": "managed_account@example.com",
"api_token": "x6oexQNHTs-fZ7-QsDMOeg",
"organization_name": "Example Company LLC",
"manager_account_id": "f65ceda4-6522-4ad6-aede-98de83385123",
"balance": {
"record_type": "balance",
"balance": "300.00",
"credit_limit": "100.00",
"available_credit": "400.00",
"currency": "USD"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"managed_account_allow_custom_pricing": true,
"rollup_billing": false
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}