API /
Reference /
Invoice Payables
Generate document upload URL
POST
https://api.light.inc/v1/invoice-payables/{invoicePayableId}/document/upload-url
Generates a secure upload URL for invoice payable documents
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
Request body
application/json;charset=UTF-8
-
documentName
string
Original file name of the document.
-
contentType
string
MIME type of the uploaded document (e.g. application/pdf).
Response
-
uploadUrl
string · url
Pre-signed URL to which the invoice payable document can be uploaded.
-
headers
object
HTTP headers required when uploading the document to the pre-signed URL.