Платежный аккаунт
GET/v1/billing/account
- Области доступа
billing:read
the tenant's billing plan (current effective version and prices) and availability of payment through the provider. No plan - configured=false; prices are never shown as a fact without a tariff.
Ответы
200BillingAccountView400401403404409412413415422428429503
Список счетов
GET/v1/billing/invoices
- Области доступа
billing:read
Параметры
| Поле | Тип | Обязательно |
|---|
cursorзапрос | string | нет |
|---|
limitзапрос | integer | нет |
|---|
statusзапрос | enum: issued, partially_paid, paid, overdue, cancelled | нет |
|---|
Ответы
200InvoiceList400401403404409412413415422428429503
Получить счет
GET/v1/billing/invoices/{invoice_id}
- Области доступа
billing:read
Параметры
| Поле | Тип | Обязательно |
|---|
invoice_idпуть | string (uuid) | да |
|---|
Ответы
200Invoice400401403404409412413415422428429503
Скачать счет
POST/v1/billing/invoices/{invoice_id}/document
- Области доступа
billing:read- Обязательный заголовок
Idempotency-Key
signed short-lived URL of the invoice PDF (same generator as reports). 409 bad_state while the document is being generated.
Параметры
| Поле | Тип | Обязательно |
|---|
invoice_idпуть | string (uuid) | да |
|---|
Ответы
200Download400401403404409412413415422428429503
Оплатить счет
POST/v1/billing/invoices/{invoice_id}/payments
- Области доступа
billing:pay
starts or resumes the online payment of the amount due through the payment provider (NerezPay). One active online payment per invoice: a repeated call returns the active payment and its URL. Disabled online payment - 503 capability_disabled with the reason.
Параметры
| Поле | Тип | Обязательно |
|---|
invoice_idпуть | string (uuid) | да |
|---|
Ответы
201InvoicePaymentStart400401403404409412413415422428429503