Send customer statement

Email a customer statement as a PDF to one or more customers.

POST https://cotlet.dev/api/v1/myob/customer-statements

write Confirm

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

Parameters: send_customer_statement
NameTypeDescription
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
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"}'
Python
result = client.call("myob", "send_customer_statement", {"statement_type":"invoice","customer_ids":"customer ids"})
Node.js
const result = await cotlet.call('myob', 'send_customer_statement', {"statement_type":"invoice","customer_ids":"customer ids"});
CLI
cotlet call myob send_customer_statement --data '{"statement_type":"invoice","customer_ids":"customer ids"}'

Example response

JSON

{
  "statement_type": "invoice",
  "statement_date": "2026-10-14",
  "sent": [
    {
      "customer_id": "CUS000014",
      "sent_to": "accounts@coasthardware.example",
      "balance": 1320
    }
  ],
  "skipped": []
}

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.