Get invoice PDF

Download link for the PDF of a booked invoice.

GET https://cotlet.dev/api/v1/e-conomic/invoices/{invoice_number}/pdf

read

Returns the PDF of a booked invoice as a download link that works for a short time. The PDF is the one e-conomic produces for the invoice, with its layout.

Parameters

Parameters: get_invoice_pdf
NameTypeDescription
invoice_number integer required integer Booked invoice number from list_unpaid_invoices.

Request

cURL
curl https://cotlet.dev/api/v1/e-conomic/invoices/1/pdf \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("e-conomic", "get_invoice_pdf", {"invoice_number":1})
Node.js
const result = await cotlet.call('e-conomic', 'get_invoice_pdf', {"invoice_number":1});
CLI
cotlet call e-conomic get_invoice_pdf --data '{"invoice_number":1}'

Example response

JSON

{
  "invoice_number": 1038,
  "pdf_url": "https://files.cotlet.dev/e-conomic/invoice-1038.pdf",
  "expires_in_seconds": 900
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.