Get invoice document
GET
https://api.light.inc/v1/invoice-payables/{invoicePayableId}/document
Redirects to a temporary download link for the invoice payable's document. The link is valid for 30 minutes and can be opened by anyone who holds it; request a new one when you need the file.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
invoicePayableIdstring · uuidrequired
Query parameters
-
documentTypestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ORIGINALGENERATED
Response
application/pdfReturns a file (application/pdf) rather than JSON.