Get invoice
One sales invoice with lines, tax, payments applied and activity history.
GET https://cotlet.dev/api/v1/myob/invoices/{invoice_number}
read
Returns one invoice with every line, the tax, the balance due and the payments already applied. The activity history shows whether it was emailed and when the customer opened the email. Read it before record_invoice_payment so a short payment is not mistaken for a full one.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_number string required | string | Invoice number from list_invoices or create_invoice. |
Request
curl https://cotlet.dev/api/v1/myob/invoices/invoice%20number \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("myob", "get_invoice", {"invoice_number":"invoice number"}) const result = await cotlet.call('myob', 'get_invoice', {"invoice_number":"invoice number"}); cotlet call myob get_invoice --data '{"invoice_number":"invoice number"}' Example response
{
"invoice_number": "00000139",
"customer_id": "CUS000014",
"customer": "Coast Hardware",
"status": "open",
"date": "2026-09-02",
"due_date": "2026-09-16",
"lines": [
{
"description": "Shopfront signage",
"quantity": 1,
"amount": 1200,
"tax_code": "GST"
}
],
"subtotal": 1200,
"tax": 120,
"total": 1320,
"payments_applied": [],
"balance_due": 1320,
"activity": [
"Emailed 2026-09-02",
"Viewed by customer 2026-09-03"
]
}