Record invoice payment

Register and book a customer payment on an invoice.

POST https://cotlet.dev/api/v1/bokio/invoices/{invoice_id}/payment

write Confirm

Registers a payment with its date and amount on the account you name and books it, which clears the receivable. An amount below the total leaves the invoice open as a partial payment. It changes the books and the invoice status. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: record_invoice_payment
NameTypeDescription
invoice_id string required string Invoice ID from list_invoices or create_invoice.
date string required string Date the money arrived, YYYY-MM-DD.
amount number required number Amount paid, in the company's base currency.
account string required string Bookkeeping account the payment went to, for example 1930.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/bokio/invoices/f2d84b1a-6c30-4e97-8a5b-1d9c7e3a40b2/payment \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"2026-10-13","amount":13125,"account":"1930"}'
Python
result = client.call("bokio", "record_invoice_payment", {"invoice_id":"f2d84b1a-6c30-4e97-8a5b-1d9c7e3a40b2","date":"2026-10-13","amount":13125,"account":"1930"})
Node.js
const result = await cotlet.call('bokio', 'record_invoice_payment', {"invoice_id":"f2d84b1a-6c30-4e97-8a5b-1d9c7e3a40b2","date":"2026-10-13","amount":13125,"account":"1930"});
CLI
cotlet call bokio record_invoice_payment --data '{"invoice_id":"f2d84b1a-6c30-4e97-8a5b-1d9c7e3a40b2","date":"2026-10-13","amount":13125,"account":"1930"}'

Example response

JSON

{
  "invoice_id": "f2d84b1a-6c30-4e97-8a5b-1d9c7e3a40b2",
  "payment_id": "a8e2c5f1-9d40-4b73-b6a2-0c7f3d18e594",
  "amount": 13125,
  "date": "2026-10-13",
  "account": "1930",
  "booked": true,
  "invoice_status": "paid",
  "paid_amount": 13125
}

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.