Invoices
Get Invoice PDF
Return a short-lived presigned URL to download the invoice PDF. The PDF must already exist; otherwise a 404 is returned.
Authorization
bearerAuth AuthorizationBearer <token>
Use your secret API key as the bearer token
In: header
Path Parameters
id*string
Invoice ID
Match
^inv_[A-Za-z0-9]{22}$Response Body
application/json
application/json
application/json
curl -X GET "https://api.getlumen.dev/v1/invoices/string/pdf"{
"invoice": {
"id": "inv_c9MBd7QfJH5s2r4aLvXK",
"customerInvoiceNumber": "LO4XGG-001"
},
"pdfUrl": "https://s3.amazonaws.com/bucket/invoices/inv_c9MBd7QfJH5s2r4aLvXK.pdf?X-Amz-Signature=...",
"expiresIn": 900
}{
"error": "Invoice not found"
}{
"error": "Failed to get file info"
}