API version v1
Method reference
POST /projects/{id}/invoices
Create an invoice from the estimate
Scope: invoices:write
Authenticate with Authorization: Bearer rv_live_…; see authentication.
Request
curl -X POST "https://api.rentevio.ru/api/public/v1/projects/00000000-0000-0000-0000-000000000000/invoices" \
-H "Authorization: Bearer rv_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: …" \
-d '{
"estimate_tab_id": "00000000-0000-0000-0000-000000000000",
"client_id": "00000000-0000-0000-0000-000000000000",
"firm_id": "00000000-0000-0000-0000-000000000000",
"counterparty_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2026-10-01",
"currency": "RUB",
"notes": "string"
}'
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | — |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
estimate_tab_id | string | yes | — |
client_id | string | no | — |
firm_id | string | no | — |
counterparty_id | string | no | — |
due_date | string | no | — |
currency | string | no | — |
notes | string | no | — |
{
"estimate_tab_id": "00000000-0000-0000-0000-000000000000",
"client_id": "00000000-0000-0000-0000-000000000000",
"firm_id": "00000000-0000-0000-0000-000000000000",
"counterparty_id": "00000000-0000-0000-0000-000000000000",
"due_date": "2026-10-01",
"currency": "RUB",
"notes": "string"
}
Response
{
"success": true,
"data": {
"id": "7c1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8",
"project_id": "4fb49e36-d48d-419a-a13c-a805a5f02b8e",
"estimate_tab_id": "",
"number": "INV-2026-0042",
"issue_date": "2026-11-01",
"due_date": "2026-11-15",
"client_id": "",
"firm_id": "",
"counterparty_id": "",
"total_amount": 48000,
"tax_amount": 8000,
"amount_paid": 48000,
"status": "paid",
"currency": "RUB",
"notes": "",
"items": [],
"created_at": "2026-11-01T10:00:00Z",
"updated_at": "2026-11-05T12:00:00Z"
}
}
Errors
| Code | HTTP | When |
|---|---|---|
VALIDATION | 400 | Invalid request parameters |
UNAUTHORIZED | 401 | Invalid, missing, revoked, or expired API key |
FORBIDDEN | 403 | The key does not have the required scope |
Was this helpful?