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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | — |
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
| Code | HTTP | When |
|---|---|---|
UNAUTHORIZED | 401 | Invalid, missing, revoked, or expired API key |
FORBIDDEN | 403 | The key does not have the required scope |
NOT_FOUND | 404 | Resource not found or does not belong to the key’s company |
Was this helpful?