API version v1

Method reference

POST /documents/{id}/pdf

Generate document PDF

Scope: invoices:write

Authenticate with Authorization: Bearer rv_live_…; see authentication.

Request

curl -X POST "https://api.rentevio.ru/api/public/v1/documents/00000000-0000-0000-0000-000000000000/pdf" \
  -H "Authorization: Bearer rv_live_…"

Parameters

ParameterTypeRequiredDescription
idstringyes—

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
UNAUTHORIZED401Invalid, missing, revoked, or expired API key
FORBIDDEN403The key does not have the required scope
NOT_FOUND404Resource not found or does not belong to the key’s company
NextList contacts (clients)
Was this helpful?