Получение информации о реселлер-Списании Реселлера по ID
Метод Get the Reseller's Charge by ID позволяет получить информацию о реселлер-Списании для текущего Реселлера или любого из его нижестоящих Реселлеров.
Доступ к текущему Реселлеру, относительно которого формируется список нижестоящих Реселлеров, определяется по токену Сотрудника, указанному в заголовке запроса.
GET {base_url}/api/v3/resellers/{reseller_id}/reseller_charges/{charge_id}
Аргументы
Название | Тип параметра | Тип данных | Обязательный/ | Описание | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
X-Api-Token | header | string | Обязательный | API токен Сотрудника, выполняющего операцию (см. Просмотр и обновление информации о сотруднике) | ||||||||||
Content-Type | header | string | Обязательный | Предназначен для идентификации формата и способа представления сущности | ||||||||||
Accept | header | string | Обязательный | Предназначен для информирования сервера о типах данных, которые поддерживаются клиентом (браузером) | ||||||||||
reseller_id | path | integer | Обязательный | ID Реселлера. Возможно указать ID текущего Реселлера или ID любого из его нижестоящих Реселлеров (см. Просмотр информации о реселлере) | ||||||||||
charge_id | path | integer | Обязательный | ID Списания | ||||||||||
include | query | string | Опциональный | Предназначен для включения в ответ дополнительной информации о связанных объектах. Для получения информации о нескольких объектах значения параметра должны перечисляться через запятую. Поддерживаются следующие объекты:
|
Модель ответа
Название | Тип данных | Описание | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | array | Данные ответа | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id | integer | ID Списания | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Тип данных | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
attributes | object | Информация о Списании | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
created_at | date | Дата и время создания Списания | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updated_at | date | Дата и время последнего изменения Списания | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
charge_id | integer |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subscription_id | integer | ID клиентской Подписки | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
unit_price | float | Стоимость единицы Ресурса или Услуги у выбранного Реселлера | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
amount | float | Общая сумма Списания (с учетом Скидки) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
net_cost | float | Себестоимость Списания для выбранного Реселлера | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subscription_resource_id | integer | ID Ресурса в клиентской Подписке | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subscription_resource_name | string | Имя Ресурса в Подписке, которая была заказана Клиентом | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
plan_resource_id | integer | ID Ресурса в Тарифном плане, который был заказан Клиентом | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
resource_id | integer | ID Ресурса | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quantity | integer | Количество заказанных единиц Услуги или Ресурса | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
operate_from | date | Дата начала периода, оплаченного Списанием | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
operate_to | date | Дата окончания периода, оплаченного Списанием | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
duration | float | Период Списания, измеряемый в месяцах. Например, период 1 день = 0.033, 2 года = 24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | string | Подробное описание Списания | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | string | Тип Списания (см. также Атрибуты списаний):
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
order_id | integer | ID Заказа, по которому произведено Списание | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
discount | float | Размер Скидки для данного Списания | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
relationships | array | Перечень объектов, связанных со Списанием | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reseller | array | Информация о Реселлере | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
account | array | Информация о Клиенте | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
subscription | array | Информация о Подписке | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
plan | array | Информация о Тарифном плане | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
manager | array | Информация о Менеджере | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
plan_resource | array | Информация о Ресурсе | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
discount | array | Информация о Скидке | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
data | array | Информация о связанном объекте:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
included | array | Дополнительная информация о связанных объектах, указанных в запросе:
Атрибуты:
|
Пример запроса
GET /api/v3/resellers/4/reseller_charges/235?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": "235",
"type": "reseller_charges",
"attributes": {
"created_at": "2016-12-25T01:02:12.400+03:00",
"updated_at": "2016-12-25T01:02:12.400+03:00",
"charge_id": 251,
"subscription_id": 75,
"unit_price": "11.0",
"amount": "34.06",
"net_cost": null,
"subscription_resource_id": 473,
"subscription_resource_name": "Resource 3",
"plan_resource_id": 615,
"resource_id": 10,
"quantity": 4.0,
"operate_from": "2016-12-01",
"operate_to": "2016-12-24",
"duration": 0.774,
"description": "Upgrade resource (recurring fee) \"Resource 3\" 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": "615",
"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"
}
}
}
]
}