Получение списка Списаний конечных клиентов всех нижестоящих Реселлеров

Метод Get a List of the Child Resellers end-customers Charges используется для получения списка Списаний конечных клиентов всех Реселлеров, являющихся нижестоящими по отношению к текущему Реселлеру, или по отношению к его выбранному нижестоящему Реселлеру.

Доступ к текущему Реселлеру, относительно которого формируется список нижестоящих Реселлеров, определяется по токену Сотрудника, указанному в заголовке запроса.

GET {base_url}/api/v3/resellers/{reseller_id}/child_reseller_charges

Аргументы

Название

Тип параметра

Тип данных

Обязательный/ 
Опциональный

Описание

X-Api-TokenheaderstringОбязательныйAPI токен Сотрудника, выполняющего операцию (см. Просмотр и обновление информации о сотруднике)
Content-TypeheaderstringОбязательныйПредназначен для идентификации формата и способа представления сущности
AcceptheaderstringОбязательныйПредназначен для информирования сервера о типах данных, которые поддерживаются клиентом (браузером)
reseller_idpathintegerОбязательныйID Реселлера. Возможно указать ID текущего Реселлера или ID любого из его нижестоящих Реселлеров (см. Просмотр информации о реселлере)
page[size]queryintegerОпциональныйПараметр постраничной навигации. Количество элементов на странице ответа (50 по умолчанию)
page[number]queryintegerОпциональныйПараметр постраничной навигации. Номер страницы ответа
filter[close_date]querydateОпциональный

Предназначен для фильтрации Списаний по дате закрытия в формате ГГГГ-ММ-ДД. Для указания диапазона дат используются следующие фильтры:

  • filter[close_date][gt] - дата закрытия более, чем указанная дата
  • filter[close_date][lt] - дата закрытия менее, чем указанная дата

filters[subscription_id]

query

integer

Опциональный

Фильтрация списка по ID Подписки

filters[status]

query

string

Опциональный

Фильтрация списка по статусу Списания (список статусов см. в Атрибуты списаний).

filter[created_at]

query

string

Опциональный

Предназначен для фильтрации Списаний по дате и времени создания в формате RFC 3339 (например, 2017-10-04T15:12:01.558009%2B03:00)Для указания диапазона используются следующие фильтры:
  • filter[created_at][gt] - дата и время более, чем указанные
  • filter[created_at][lt] - дата и время менее, чем указанные
ilter[updated_at]

query

string

Опциональный

Предназначен для фильтрации Списаний по дате дате и времени последнего обновления в формате RFC 3339 (например, 2017-10-04T15:12:01.558009%2B03:00)Для указания диапазона используются следующие фильтры:
  • filter[updated_at][gt] - дата и время более, чем указанные
  • filter[updated_at][lt] - дата и время менее, чем указанные
includequerystringОпциональный

Предназначен для включения в ответ дополнительной информации о связанных объектах. Для получения информации о нескольких объектах значения параметра должны перечисляться через запятую. Поддерживаются следующие объекты:

ОбъектЗначение параметра

Реселлер

reseller
Клиентaccount
Подпискаsubscription

Тарифный план

plan

Модель ответа

Название

Тип данных

Описание

dataarrayДанные ответа


id

integerID Списания

typestringТип данных

attributesobjectИнформация о Списании


created_atdateДата и время создания Списания


updated_atdateДата и время последнего изменения Списания


subscription_idintegerID клиентской Подписки


subscription_resource_idintegerID Ресурса в клиентской Подписке


quantityintegerКоличество заказанных единиц Услуги или Ресурса


operate_from

dateДата начала периода, оплаченного Списанием


durationfloatПериод Списания, измеряемый в месяцах. Например, период 1 день = 0.033, 2 года = 24


descriptionstringПодробное описание Списания


unit_pricefloatСтоимость единицы Ресурса или Услуги у выбранного Реселлера


amountfloatОбщая сумма Списания (с учетом Скидки)


statusstringСтатус Списания (список статусов см. в Атрибуты списаний)


typestring

Тип Списания (см. также Атрибуты списаний):

  • Charge::Setup - Списание за установку Подписки
  • Charge::Recurring - Списание за абонентскую плату Подписки
  • Charge::RecurringResource - Списание за абонентскую плату ресурса Подписки
  • Charge::Renewal - Списание за продление Подписки
  • Charge::RenewalResource - Списание за продление Ресурса
  • Charge::ExternalResource - Списание за использование внешнего Ресурса
  • Charge::SetupResource - Списание за установку РесурсовПодписки
  • Charge::Transfer - Списание за перенос Домена


net_costfloatСебестоимость Списания для выбранного Реселлера


taxes_amountfloatСумма налогов для данного Списания


subscription_resource_namestringИмя Ресурса в Подписке, которая была заказана Клиентом


plan_resource_idintegerID Ресурса в Тарифном плане, который был заказан Клиентом


resource_idintegerID Ресурса в Шаблоне услуги


order_idintegerID Заказа, по которому произведено Списание


operate_todateДата окончания периода, оплаченного Списанием


