Skip to main content
GET
/
supplier-bills
/
{id}
/
efactura-pdf
Download e-Factura PDF
curl --request GET \
  --url https://api.contazen.ro/v1/supplier-bills/{id}/efactura-pdf \
  --header 'Authorization: Bearer <token>'
"<string>"

Overview

Streams the e-Factura PDF for this bill. The PDF is generated on demand the first time it is requested by sending the original SPV XML to the ANAF public validator (transformare/FACT1); the result is cached on disk and re-served on subsequent requests. Returns 404 with code: "efactura_not_available" when the bill has no associated SPV message (for example, manually created bills). The efactura_pdf_url field on the supplier bill object gives you a direct link to this endpoint.

Authorizations

Authorization
string
header
required

Use your API key (sk_live_xxx or sk_test_xxx)

Path Parameters

id
string
required

Response

PDF stream

The response is of type file.