Get an invoice PDF

You can download the PDF version of a specified invoice with GET /Invoice2PdfServlet.

Request parameters

The sessionId is required as a header parameter. In addition, there are two query parameters in your GET /Invoice2PdfServlet request.

Field nameDescription
IdBILL-generated ID of the invoice. The value begins with 00e.
PresentationTypeInvoice document type. Set as PDF.

Sample request

In your request, set Id and PresentationType.

curl --request GET \
--url 'https://api-stage.bill.com/Invoice2PdfServlet?Id={invoice_id}&PresentationType=PDF' \
--header 'sessionId: {session_id}'

In the response, the PDF version of the invoice is available for download.