Send customer statement
Email a customer statement as a PDF to one or more customers.
POST https://cotlet.dev/api/v1/myob/customer-statements
Sends statements the way Sales > Customer statements does. Type invoice lists unpaid invoices as at the statement date; type activity lists invoices and payments between two dates with a running balance. Customers with a zero balance are left out unless include_zero is true. The text is free text only, with no email variables. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| statement_type enum required | enum | invoice or activity. |
| statement_date date | date | For type invoice. Default: today. |
| from date | date | For type activity: first day. |
| to date | date | For type activity: last day. |
| customer_ids array required | array | Customer IDs from list_customers. |
| include_zero boolean | boolean | Include customers with a zero balance. Default: false. |
| message string | string | Email text. Default: the MYOB email default. |
Request
curl -X POST https://cotlet.dev/api/v1/myob/customer-statements \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"statement_type":"invoice","customer_ids":"customer ids"}' result = client.call("myob", "send_customer_statement", {"statement_type":"invoice","customer_ids":"customer ids"}) const result = await cotlet.call('myob', 'send_customer_statement', {"statement_type":"invoice","customer_ids":"customer ids"}); cotlet call myob send_customer_statement --data '{"statement_type":"invoice","customer_ids":"customer ids"}' Example response
{
"statement_type": "invoice",
"statement_date": "2026-10-14",
"sent": [
{
"customer_id": "CUS000014",
"sent_to": "accounts@coasthardware.example",
"balance": 1320
}
],
"skipped": []
}