Send invoice

Email an invoice to the customer with the PDF attached.

POST https://cotlet.dev/api/v1/myob/invoices/{invoice_number}

write Confirm

Sends the invoice from the Share menu, Email invoice, to the address on the customer card unless you pass to. Attachments total up to 25MB. If the customer has no email address and you pass none, the call fails and sends nothing. The invoice then shows Emailed in its activity history. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_invoice
NameTypeDescription
invoice_number string required string Invoice number from list_invoices or create_invoice.
to array array Email addresses. Default: the address on the customer card.
cc array array Email addresses to copy.
subject string string Subject line. Default: the MYOB email default.
message string string Message text. Default: the MYOB email default.
email_me_a_copy boolean boolean Send yourself a copy the customer cannot see. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/myob/invoices/invoice%20number \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("myob", "send_invoice", {"invoice_number":"invoice number"})
Node.js
const result = await cotlet.call('myob', 'send_invoice', {"invoice_number":"invoice number"});
CLI
cotlet call myob send_invoice --data '{"invoice_number":"invoice number"}'

Example response

JSON

{
  "invoice_number": "00000142",
  "sent_to": [
    "accounts@harbourcafe.example"
  ],
  "cc": [],
  "attached_pdf": true,
  "status": "emailed",
  "sent_at": "2026-10-14T09:12:00+11:00"
}

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.