Методы для управления тарифным планом организации.
Возвращает текущий тарифный план организации и оставшееся время.
{
"status": true,
"message": "Company pricing plan retrieved successfully",
"data": {
"is_trial": true,
"expires_at": "2026-07-14T00:00:00Z",
"days_left": 30,
"days_total": 90,
"current_plan": {
"code": "stoic",
"name": "Стоик",
"lvl": 1,
"price_per_month": 4800,
"price_per_year": 51840,
"price_currency": "RUB",
"description": "Полный функционал.",
"limit_db_mb": 300,
"limit_objects_mb": 700,
"limit_objects_count": 5000,
"created_at": "2026-04-24T00:17:05Z",
"updated_at": "2026-05-24T15:28:33Z"
}
},
"meta": {
"timestamp": "2026-06-14T00:00:00Z",
"request_id": "...",
"path": "/api/v1/companies/.../pricing",
"method": "GET"
}
}Меняет тарифный план организации. Средства за неиспользованный период не возвращаются.
{
"status": true,
"message": "Payment initiated successfully",
"data": {
"transaction": {
"id": "880e8400-e29b-41d4-a716-446655440070",
"company_id": "660e8400-e29b-41d4-a716-446655440020",
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"amount": 4800,
"currency": "RUB",
"status": "pending",
"plan_code": "stoic",
"is_trial": false,
"next_plan_code": null,
"expires_at": "2026-07-14T00:00:00Z",
"created_at": "2026-06-14T12:00:00Z",
"updated_at": "2026-06-14T12:00:00Z"
},
"payment_page_url": "https://securepay.tinkoff.ru/pay/xxx",
"payment_id": "1234567890"
},
"meta": {
"timestamp": "2026-06-14T12:00:00Z",
"request_id": "...",
"path": "/api/v1/companies/.../pricing/migrate",
"method": "POST"
}
}Возвращает историю биллинговых транзакций организации.
{
"status": true,
"message": "Pricing transactions retrieved successfully",
"data": {
"transactions": [
{
"id": "880e8400-e29b-41d4-a716-446655440070",
"company_id": "660e8400-e29b-41d4-a716-446655440020",
"account_id": "550e8400-e29b-41d4-a716-446655440001",
"amount": 4800,
"currency": "RUB",
"status": "success",
"plan_code": "stoic",
"is_trial": false,
"next_plan_code": null,
"expires_at": "2026-07-14T00:00:00Z",
"created_at": "2026-06-14T12:00:00Z",
"updated_at": "2026-06-14T12:00:00Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"limit": 20,
"pages": 1
}
},
"meta": {
"timestamp": "2026-06-14T12:00:00Z",
"request_id": "...",
"path": "/api/v1/companies/.../pricing/transactions",
"method": "GET"
}
}Отменяет биллинговую транзакцию.
{
"status": true,
"message": "Transaction revoked successfully",
"data": {},
"meta": {
"timestamp": "2026-06-14T12:05:00Z",
"request_id": "...",
"path": "/api/v1/companies/.../pricing/transactions/.../revoke",
"method": "POST"
}
}