Skip to main content
POST
/
v1
/
invoice-payables
/
{invoicePayableId}
/
document
/
upload-url
Generate document upload URL
curl --request POST \
  --url https://api.light.inc/v1/invoice-payables/{invoicePayableId}/document/upload-url \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json;charset=UTF-8' \
  --data '
{
  "documentName": "<string>",
  "contentType": "<string>"
}
'
{
  "uploadUrl": "<string>",
  "headers": {}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.

Path Parameters

invoicePayableId
string<uuid>
required

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

default - application/json;charset=UTF-8

default 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.