close_datedate

Дата, когда Cписание должно быть закрыто



discountfloatРазмер Скидки для данного Списания

relationshipsarrayПеречень объектов, связанных со Списанием


taxesarrayИнформация о налогах



dataarray

Информация о связанном объекте:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных


resellerarrayИнформация о Реселлере



dataarray

Информация о связанном объекте:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных


accountarrayИнформация о Клиенте



dataarray

Информация о связанном объекте:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных


subscriptionarrayИнформация о Подписке



dataarray

Информация о связанном объекте:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных


planarrayИнформация о Тарифном плане



dataarray

Информация о связанном объекте:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных


discountarrayИнформация о Скидке



dataarray

Информация о связанном объекте:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных
includedarray

Дополнительная информация о связанных объектах, указанных в запросе:

НазваниеТип данныхОписание
idintegerID объекта
typestringТип данных
attributesarrayАтрибуты (см. ниже)

Атрибуты:

НазваниеТип данныхОписание
idintegerID Подписки
typestringТип данных
attributesarrayИнформация о Подписке

created_atdateДата и время создания Подписки

updated_atdateДата и время последнего изменения Подписки

auto_renewalbool

Признак автоматического продления Подписки:

  • false - автоматическое продление отключено
  • true - автоматическое продление включено

billing_fromdateДата начала генерации Списаний по Подписке

expiration_datedateДата истечения срока действия Подписки

namestringНазвание Подписки

renew_point_daysintegerКоличество дней до истечения Подписки, когда Клиент получает счет на продление

start_datedateДата активации Подписки

statusstring

Статус Подписки (список статусов см. в Просмотр списка подписок)

linksarrayСсылки на страницы для навигации по элементам ответа с учетом заданных параметров постраничной навигации

selfstringСсылка на текущую страницу

firststringСсылка на первую страницу

prevstringСсылка на предыдущую страницу

nextstringСсылка на следующую страницу

laststringСсылка на последнюю страницу
metaarrayДополнительная информация о Списании

currencystringВалюта Реселлера

Пример запроса

GET /api/v3/resellers/1/child_reseller_charges?page[size]=2&page[number]=1&filter[close_date][gt]=2016-01-01&filter[close_date][lt]=2016-11-03&filter[subscription_id]=85&filter[status]=closed&filter[created_at][gt]=2016-10-06T15:12:01.558009%2B03:00&filter[created_at][lt]=2017-10-04T15:12:01.558009%2B03:00&filter[updated_at][gt]=2016-10-26T11:28:44.703281%2B03:00&filter[updated_at][lt]=2016-10-27T11:28:44.703281%2B03:00&include=reseller,account,subscription,plan
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json

Пример ответа

