Method create.customers
Description Creating an Agent Client
Available to Partner

Request parameters

Title Type Required Valid values ​​ Description
access_token string yes Authentication session key
name string yes Client name
description string no Description to the client
tariff_plan_id number yes Unique identifier of the tariff plan. The list of available tariff plans can be obtained using the "get.partner_tariffs" method
email string yes Client email address
password string yes Minimum length 8 characters Client password
monthly_base_limit number no Total monthly limit. The value is specified in money.
monthly_base_notify_limit number no Threshold value of the total monthly limit, upon reaching which a notification is sent to the email address specified in the "monthly_base_notify_email" parameter
monthly_base_notify_emails array yes Maximum 5 addresses Email addresses to receive notifications when your total monthly limit is reached
monthly_calls_limit number no Monthly call limit. The value is specified in the number of calls.
monthly_calls_notify_limit number no Threshold value of the monthly call limit, upon reaching which a notification is sent to the email address specified in the "monthly_calls_notify_email" parameter
monthly_calls_notify_emails array yes Maximum 5 addresses Email addresses to receive notifications when your monthly call limit is reached
daily_calls_limit number no Daily call limit. The value is specified in the number of calls.
daily_calls_notify_limit number no Threshold value of the daily call limit, upon reaching which a notification is sent to the email address specified in the "daily_calls_notify_email" parameter
daily_calls_notify_emails array yes Maximum 5 addresses Email addresses to receive notifications when the daily call limit has been reached

Response parameters

Title Type Required Description
id number yes Unique client identifier

JSON request structure```json

{ "jsonrpc":"2.0", "id":"number", "method":"create.customers", "params":{ "access_token":"string", "name":"string", "description":"string", "tariff_plan_id":"number", "email":"string", "password":"string", "monthly_base_limit":"number", "monthly_base_notify_limit":"number", "monthly_base_notify_emails":[ "item" ], "monthly_calls_limit":"number", "monthly_calls_notify_limit":"number", "monthly_calls_notify_emails":[ "item" ], "daily_calls_limit":"number", "daily_calls_notify_limit":"number", "daily_calls_notify_emails":[ "item" ] } }

### JSON response structure```json
{
  "jsonrpc":"2.0",
  "id":"number",
  "result":{
    "id":"number"
  }
}

List of returned errors

See the section "List of errors for methods with the create verb"