Email invoice

Send a stamped invoice or credit note to the client by email.

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

write Confirm

Sends the document through Facturama's email to the address you give, or to the client's saved email when you give none. Fails with a not-found error when the ID does not exist. Calling it twice sends two emails. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: email_invoice
NameTypeDescription
invoice_id string required string Invoice ID from list_invoices or create_invoice.
emails array array Recipient addresses. Default: the email saved on the client.

Request

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

Example response

JSON

{
  "invoice_id": "Y61TLX-Ls_ZJFqzjanPN1w2",
  "sent_to": [
    "billing@estudionorte.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.