Download an invoice PDF from a public link
curl --request GET \
--url https://my.server.express/api/v1/public/invoices/{token}/pdfconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/public/invoices/{token}/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/public/invoices/{token}/pdf"
response = requests.get(url)
print(response.text)"<string>"{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Public Invoices
Download an invoice PDF from a public link
The invoice as a PDF, served inline as invoice-<number>.pdf. Same trust model as the JSON view: the token is the authorisation, and unknown tokens or DRAFT invoices are 404.
GET
/
v1
/
public
/
invoices
/
{token}
/
pdf
Download an invoice PDF from a public link
curl --request GET \
--url https://my.server.express/api/v1/public/invoices/{token}/pdfconst options = {method: 'GET'};
fetch('https://my.server.express/api/v1/public/invoices/{token}/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/public/invoices/{token}/pdf"
response = requests.get(url)
print(response.text)"<string>"{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Path Parameters
The invoice's public token from its shareable link. At least 16 characters.
Minimum string length:
16Response
The PDF.
The response is of type file.