List invoices

Sales invoices with customer, dates, total and balance due, filtered by status.

GET https://cotlet.dev/api/v1/myob/invoices

read

Returns sales invoices, newest first. Status open means unpaid, closed means paid, credit means a negative sale, and overdue returns the open invoices past their due date, the same list as Sales > Invoices > Overdue in MYOB. Each item carries the balance due and the days overdue, so a script can sort without a second call. Pages hold up to 100 invoices.

Parameters

Parameters: list_invoices
NameTypeDescription
status enum enum all, open, overdue, closed or credit. Default: all.
customer_id string string Only invoices for this customer.
due_before date date Only invoices with a due date before this date.
limit integer integer 1 to 100. Default: 50.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/myob/invoices \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("myob", "list_invoices")
Node.js
const result = await cotlet.call('myob', 'list_invoices');
CLI
cotlet call myob list_invoices

Example response

JSON

{
  "invoices": [
    {
      "invoice_number": "00000139",
      "customer_id": "CUS000014",
      "customer": "Coast Hardware",
      "date": "2026-09-02",
      "due_date": "2026-09-16",
      "total": 1320,
      "balance_due": 1320,
      "status": "open",
      "days_overdue": 28
    }
  ],
  "next_cursor": null
}

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.