API version v1

Method reference

POST /projects/{id}/documents

Create a project document

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/documents" \
  -H "Authorization: Bearer rv_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: …" \
  -d '{
  "invoice_id": "00000000-0000-0000-0000-000000000000",
  "template_id": "string",
  "estimate_tab_id": "00000000-0000-0000-0000-000000000000",
  "firm_id": "00000000-0000-0000-0000-000000000000",
  "doc_type": "string",
  "amount": 0,
  "payment_date": "2026-10-01",
  "payload": "string"
}'

Parameters

ParameterTypeRequiredDescription
idstringyes—

Request body

FieldTypeRequiredDescription
invoice_idstringno—
template_idstringyes—
estimate_tab_idstringyes—
firm_idstringyes—
doc_typestringno—
amountnumbernoИгнорируется; итог берётся из вкладки сметы
payment_datestringno—
payloadstringnoJSON-строка; ключи снимка сметы не перезаписываются
{
  "invoice_id": "00000000-0000-0000-0000-000000000000",
  "template_id": "string",
  "estimate_tab_id": "00000000-0000-0000-0000-000000000000",
  "firm_id": "00000000-0000-0000-0000-000000000000",
  "doc_type": "string",
  "amount": 0,
  "payment_date": "2026-10-01",
  "payload": "string"
}

Response

{
  "success": true,
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "project_id": "00000000-0000-0000-0000-000000000000",
    "invoice_id": "00000000-0000-0000-0000-000000000000",
    "estimate_tab_id": "00000000-0000-0000-0000-000000000000",
    "firm_id": "00000000-0000-0000-0000-000000000000",
    "template_id": "string",
    "doc_type": "string",
    "amount": 0,
    "payment_date": "string",
    "status": "string",
    "file_path": "string",
    "created_at": "string",
    "updated_at": "string"
  }
}

Errors

CodeHTTPWhen
VALIDATION400Invalid request parameters
UNAUTHORIZED401Invalid, missing, revoked, or expired API key
FORBIDDEN403The key does not have the required scope
NextGenerate document PDF
Was this helpful?