Get invoice PDF link

Get a download link for the invoice PDF.

GET https://cotlet.dev/api/v1/fatture-in-cloud/invoices/{invoice_id}/pdf

read

Returns a link to the invoice PDF. Fatture in Cloud changed its document download URLs for security reasons and they expire, so fetch the link right before you use it.

Parameters

Parameters: get_invoice_pdf
NameTypeDescription
company_id integer integer Company ID. Optional when your account has one company.
invoice_id integer required integer Invoice ID from list_invoices or create_invoice.

Request

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

Example response

JSON

{
  "invoice_id": 88120,
  "url": "https://files.example.com/invoice-14.pdf",
  "expires": true
}

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.