Получение списка реселлер-Списаний Реселлера

Метод Get a List of the Reseller's Charges используется для получения списка реселлер-Списаний для текущего Реселлера или любого из его нижестоящих Реселлеров.

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

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

Аргументы

Название

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

Тип данных

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

Описание

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

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

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

Реселлер

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

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

plan

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

Название

Тип данных

Описание

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


id

integerID Списания

typestringТип данных

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


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


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


charge_idinteger
  • ID клиентского Списания, закрытие которого инициировало генерацию реселлер-Списания
  • ID реселлер-Списания нижестоящего Реселлера, создание которого инициировало генерацию реселлер-Списания


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


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


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


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


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


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


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


resource_idintegerID Ресурса


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


operate_from

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


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


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


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


typestring

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

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


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


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

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


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



dataarray

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

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


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



dataarray

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

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


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



dataarray

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

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


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



dataarray

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

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


managerarrayИнформация о Менеджере



dataarray

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

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


plan_resourcearrayИнформация о Ресурсе



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Ссылка на последнюю страницу

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

GET /api/v3/resellers/4/reseller_charges?include=reseller,account,subscription,plan&page[size]=2&page[number]=2
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json

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

{
    "data": [
        {
            "id": "150",
            "type": "reseller_charges",
            "attributes": {
                "created_at": "2016-12-02T01:02:13.719+03:00",
                "updated_at": "2016-12-02T01:02:13.719+03:00",
                "charge_id": 246,
                "subscription_id": 75,
                "unit_price": "1.0",
                "amount": "1.0",
                "net_cost": null,
                "subscription_resource_id": null,
                "subscription_resource_name": null,
                "plan_resource_id": null,
                "resource_id": null,
                "quantity": 1.0,
                "operate_from": "2016-11-01",
                "operate_to": "2016-11-30",
                "duration": 1.0,
                "description": "Purchasing Plan (recurring fee) #75 \"Auto provisioning with resources\"",
                "type": "Charge::Recurring",
                "order_id": 80,
                "discount": "0.00"
            },
            "relationships": {
                "reseller": {
                    "data": {
                        "id": "4",
                        "type": "resellers"
                    }
                },
                "account": {
                    "data": {
                        "id": "11",
                        "type": "accounts"
                    }
                },
                "subscription": {
                    "data": {
                        "id": "75",
                        "type": "subscriptions"
                    }
                },
                "plan": {
                    "data": {
                        "id": "5",
                        "type": "plans"
                    }
                },
                "manager": {
                    "data": {
                        "id": "1",
                        "type": "managers"
                    }
                },
                "plan_resource": {
                    "data": null
                },
                "discount": {
                    "data": null
                }
            }
        },
        {
            "id": "152",
            "type": "reseller_charges",
            "attributes": {
                "created_at": "2016-12-02T01:02:14.695+03:00",
                "updated_at": "2016-12-02T01:02:14.695+03:00",
                "charge_id": 254,
                "subscription_id": 75,
                "unit_price": "3.0",
                "amount": "9.0",
                "net_cost": null,
                "subscription_resource_id": 477,
                "subscription_resource_name": "Resource 1",
                "plan_resource_id": 611,
                "resource_id": 8,
                "quantity": 3.0,
                "operate_from": "2016-11-01",
                "operate_to": "2016-11-30",
                "duration": 1.0,
                "description": "Upgrade resource (recurring fee) \"Resource 1\" for Subscription #75 \"Auto provisioning with resources\"",
                "type": "Charge::Recurring",
                "order_id": 80,
                "discount": "0.00"
            },
            "relationships": {
                "reseller": {
                    "data": {
                        "id": "4",
                        "type": "resellers"
                    }
                },
                "account": {
                    "data": {
                        "id": "11",
                        "type": "accounts"
                    }
                },
                "subscription": {
                    "data": {
                        "id": "75",
                        "type": "subscriptions"
                    }
                },
                "plan": {
                    "data": {
                        "id": "5",
                        "type": "plans"
                    }
                },
                "manager": {
                    "data": {
                        "id": "1",
                        "type": "managers"
                    }
                },
                "plan_resource": {
                    "data": {
                        "id": "611",
                        "type": "plan_resources"
                    }
                },
                "discount": {
                    "data": null
                }
            }
        }
    ],
    "included": [
        {
            "id": "4",
            "type": "resellers",
            "attributes": {
                "created_at": "2016-10-18T10:57:38.219+03:00",
                "updated_at": "2018-07-26T07:30:34.748+03:00",
                "parent_id": 25,
                "general": {
                    "created_at": "2016-10-18T10:57:38.219+03:00",
                    "updated_at": "2018-07-26T07:30:34.748+03:00",
                    "name": "Resendor",
                    "domain": "test.activeplatform.com",
                    "manager": "Admin",
                    "currency": "USD"
                },
                "company": {
                    "created_at": "2016-10-18T10:57:38.219+03:00",
                    "updated_at": "2018-07-26T07:30:34.748+03:00",
                    "city": null,
                    "zip": null,
                    "country": null,
                    "fax": null,
                    "name": null,
                    "address_line_1": null,
                    "address_line_2": null,
                    "state": null,
                    "phone": null,
                    "email": null
                },
                "contacts": {
                    "created_at": "2016-10-18T10:57:38.219+03:00",
                    "updated_at": "2018-07-26T07:30:34.748+03:00",
                    "first_name": null,
                    "last_name": null,
                    "middle_name": null,
                    "position": null,
                    "phone": null,
                    "email": null
                },
                "custom_attributes": {}
            }
        },
        {
            "id": "11",
            "type": "accounts",
            "attributes": {
                "created_at": "2016-10-25T09:59:11.165+03:00",
                "updated_at": "2019-02-01T16:51:36.416+03:00",
                "reseller_id": 4,
                "name": "Busines",
                "account_class_id": 5,
                "primary_name": "Busines",
                "first_name": "Бизнес",
                "middle_name": "",
                "last_name": "Сндс",
                "country": "BY",
                "region": "Minsk",
                "city": "Minsk",
                "street": "empty",
                "building": "",
                "office": "29",
                "zip": "123456",
                "phone": "+375291234567",
                "email": "test@email.com",
                "status": "active",
                "balance": "0.0",
                "current_debt": 0.0,
                "subscription_credit_limit": 0.0,
                "financial_blocking_threshold": 0.0,
                "account_type_id": 8,
                "manager_id": 11,
                "owner_id": 29,
                "tech_user_id": 29,
                "bill_user_id": 29,
                "custom_attributes": {
                    "kpp": "123456",
                    "inn": "123"
                },
                "manager": {
                    "created_at": "2016-10-25T09:57:54.182+03:00",
                    "updated_at": "2016-10-25T09:57:54.182+03:00",
                    "reseller_id": 4,
                    "id": 11,
                    "name": "Manager",
                    "status": "active",
                    "email": "testtest@gmail.com",
                    "role": "sales"
                },
                "default_payment_model": "prepay",
                "account_type": {
                    "id": 8,
                    "name": "Business BLR",
                    "created_at": "2016-10-18T10:57:38.367+03:00",
                    "updated_at": "2017-05-10T19:28:56.308+03:00",
                    "reseller_id": 4,
                    "name_pattern": "%primary_name",
                    "primary_name": "Company name",
                    "key": "businessblr",
                    "default_payment_method_id": null,
                    "ancestry": "2/67",
                    "use_by_default": false
                },
                "account_class": {
                    "id": 5,
                    "reseller_id": 4,
                    "name": "Default",
                    "created_at": "2016-10-18T10:57:38.602+03:00",
                    "updated_at": "2019-02-07T15:42:32.188+03:00",
                    "financial_blocking_threshold": "0.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": false,
                    "receipt_day": null,
                    "payment_model": "prepay",
                    "default": false,
                    "due_payment_period": 30,
                    "subscription_credit_limit": "0.0"
                }
            },
            "relationships": {
                "subscriptions": {
                    "data": [
                        {
                            "id": "75",
                            "type": "subscriptions"
                        }
                    ]
                }
            }
        },
        {
            "id": "75",
            "type": "subscriptions",
            "attributes": {
                "created_at": "2016-10-25T10:00:13.646956+0300",
                "updated_at": "2017-01-08T01:02:19.383375+0300",
                "auto_renewal": false,
                "billing_from": "2016-10-25",
                "expiration_date": "2016-12-25",
                "name": "Auto provisioning with resources",
                "renew_point_days": 0,
                "start_date": "2016-10-25",
                "status": "deleted"
            }
        },
        {
            "id": "5",
            "type": "plans",
            "attributes": {
                "created_at": "2016-10-05T14:38:31.697+03:00",
                "updated_at": "2019-08-05T07:43:33.607+03:00",
                "status": "active",
                "name": "Auto provisioning with resources",
                "description": "",
                "public": true,
                "plan_class_id": 1,
                "product_id": 403,
                "billing_type": "reservation",
                "ancestry": null,
                "reseller_id": 1,
                "plan_class": "default",
                "product_category_id": 190,
                "product_category": "default",
                "product": "Default",
                "plan_resources": {
                    "data": [
                        {
                            "id": "1575",
                            "type": "plan_resources",
                            "attributes": {
                                "created_at": "2017-01-10T16:47:06.388+03:00",
                                "updated_at": "2018-07-01T21:11:24.749+03:00",
                                "name": "Ресурс2",
                                "measurable": false,
                                "unit_of_measure": "unit",
                                "application_template_name": "Auto provisioning",
                                "included": 0,
                                "minimum": 0,
                                "limit": 1,
                                "setup_fee": "1.0",
                                "recurring_fee": "100.0",
                                "overuse_fee": "0.0",
                                "renewal_fee": "4.0",
                                "unlimited_units": false,
                                "public": true,
                                "status": "active",
                                "resource_id": 9,
                                "custom_attributes": {
                                    "item_1c_id": "",
                                    "item_1c_for_resellers": "",
                                    "v_resource": ""
                                }
                            }
                        },
                        {
                            "id": "2158",
                            "type": "plan_resources",
                            "attributes": {
                                "created_at": "2017-08-30T11:59:43.331+03:00",
                                "updated_at": "2019-09-02T10:48:45.638+03:00",
                                "name": "Ресурс3",
                                "measurable": false,
                                "unit_of_measure": "unit",
                                "application_template_name": "Auto provisioning",
                                "included": 0,
                                "minimum": 1,
                                "limit": 0,
                                "setup_fee": "2.0",
                                "recurring_fee": "0.0",
                                "overuse_fee": "0.0",
                                "renewal_fee": "2.0",
                                "unlimited_units": true,
                                "public": true,
                                "status": "active",
                                "resource_id": 10,
                                "custom_attributes": {
                                    "item_1c_id": "3resGetCh",
                                    "item_1c_for_resellers": "3resGetChRes",
                                    "v_resource": "4"
                                }
                            }
                        }
                    ]
                },
                "plan_periods": {
                    "data": [
                        {
                            "id": "13",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:04:39.647+03:00",
                                "updated_at": "2019-07-29T13:30:47.430+03:00",
                                "duration_value": 3,
                                "duration_type": "day",
                                "setup_fee": "100.0",
                                "recurring_fee": "100.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "100.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "4",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T14:42:43.936+03:00",
                                "updated_at": "2018-10-10T19:42:29.988+03:00",
                                "duration_value": 1,
                                "duration_type": "month",
                                "setup_fee": "30.0",
                                "recurring_fee": "20.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "50.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "5",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T14:42:43.989+03:00",
                                "updated_at": "2016-12-29T12:22:48.546+03:00",
                                "duration_value": 5,
                                "duration_type": "day",
                                "setup_fee": "1.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "6.0",
                                "renewal_fee": "5.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "6",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T14:42:44.011+03:00",
                                "updated_at": "2017-01-10T16:48:24.259+03:00",
                                "duration_value": 12,
                                "duration_type": "month",
                                "setup_fee": "20.0",
                                "recurring_fee": "10.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "9",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:03:58.396+03:00",
                                "updated_at": "2017-01-16T17:28:28.537+03:00",
                                "duration_value": 1,
                                "duration_type": "day",
                                "setup_fee": "20.0",
                                "recurring_fee": "25.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "10",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:04:22.406+03:00",
                                "updated_at": "2016-12-29T12:22:49.651+03:00",
                                "duration_value": 2,
                                "duration_type": "day",
                                "setup_fee": "1.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "3.0",
                                "renewal_fee": "1.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "14",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:05:04.649+03:00",
                                "updated_at": "2016-12-29T12:22:50.466+03:00",
                                "duration_value": 4,
                                "duration_type": "day",
                                "setup_fee": "1.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "5.0",
                                "renewal_fee": "1.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "15",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:05:31.287+03:00",
                                "updated_at": "2018-01-01T23:25:53.219+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": ""
                            }
                        },
                        {
                            "id": "16",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:06:30.544+03:00",
                                "updated_at": "2016-12-29T12:22:50.879+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": "17",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:07:05.752+03:00",
                                "updated_at": "2016-12-29T12:22:51.079+03:00",
                                "duration_value": 2,
                                "duration_type": "year",
                                "setup_fee": "1.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "60.0",
                                "renewal_fee": "65.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "36",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:32:29.033+03:00",
                                "updated_at": "2017-01-13T11:21:08.465+03:00",
                                "duration_value": 3,
                                "duration_type": "year",
                                "setup_fee": "1.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "1.0",
                                "renewal_fee": "1.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "37",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-05T16:32:38.549+03:00",
                                "updated_at": "2016-12-29T12:22:54.923+03:00",
                                "duration_value": null,
                                "duration_type": null,
                                "setup_fee": "1.0",
                                "recurring_fee": "0.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "89",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-07T14:35:53.848+03:00",
                                "updated_at": "2016-12-29T12:23:04.647+03:00",
                                "duration_value": 4,
                                "duration_type": "month",
                                "setup_fee": "1.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "66.0",
                                "renewal_fee": "66.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "90",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2016-10-07T14:37:05.741+03:00",
                                "updated_at": "2016-11-30T12:14:19.695+03:00",
                                "duration_value": 5,
                                "duration_type": "month",
                                "setup_fee": "0.0",
                                "recurring_fee": "0.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": true,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        },
                        {
                            "id": "1452",
                            "type": "plan_periods",
                            "attributes": {
                                "created_at": "2017-10-13T16:50:12.167+03:00",
                                "updated_at": "2017-10-13T16:50:12.167+03:00",
                                "duration_value": 10,
                                "duration_type": "year",
                                "setup_fee": "0.0",
                                "recurring_fee": "1.0",
                                "transfer_fee": "0.0",
                                "renewal_fee": "0.0",
                                "trial": false,
                                "public": true,
                                "status": "active",
                                "description": ""
                            }
                        }
                    ]
                },
                "available_account_types": [
                    {
                        "id": 1,
                        "name": "Personal BLR",
                        "created_at": "2016-08-25T09:26:12.658+03:00",
                        "updated_at": "2019-05-08T07:21:42.843+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "personalblr",
                        "default_payment_method_id": 2,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 2,
                        "name": "Business BLR",
                        "created_at": "2016-08-25T09:26:12.674+03:00",
                        "updated_at": "2019-05-08T03:11:31.082+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "businessblr",
                        "default_payment_method_id": 197,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 12,
                        "name": "Business w/o НДС",
                        "created_at": "2016-10-25T08:16:28.789+03:00",
                        "updated_at": "2017-02-01T15:04:39.227+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business_wo_vat",
                        "default_payment_method_id": 197,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 512,
                        "name": "IP BLR",
                        "created_at": "2017-01-26T10:02:02.908+03:00",
                        "updated_at": "2017-02-01T17:25:58.465+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%last_name %first_name %middle_name",
                        "primary_name": "",
                        "key": "ip",
                        "default_payment_method_id": 197,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 651,
                        "name": "business w/o vat",
                        "created_at": "2017-01-31T15:58:27.121+03:00",
                        "updated_at": "2017-01-31T15:58:27.121+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%primary_name",
                        "primary_name": "",
                        "key": "business_no_vat",
                        "default_payment_method_id": null,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 1124,
                        "name": "Test1",
                        "created_at": "2017-02-02T18:08:39.408+03:00",
                        "updated_at": "2017-02-02T18:19:18.433+03:00",
                        "reseller_id": 1,
                        "name_pattern": "test1",
                        "primary_name": "",
                        "key": "test1",
                        "default_payment_method_id": null,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 1158,
                        "name": "Test2",
                        "created_at": "2017-02-02T18:08:57.298+03:00",
                        "updated_at": "2017-02-02T18:08:57.298+03:00",
                        "reseller_id": 1,
                        "name_pattern": "Test2",
                        "primary_name": "",
                        "key": "Test2",
                        "default_payment_method_id": null,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 1192,
                        "name": "test3",
                        "created_at": "2017-02-02T18:09:17.418+03:00",
                        "updated_at": "2019-01-04T16:56:34.724+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "test3",
                        "default_payment_method_id": 1325,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 1284,
                        "name": "test 8",
                        "created_at": "2017-02-03T10:42:43.517+03:00",
                        "updated_at": "2017-02-03T10:42:43.517+03:00",
                        "reseller_id": 1,
                        "name_pattern": "test8",
                        "primary_name": "",
                        "key": "test8",
                        "default_payment_method_id": null,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 1385,
                        "name": "Индивидуальный предприниматель",
                        "created_at": "2017-02-08T11:25:32.739+03:00",
                        "updated_at": "2017-02-08T15:25:04.689+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "key",
                        "default_payment_method_id": 2,
                        "ancestry": null,
                        "use_by_default": false
                    },
                    {
                        "id": 1564,
                        "name": "Физическое лицо",
                        "created_at": "2017-03-20T16:34:28.163+03:00",
                        "updated_at": "2017-03-20T16:34:28.163+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%first_name %middle_name %last_name",
                        "primary_name": "",
                        "key": "personal",
                        "default_payment_method_id": null,
                        "ancestry": "1562",
                        "use_by_default": false
                    },
                    {
                        "id": 1602,
                        "name": "Юридическое лицо",
                        "created_at": "2017-03-21T10:48:13.152+03:00",
                        "updated_at": "2017-03-21T10:48:13.152+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business",
                        "default_payment_method_id": null,
                        "ancestry": "1600",
                        "use_by_default": false
                    },
                    {
                        "id": 1930,
                        "name": "Business1",
                        "created_at": "2017-05-30T13:31:14.325+03:00",
                        "updated_at": "2017-05-30T13:31:14.325+03:00",
                        "reseller_id": 1,
                        "name_pattern": "%primary_name",
                        "primary_name": "Company name",
                        "key": "business1",
                        "default_payment_method_id": null,
                        "ancestry": "1900",
                        "use_by_default": false
                    }
                ],
                "custom_attributes": {
                    "item_1c_id": "Plan1cgetCH",
                    "item_1c_for_resellers": "",
                    "vat25": "0",
                    "attribute_2": "plannum",
                    "uniqueness": "PlanCH"
                }
            }
        }
    ],
    "links": {
        "self": "https://atest.activeplatform.com/api/v3/resellers/4/reseller_charges?filter%5Bsubscription_id%5D=76&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=2&page%5Bsize%5D=2",
        "first": "https://test.activeplatform.com/api/v3/resellers/4/reseller_charges?filter%5Bsubscription_id%5D=76&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=1&page%5Bsize%5D=2",
        "prev": "https://test.activeplatform.com/api/v3/resellers/4/reseller_charges?filter%5Bsubscription_id%5D=76&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=1&page%5Bsize%5D=2",
        "next": "https://test.activeplatform.com/api/v3/resellers/4/reseller_charges?filter%5Bsubscription_id%5D=76&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=3&page%5Bsize%5D=2",
        "last": "https://test.activeplatform.com/api/v3/resellers/4/reseller_charges?filter%5Bsubscription_id%5D=76&include=reseller%2Caccount%2Csubscription%2Cplan&page%5Bnumber%5D=6&page%5Bsize%5D=2"
    }
}