Documents available in PDF format via API
· One min read
Today we have introduced 5 new endpoints to provide documents in PDF format:
- Order in PDF
/api/orders/{code}/pdf - Invoice in PDF
/api/invoices/{code}/pdf - Proforma Invoice in PDF
/api/proforma-invoices/{code}/pdf - Credit Note in PDF
/api/credit-notes/{code}/pdf - Delivery Note in PDF
/api/delivery-notes/{code}/pdf
The endpoints are slightly different to the others – in case the call is successfull (200 OK), the response is the PDF file in binary format (Content-type: application/octet-stream). In case of an error, the response is a common JSON response with an error description.
Before calling this endpoint, the document must already exist – it means it has been already generated via a status change or manually.