{
    "data": [
        {
            "id": "24935",
            "type": "charges",
            "attributes": {
                "created_at": "2018-10-04T01:12:27.320845+0300",
                "updated_at": "2018-10-04T01:12:27.320845+0300",
                "subscription_id": 3002533,
                "subscription_resource_id": null,
                "quantity": 1.0,
                "operate_from": "2019-07-01",
                "duration": 1.0,
                "description": "Продление подписки (абонентская плата) #3002533 \"GS Unlimited [TS]\"",
                "unit_price": "0.0",
                "amount": "40.0",
                "status": "new",
                "type": "Charge::Recurring",
                "net_cost": null,
                "taxes_amount": 0,
                "subscription_resource_name": null,
                "plan_resource_id": null,
                "resource_id": null,
                "order_id": 3014,
                "operate_to": "2019-07-31",
                "close_date": "2019-07-31",
                "discount": "0.00"
            },
            "relationships": {
                "taxes": {
                    "data": []
                },
                "reseller": {
                    "data": {
                        "id": "211",
                        "type": "resellers"
                    }
                },
                "account": {
                    "data": {
                        "id": "199",
                        "type": "accounts"
                    }
                },
                "subscription": {
                    "data": {
                        "id": "3002533",
                        "type": "subscriptions"
                    }
                },
                "plan": {
                    "data": {
                        "id": "644",
                        "type": "plans"
                    }
                },
                "discount": {
                    "data": null
                }
            }
        },
        {
            "id": "25002",
            "type": "charges",
            "attributes": {
                "created_at": "2019-02-01T01:07:38.074557+0300",
                "updated_at": "2019-08-01T01:02:04.234276+0300",
                "subscription_id": 3002922,
                "subscription_resource_id": null,
                "quantity": 1.0,
                "operate_from": "2019-07-01",
                "duration": 1.0,
                "description": "Продление подписки (абонентская плата) #3002922 \"Kaspersky Security для виртуальных сред, Desktop Russian Edition\"",
                "unit_price": "0.0",
                "amount": "100.0",
                "status": "closed",
                "type": "Charge::Recurring",
                "net_cost": null,
                "taxes_amount": 0,
                "subscription_resource_name": null,
                "plan_resource_id": null,
                "resource_id": null,
                "order_id": 3029,
                "operate_to": "2019-07-31",
                "close_date": "2019-07-31",
                "discount": "0.00"
            },
            "relationships": {
                "taxes": {
                    "data": []
                },
                "reseller": {
                    "data": {
                        "id": "243",
                        "type": "resellers"
                    }
                },
                "account": {
                    "data": {
                        "id": "248",
                        "type": "accounts"
                    }
                },
                "subscription": {
                    "data": {
                        "id": "3002922",
                        "type": "subscriptions"
                    }
                },
                "plan": {
                    "data": {
                        "id": "773",
                        "type": "plans"
                    }
                },
                "discount": {
                    "data": null
                }
            }
        }
    ],
    "included": [
        {
            "id": "211",
            "type": "resellers",
            "attributes": {
                "created_at": "2017-09-01T11:33:03.081+03:00",
                "updated_at": "2018-07-26T07:30:35.382+03:00",
                "parent_id": 1,
                "general": {
                    "created_at": "2017-09-01T11:33:03.081+03:00",
                    "updated_at": "2018-07-26T07:30:35.382+03:00",
                    "name": "Dev acc",
                    "domain": "test.activeplatform.com",
                    "manager": "Evgeniy",
                    "currency": "USD"
                },
                "company": {
                    "created_at": "2017-09-01T11:33:03.081+03:00",
                    "updated_at": "2018-07-26T07:30:35.382+03:00",
                    "city": "Minsk",
                    "zip": "123432",
                    "country": "BY",
                    "fax": "+375291112223",
                    "name": "Dev acc",
                    "address_line_1": "Sovetskaya 5",
                    "address_line_2": "Sovetskaya 55",
                    "state": "Minskiy",
                    "phone": "+375291112223",
                    "email": "291112223@example.com"
                },
                "contacts": {
                    "created_at": "2017-09-01T11:33:03.081+03:00",
                    "updated_at": "2018-07-26T07:30:35.382+03:00",
                    "first_name": "acc",
                    "last_name": "Dev",
                    "middle_name": "a",
                    "position": "Dev",
                    "phone": "+375291112223",
                    "email": "291112223@example.com"
                },
                "custom_attributes": {}
            }
        },
        {
            "id": "199",
            "type": "accounts",
            "attributes": {
                "created_at": "2017-09-26T12:05:49.788+03:00",
                "updated_at": "2019-02-01T16:51:37.556+03:00",
                "reseller_id": 211,
                "name": "John GS  TEST",
                "account_class_id": 760,
                "primary_name": "",
                "first_name": "John GS",
                "middle_name": "",
                "last_name": "TEST",
                "country": "BY",
                "region": "Minsk",
                "city": "Minsk",
                "street": "Minsk",
                "building": "",
                "office": "17",
                "zip": "220000",
                "phone": "+372 29 1111111",
                "email": "test_warp@example.com",
                "status": "active",
                "balance": "5679.22",
                "current_debt": 0.0,
                "subscription_credit_limit": 0.0,
                "financial_blocking_threshold": 100.0,
                "account_type_id": 3334,
                "manager_id": null,
                "owner_id": 547,
                "tech_user_id": 547,
                "bill_user_id": 547,
                "custom_attributes": {},
                "manager": null,
                "default_payment_model": "prepay",
                "account_type": {
                    "id": 3334,
                    "name": "Индивидуальный предприниматель",
                    "created_at": "2017-09-01T11:33:03.261+03:00",
                    "updated_at": "2017-09-01T11:33:03.261+03:00",
                    "reseller_id": 211,
                    "name_pattern": "%first_name %middle_name %last_name",
                    "primary_name": "",
                    "key": "key",
                    "default_payment_method_id": 2,
                    "ancestry": "1385",
                    "use_by_default": false
                },
                "account_class": {
                    "id": 760,
                    "reseller_id": 211,
                    "name": "Default",
                    "created_at": "2017-09-01T11:33:04.017+03:00",
                    "updated_at": "2019-02-07T15:42:37.254+03:00",
                    "financial_blocking_threshold": "100.0",
                    "due_order_period": 14,
                    "subzero_period": 5,
                    "stop_subscription_type": "automatically",
                    "key": "default",
                    "color": "grey",
                    "guaranteed_payment_limit": 1000,
                    "guaranteed_payment_period": 7,
                    "delete_subscription_type": "automatically",
                    "denominated": false,
                    "buy_with_negative_balance": true,
                    "receipt_day": null,
                    "payment_model": "prepay",
                    "default": false,
                    "due_payment_period": 30,
                    "subscription_credit_limit": "0.0"
                }
            },
            "relationships": {
                "subscriptions": {
                    "data": [
                        {
                            "id": "3002418",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002436",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002437",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002596",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002468",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002476",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002480",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002421",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002435",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002470",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002545",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002574",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002490",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002478",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002594",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002525",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002691",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002526",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002690",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002527",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002402",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002439",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002500",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002703",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002672",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002529",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002695",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002692",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002693",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002696",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002704",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002499",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002467",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002533",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002507",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002504",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002595",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002508",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002598",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002530",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002644",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002441",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002674",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002694",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002408",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002409",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002512",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002531",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002645",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002471",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002472",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002473",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002564",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002699",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002475",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002736",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002632",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002631",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002577",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002634",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002635",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002638",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002639",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002640",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002455",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002709",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002737",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002702",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002599",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002479",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002483",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002484",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002485",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002453",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002454",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002456",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002457",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002414",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002458",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002459",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002460",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002461",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002463",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002462",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002792",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002464",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002489",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002465",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002646",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002723",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002724",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002601",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002419",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002726",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002725",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002727",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002710",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002591",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002592",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002619",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002605",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002656",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002657",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002681",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002772",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002804",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002803",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002816",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002819",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002829",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002779",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002828",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002830",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002720",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002731",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002420",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002641",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002590",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002682",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002741",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002749",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002752",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002815",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002855",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002856",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002585",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002593",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002798",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002429",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002469",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002621",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002630",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002719",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002843",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002415",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002430",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002477",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002528",
                            "type": "subscriptions"
                        }
                    ]
                }
            }
        },
        {
            "id": "3002533",
            "type": "subscriptions",
            "attributes": {
                "created_at": "2017-10-04T14:41:24.192241+0300",
                "updated_at": "2018-10-04T01:12:30.737749+0300",
                "auto_renewal": true,
                "billing_from": "2017-10-04",
                "expiration_date": "2018-10-04",
                "name": "GS Unlimited [TS]",
                "renew_point_days": 0,
                "start_date": "2017-10-04",
                "status": "renewal_failed"
            }
        },
        {
            "id": "644",
            "type": "plans",
            "attributes": {
                "created_at": "2017-10-03T11:16:21.341+03:00",
                "updated_at": "2017-10-11T17:24:00.261+03:00",
                "status": "inactive",
                "name": "GS Unlimited [TS]",
                "description": "",
                "public": false,
                "plan_class_id": 3613,
                "product_id": 328,
                "billing_type": "reservation",
                "ancestry": null,
                "reseller_id": 211,
                "plan_class": "GS TEST SERVICE-Reservation",
                "product_category_id": 235,
                "product_category": "default",
                "product": "Google Suite Flexible TS",
                "plan_resources": {
                    "data": [
                        {
                            "id": "2411",
                            "type": "plan_resources",
                            "attributes": {
                                "created_at": "2017-10-03T11:16:21.385+03:00",
                                "updated_at": "2017-10-03T11:16:21.385+03:00",
                                "name": "Users",
                                "measurable": null,
                                "unit_of_measure": "unit",
                                "application_template_name": "GS TEST SERVICE",
                                "included": 1,
                                "minimum": 1,
                                "limit": 750,
                                "setup_fee": "0.0",
                                "recurring_fee": "4.0",
                                "overuse_fee": "0.0",
                                "renewal_fee": "0.0",
                                "unlimited_units": false,
                                "public": true,
                                "status": "active",
                                "resource_id": 1186,
                                "custom_attributes": {}
                            }
                        }
                    ]
                },
                "plan_periods": {
                    "data": [
                        {
                            "id": "1313",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-10-03T11:16:21.410+03:00",
                                "updated_at": "2017-10-03T11:16:21.410+03:00",
                                "duration_value": 1,
                                "duration_type": "year",
                                "setup_fee": "0.0",
                                "recurring_fee": "40.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": null
                            }
                        },
                        {
                            "id": "1314",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-10-03T11:16:21.447+03:00",
                                "updated_at": "2017-10-03T11:16:21.447+03:00",
                                "duration_value": 1,
                                "duration_type": "month",
                                "setup_fee": "0.0",
                                "recurring_fee": "4.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": null
                            }
                        },
                        {
                            "id": "1315",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-10-03T11:16:21.461+03:00",
                                "updated_at": "2017-10-03T11:16:21.461+03:00",
                                "duration_value": 30,
                                "duration_type": "day",
                                "setup_fee": "0.0",
                                "recurring_fee": "0.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": true,
                                "public": true,
                                "status": "active",
                                "description": null
                            }
                        }
                    ]
                },
                "available_account_types": [
                    {
                        "id": 3324,
                        "name": "newtype",
                        "created_at": "2017-09-01T11:33:03.146+03:00",
                        "updated_at": "2017-09-01T11:33:03.146+03:00",
                        "reseller_id": 211,
                        "name_pattern": "new_type",
                        "primary_name": "",
                        "key": "new_type",
                        "default_payment_method_id": null,
                        "ancestry": "3158",
                        "use_by_default": false
                    },
                    {
                        "id": 3325,
                        "name": "test 8",
                        "created_at": "2017-09-01T11:33:03.156+03:00",
                        "updated_at": "2017-09-01T11:33:03.156+03:00",
                        "reseller_id": 211,
                        "name_pattern": "test8",
                        "primary_name": "",
                        "key": "test8",
                        "default_payment_method_id": null,
                        "ancestry": "1284",
                        "use_by_default": false
                    },
                    {
                        "id": 3326,
                        "name": "IP BLR",
                        "created_at": "2017-09-01T11:33:03.165+03:00",
                        "updated_at": "2017-09-01T11:33:03.165+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%last_name %first_name %middle_name",
                        "primary_name": "",
                        "key": "ip",
                        "default_payment_method_id": 197,
                        "ancestry": "512",
                        "use_by_default": false
                    },
                    {
                        "id": 3327,
                        "name": "Test2",
                        "created_at": "2017-09-01T11:33:03.173+03:00",
                        "updated_at": "2017-09-01T11:33:03.173+03:00",
                        "reseller_id": 211,
                        "name_pattern": "Test2",
                        "primary_name": "",
                        "key": "Test2",
                        "default_payment_method_id": null,
                        "ancestry": "1158",
                        "use_by_default": false
                    },
                    {
                        "id": 3328,
                        "name": "test3",
                        "created_at": "2017-09-01T11:33:03.182+03:00",
                        "updated_at": "2019-01-04T16:56:35.142+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "test3",
                        "default_payment_method_id": null,
                        "ancestry": "1192",
                        "use_by_default": false
                    },
                    {
                        "id": 3329,
                        "name": "Personal BLR",
                        "created_at": "2017-09-01T11:33:03.191+03:00",
                        "updated_at": "2017-09-01T11:33:03.191+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "personalblr",
                        "default_payment_method_id": 2,
                        "ancestry": "1",
                        "use_by_default": false
                    },
                    {
                        "id": 3330,
                        "name": "business w/o vat",
                        "created_at": "2017-09-01T11:33:03.199+03:00",
                        "updated_at": "2017-09-01T11:33:03.199+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%primary_name",
                        "primary_name": "",
                        "key": "business_no_vat",
                        "default_payment_method_id": null,
                        "ancestry": "651",
                        "use_by_default": false
                    },
                    {
                        "id": 3331,
                        "name": "Test1",
                        "created_at": "2017-09-01T11:33:03.226+03:00",
                        "updated_at": "2017-09-01T11:33:03.226+03:00",
                        "reseller_id": 211,
                        "name_pattern": "test1",
                        "primary_name": "",
                        "key": "test1",
                        "default_payment_method_id": null,
                        "ancestry": "1124",
                        "use_by_default": false
                    },
                    {
                        "id": 3332,
                        "name": "Business w/o НДС",
                        "created_at": "2017-09-01T11:33:03.235+03:00",
                        "updated_at": "2017-09-01T11:33:03.235+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business_wo_vat",
                        "default_payment_method_id": 197,
                        "ancestry": "12",
                        "use_by_default": false
                    },
                    {
                        "id": 3333,
                        "name": "Business BLR",
                        "created_at": "2017-09-01T11:33:03.254+03:00",
                        "updated_at": "2017-09-01T11:33:03.254+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "businessblr",
                        "default_payment_method_id": 197,
                        "ancestry": "2",
                        "use_by_default": false
                    },
                    {
                        "id": 3334,
                        "name": "Индивидуальный предприниматель",
                        "created_at": "2017-09-01T11:33:03.261+03:00",
                        "updated_at": "2017-09-01T11:33:03.261+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "key",
                        "default_payment_method_id": 2,
                        "ancestry": "1385",
                        "use_by_default": false
                    },
                    {
                        "id": 3335,
                        "name": "Физическое лицо",
                        "created_at": "2017-09-01T11:33:03.268+03:00",
                        "updated_at": "2017-09-01T11:33:03.268+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "personal",
                        "default_payment_method_id": null,
                        "ancestry": "1562/1564",
                        "use_by_default": false
                    },
                    {
                        "id": 3336,
                        "name": "Юридическое лицо",
                        "created_at": "2017-09-01T11:33:03.276+03:00",
                        "updated_at": "2017-09-01T11:33:03.276+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business",
                        "default_payment_method_id": null,
                        "ancestry": "1600/1602",
                        "use_by_default": false
                    },
                    {
                        "id": 3337,
                        "name": "Business1",
                        "created_at": "2017-09-01T11:33:03.285+03:00",
                        "updated_at": "2017-09-01T11:33:03.285+03:00",
                        "reseller_id": 211,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business1",
                        "default_payment_method_id": null,
                        "ancestry": "1900/1930",
                        "use_by_default": false
                    },
                    {
                        "id": 3702,
                        "name": "asd",
                        "created_at": "2017-09-18T12:09:32.892+03:00",
                        "updated_at": "2017-09-18T12:09:32.892+03:00",
                        "reseller_id": 211,
                        "name_pattern": "asd",
                        "primary_name": "asd",
                        "key": "asd",
                        "default_payment_method_id": null,
                        "ancestry": "3605",
                        "use_by_default": false
                    }
                ],
                "custom_attributes": {}
            }
        },
        {
            "id": "243",
            "type": "resellers",
            "attributes": {
                "created_at": "2017-10-31T13:59:20.701+03:00",
                "updated_at": "2019-02-12T14:01:43.855+03:00",
                "parent_id": 1,
                "general": {
                    "created_at": "2017-10-31T13:59:20.701+03:00",
                    "updated_at": "2019-02-12T14:01:43.855+03:00",
                    "name": "Kaspersky",
                    "domain": "kaspersky.test.activeplatform.com",
                    "manager": "testSales",
                    "currency": "RUB"
                },
                "company": {
                    "created_at": "2017-10-31T13:59:20.701+03:00",
                    "updated_at": "2019-02-12T14:01:43.855+03:00",
                    "city": "a",
                    "zip": "222224",
                    "country": "BY",
                    "fax": "",
                    "name": "Kaspersky",
                    "address_line_1": "a",
                    "address_line_2": "",
                    "state": "a",
                    "phone": "+375440000000",
                    "email": "test@example.com"
                },
                "contacts": {
                    "created_at": "2017-10-31T13:59:20.701+03:00",
                    "updated_at": "2019-02-12T14:01:43.855+03:00",
                    "first_name": "В",
                    "last_name": "А",
                    "middle_name": "",
                    "position": "",
                    "phone": "+375440000000",
                    "email": "test@example.com"
                },
                "custom_attributes": {
                    "softline1c_plugin_api_password": "",
                    "softline1c_plugin_api_name": "",
                    "kpp": "",
                    "inn": "345345345",
                    "reseller_mpn_id_ttttt": "",
                    "loc_1": "erfg",
                    "l_ocation": "",
                    "l_ocationv": "",
                    "ererere": "3453453",
                    "inn_inn": "3534"
                }
            }
        },
        {
            "id": "248",
            "type": "accounts",
            "attributes": {
                "created_at": "2017-11-01T16:41:25.122+03:00",
                "updated_at": "2019-02-01T16:51:37.778+03:00",
                "reseller_id": 243,
                "name": "Name Surname",
                "account_class_id": 1078,
                "primary_name": "",
                "first_name": "Name",
                "middle_name": "",
                "last_name": "Surname",
                "country": "BY",
                "region": "Минская",
                "city": "Минск",
                "street": "Кальварийская",
                "building": "",
                "office": "44",
                "zip": "220102",
                "phone": "+375440000000",
                "email": "test@example.com",
                "status": "credit_hold",
                "balance": "-178.0",
                "current_debt": 0.0,
                "subscription_credit_limit": 0.0,
                "financial_blocking_threshold": 0.0,
                "account_type_id": 4115,
                "manager_id": null,
                "owner_id": 627,
                "tech_user_id": 627,
                "bill_user_id": 627,
                "custom_attributes": {},
                "manager": null,
                "default_payment_model": "prepay",
                "account_type": {
                    "id": 4115,
                    "name": "Физическое лицо",
                    "created_at": "2017-10-31T13:59:20.872+03:00",
                    "updated_at": "2017-10-31T13:59:20.872+03:00",
                    "reseller_id": 243,
                    "name_pattern": "%first_name %middle_name %last_name",
                    "primary_name": "",
                    "key": "personal",
                    "default_payment_method_id": null,
                    "ancestry": "1562/1564",
                    "use_by_default": false
                },
                "account_class": {
                    "id": 1078,
                    "reseller_id": 243,
                    "name": "manual",
                    "created_at": "2017-10-31T13:59:22.008+03:00",
                    "updated_at": "2019-02-07T15:42:40.133+03:00",
                    "financial_blocking_threshold": "0.0",
                    "due_order_period": 1,
                    "subzero_period": 1,
                    "stop_subscription_type": "manually",
                    "key": "manual",
                    "color": "purple",
                    "guaranteed_payment_limit": 1000,
                    "guaranteed_payment_period": 7,
                    "delete_subscription_type": "manually",
                    "denominated": false,
                    "buy_with_negative_balance": false,
                    "receipt_day": null,
                    "payment_model": "prepay",
                    "default": false,
                    "due_payment_period": 30,
                    "subscription_credit_limit": "0.0"
                }
            },
            "relationships": {
                "subscriptions": {
                    "data": [
                        {
                            "id": "3003280",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002922",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002923",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003036",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002910",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002906",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002917",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002916",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003069",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003070",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003071",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003072",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003011",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003012",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003015",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003021",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003039",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003020",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003022",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003027",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003030",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003031",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003032",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003034",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002909",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003042",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003045",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003051",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003056",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003013",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002904",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002905",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003016",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002907",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002908",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002903",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002911",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003033",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003014",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003028",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3002924",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003794",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003865",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003808",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003807",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003804",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003805",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003806",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003809",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003812",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003801",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003802",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003803",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003810",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003813",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003814",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003815",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003816",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003817",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003831",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003833",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003838",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003848",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003043",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003896",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003897",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003890",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003889",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003899",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003898",
                            "type": "subscriptions"
                        },
                        {
                            "id": "3003922",
                            "type": "subscriptions"
                        }
                    ]
                }
            }
        },
        {
            "id": "3002922",
            "type": "subscriptions",
            "attributes": {
                "created_at": "2018-01-01T02:21:56.501700+0300",
                "updated_at": "2019-08-01T01:02:03.663169+0300",
                "auto_renewal": true,
                "billing_from": "2018-02-01",
                "expiration_date": "2019-08-01",
                "name": "Kaspersky Security для виртуальных сред, Desktop Russian Edition",
                "renew_point_days": 0,
                "start_date": "2018-01-01",
                "status": "stopping"
            }
        },
        {
            "id": "773",
            "type": "plans",
            "attributes": {
                "created_at": "2017-11-01T16:35:38.546+03:00",
                "updated_at": "2023-08-21T20:03:30.889+03:00",
                "status": "active",
                "name": "Kaspersky Security для виртуальных сред, Desktop Russian Edition",
                "description": "10-14",
                "public": true,
                "plan_class_id": 4579,
                "product_id": 394,
                "billing_type": "pay_in_full",
                "ancestry": null,
                "reseller_id": 243,
                "plan_class": "Kaspersky Security для виртуальных сред, Core Russian Edition-Reservation",
                "product_category_id": 534,
                "product_category": "default",
                "product": "Kaspersky Security для виртуальных сред, Core Russian Edition",
                "plan_resources": {
                    "data": [
                        {
                            "id": "2729",
                            "type": "plan_resources",
                            "attributes": {
                                "created_at": "2017-11-01T16:35:38.805+03:00",
                                "updated_at": "2018-01-03T02:49:44.665+03:00",
                                "name": "Quantity",
                                "measurable": null,
                                "unit_of_measure": "unit",
                                "application_template_name": "Kaspersky Security для виртуальных сред, Core Russian Edition",
                                "included": 10,
                                "minimum": 10,
                                "limit": 14,
                                "setup_fee": "0.0",
                                "recurring_fee": "20.0",
                                "overuse_fee": "0.0",
                                "renewal_fee": "0.0",
                                "unlimited_units": false,
                                "public": true,
                                "status": "active",
                                "resource_id": 1408,
                                "custom_attributes": {
                                    "item_1c_id": "",
                                    "v_resource": ""
                                }
                            }
                        }
                    ]
                },
                "plan_periods": {
                    "data": [
                        {
                            "id": "1533",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-11-01T16:35:38.870+03:00",
                                "updated_at": "2023-02-05T21:30:59.540+03:00",
                                "duration_value": 1,
                                "duration_type": "month",
                                "setup_fee": "0.0",
                                "recurring_fee": "0.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "1535",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-11-03T10:36:48.014+03:00",
                                "updated_at": "2017-11-03T10:36:48.014+03:00",
                                "duration_value": 3,
                                "duration_type": "month",
                                "setup_fee": "0.0",
                                "recurring_fee": "100.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "1536",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-11-03T10:37:00.244+03:00",
                                "updated_at": "2017-11-03T10:37:00.244+03:00",
                                "duration_value": 6,
                                "duration_type": "month",
                                "setup_fee": "0.0",
                                "recurring_fee": "100.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "1576",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2018-02-04T02:11:36.424+03:00",
                                "updated_at": "2018-02-04T02:11:36.424+03:00",
                                "duration_value": 2,
                                "duration_type": "month",
                                "setup_fee": "0.0",
                                "recurring_fee": "0.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        }
                    ]
                },
                "available_account_types": [
                    {
                        "id": 4105,
                        "name": "test 8",
                        "created_at": "2017-10-31T13:59:20.778+03:00",
                        "updated_at": "2017-10-31T13:59:20.778+03:00",
                        "reseller_id": 243,
                        "name_pattern": "test8",
                        "primary_name": "",
                        "key": "test8",
                        "default_payment_method_id": null,
                        "ancestry": "1284",
                        "use_by_default": false
                    },
                    {
                        "id": 4106,
                        "name": "IP BLR",
                        "created_at": "2017-10-31T13:59:20.785+03:00",
                        "updated_at": "2017-10-31T13:59:20.785+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%last_name %first_name %middle_name",
                        "primary_name": "",
                        "key": "ip",
                        "default_payment_method_id": 197,
                        "ancestry": "512",
                        "use_by_default": false
                    },
                    {
                        "id": 4107,
                        "name": "Test2",
                        "created_at": "2017-10-31T13:59:20.810+03:00",
                        "updated_at": "2017-10-31T13:59:20.810+03:00",
                        "reseller_id": 243,
                        "name_pattern": "Test2",
                        "primary_name": "",
                        "key": "Test2",
                        "default_payment_method_id": null,
                        "ancestry": "1158",
                        "use_by_default": false
                    },
                    {
                        "id": 4108,
                        "name": "test3",
                        "created_at": "2017-10-31T13:59:20.818+03:00",
                        "updated_at": "2019-01-04T16:56:35.253+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "test3",
                        "default_payment_method_id": null,
                        "ancestry": "1192",
                        "use_by_default": false
                    },
                    {
                        "id": 4109,
                        "name": "Personal BLR",
                        "created_at": "2017-10-31T13:59:20.825+03:00",
                        "updated_at": "2017-10-31T13:59:20.825+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "personalblr",
                        "default_payment_method_id": 2,
                        "ancestry": "1",
                        "use_by_default": false
                    },
                    {
                        "id": 4110,
                        "name": "business w/o vat",
                        "created_at": "2017-10-31T13:59:20.840+03:00",
                        "updated_at": "2017-10-31T13:59:20.840+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%primary_name",
                        "primary_name": "",
                        "key": "business_no_vat",
                        "default_payment_method_id": null,
                        "ancestry": "651",
                        "use_by_default": false
                    },
                    {
                        "id": 4111,
                        "name": "Test1",
                        "created_at": "2017-10-31T13:59:20.848+03:00",
                        "updated_at": "2017-10-31T13:59:20.848+03:00",
                        "reseller_id": 243,
                        "name_pattern": "test1",
                        "primary_name": "",
                        "key": "test1",
                        "default_payment_method_id": null,
                        "ancestry": "1124",
                        "use_by_default": false
                    },
                    {
                        "id": 4112,
                        "name": "Business w/o НДС",
                        "created_at": "2017-10-31T13:59:20.854+03:00",
                        "updated_at": "2017-10-31T13:59:20.854+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business_wo_vat",
                        "default_payment_method_id": 197,
                        "ancestry": "12",
                        "use_by_default": false
                    },
                    {
                        "id": 4113,
                        "name": "Business BLR",
                        "created_at": "2017-10-31T13:59:20.860+03:00",
                        "updated_at": "2017-10-31T13:59:20.860+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "businessblr",
                        "default_payment_method_id": 197,
                        "ancestry": "2",
                        "use_by_default": false
                    },
                    {
                        "id": 4114,
                        "name": "Индивидуальный предприниматель",
                        "created_at": "2017-10-31T13:59:20.866+03:00",
                        "updated_at": "2017-10-31T13:59:20.866+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "key",
                        "default_payment_method_id": 2,
                        "ancestry": "1385",
                        "use_by_default": false
                    },
                    {
                        "id": 4115,
                        "name": "Физическое лицо",
                        "created_at": "2017-10-31T13:59:20.872+03:00",
                        "updated_at": "2017-10-31T13:59:20.872+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "personal",
                        "default_payment_method_id": null,
                        "ancestry": "1562/1564",
                        "use_by_default": false
                    },
                    {
                        "id": 4116,
                        "name": "Юридическое лицо",
                        "created_at": "2017-10-31T13:59:20.880+03:00",
                        "updated_at": "2017-10-31T13:59:20.880+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business",
                        "default_payment_method_id": null,
                        "ancestry": "1600/1602",
                        "use_by_default": false
                    },
                    {
                        "id": 4117,
                        "name": "Business1",
                        "created_at": "2017-10-31T13:59:20.886+03:00",
                        "updated_at": "2017-10-31T13:59:20.886+03:00",
                        "reseller_id": 243,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business1",
                        "default_payment_method_id": null,
                        "ancestry": "1900/1930",
                        "use_by_default": false
                    },
                    {
                        "id": 4118,
                        "name": "newtype",
                        "created_at": "2017-10-31T13:59:20.893+03:00",
                        "updated_at": "2017-10-31T13:59:20.893+03:00",
                        "reseller_id": 243,
                        "name_pattern": "new_type",
                        "primary_name": "",
                        "key": "new_type",
                        "default_payment_method_id": null,
                        "ancestry": "3158",
                        "use_by_default": false
                    },
                    {
                        "id": 4119,
                        "name": "asd",
                        "created_at": "2017-10-31T13:59:20.899+03:00",
                        "updated_at": "2017-10-31T13:59:20.899+03:00",
                        "reseller_id": 243,
                        "name_pattern": "asd",
                        "primary_name": "asd",
                        "key": "asd",
                        "default_payment_method_id": null,
                        "ancestry": "3605",
                        "use_by_default": false
                    }
                ],
                "custom_attributes": {
                    "item_1c_id": "",
                    "vat25": "0",
                    "111": "",
                    "item_1c_for_resellers": "",
                    "plannum": ""
                }
            }
        }
    ],
    "links": {
        "self": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_charges?filter%5Bclose_date%5D%5Bgt%5D=2019-07-01&filter%5Bclose_date%5D%5Blt%5D=2019-08-03&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=1&page%5Bsize%5D=2",
        "first": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_charges?filter%5Bclose_date%5D%5Bgt%5D=2019-07-01&filter%5Bclose_date%5D%5Blt%5D=2019-08-03&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=1&page%5Bsize%5D=2",
        "prev": null,
        "next": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_charges?filter%5Bclose_date%5D%5Bgt%5D=2019-07-01&filter%5Bclose_date%5D%5Blt%5D=2019-08-03&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=2&page%5Bsize%5D=2",
        "last": "http://test.activeplatform.com/api/v3/resellers/1/child_reseller_charges?filter%5Bclose_date%5D%5Bgt%5D=2019-07-01&filter%5Bclose_date%5D%5Blt%5D=2019-08-03&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=192&page%5Bsize%5D=2"
    },
    "meta": {
        "currency": "USD"
    }
}