Invoices
Generate an invoice PDF
Returns the rendered PDF for an invoice as a binary application/pdf response. If a custom PDF has been uploaded for the invoice, it is served directly, otherwise the standard template is rendered on demand.
GET
/
invoices
/
{id}
/
pdf
Generate an invoice PDF
curl --request GET \
--url https://api.alguna.io/invoices/{id}/pdf \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.alguna.io/invoices/{id}/pdf"
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Alguna-Version': '<alguna-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.alguna.io/invoices/{id}/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}⌘I
Generate an invoice PDF
curl --request GET \
--url https://api.alguna.io/invoices/{id}/pdf \
--header 'Alguna-Version: <alguna-version>' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.alguna.io/invoices/{id}/pdf"
headers = {
"Alguna-Version": "<alguna-version>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Alguna-Version': '<alguna-version>', Authorization: 'Bearer <token>'}
};
fetch('https://api.alguna.io/invoices/{id}/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}{
"detail": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"title": "<string>",
"type": "<string>"
}