Record bill payment

Record a payment to a supplier against one or more open bills.

POST https://cotlet.dev/api/v1/myob/suppliers/{supplier_id}/bill-payments

write Confirm

Records the payment as Purchases > Record supplier payment does and returns the amount applied to each bill with its new balance. It pays from a bank account and does not select Electronic payment, so MYOB sends no money to the supplier. Set send_remittance to email a remittance advice now. An amount above the open bills makes MYOB create a debit note. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: record_bill_payment
NameTypeDescription
supplier_id string required string Supplier card ID, e.g. SUP000004.
bank_account string required string Account code from list_bank_accounts, the account the money came in to or goes out of.
date date date Payment date. Default: today.
payments array required array Objects with bill_number, amount and optional discount. Start with the oldest bill.
send_remittance boolean boolean Email a remittance advice now. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/myob/suppliers/supplier_8c41d2/bill-payments \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bank_account":"bank account","payments":"payments"}'
Python
result = client.call("myob", "record_bill_payment", {"supplier_id":"supplier_8c41d2","bank_account":"bank account","payments":"payments"})
Node.js
const result = await cotlet.call('myob', 'record_bill_payment', {"supplier_id":"supplier_8c41d2","bank_account":"bank account","payments":"payments"});
CLI
cotlet call myob record_bill_payment --data '{"supplier_id":"supplier_8c41d2","bank_account":"bank account","payments":"payments"}'

Example response

JSON

{
  "payment_reference": "00000044",
  "supplier_id": "SUP000004",
  "bank_account": "1-1110",
  "date": "2026-10-14",
  "amount_paid": 2200,
  "applied": [
    {
      "bill_number": "00000311",
      "amount": 2200,
      "balance_due": 0,
      "status": "closed"
    }
  ],
  "remittance_sent": false
}

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.