Get an invoice PDF

👍

Use the BILL v3 API

We recommend that you build all your integrations with the BILL v3 API. The BILL v2 API is currently in LTS (Long-Term Support) mode at BILL.

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.