Send invoice by email

Email an issued invoice to the buyer, with the invoice attached.

POST https://cotlet.dev/api/v1/ifirma/invoices/{invoice_id}/email

write Confirm

Sends one invoice to the buyer's address stored in the contractor record, or to recipient_email if you give one. The sender address and message template must be set in the account, otherwise iFirma uses its defaults. Sending an invoice by email without offline QR codes means it will not be entered into KSeF, so send to KSeF first. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_invoice_email
NameTypeDescription
invoice_id integer required integer Invoice ID from list_invoices.
recipient_email string string Default: the email on the contractor record.
message string string Text put before the standard message, up to 1000 characters.
include_transfer_details boolean boolean Add bank transfer payment information. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/ifirma/invoices/1/email \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("ifirma", "send_invoice_email", {"invoice_id":1})
Node.js
const result = await cotlet.call('ifirma', 'send_invoice_email', {"invoice_id":1});
CLI
cotlet call ifirma send_invoice_email --data '{"invoice_id":1}'

Example response

JSON

{
  "invoice_id": 7020118,
  "sent_to": "billing@bluefern.example",
  "sent": 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.