Record payment

Record a payment and attach it to one or more invoices.

POST https://cotlet.dev/api/v1/fakturownia/payments

write Confirm

Adds a payment and links it to the invoices in invoice_ids, which are paid in the order given: the first in full, the next with what is left. Fakturownia then sets paid or partial. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: record_payment
NameTypeDescription
name string required string Payment name, for example the transfer title.
price number required number Amount received.
invoice_ids array required array Invoice IDs from list_invoices, paid in this order.
paid boolean boolean Default: true.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/fakturownia/payments \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":true}'
Python
result = client.call("fakturownia", "record_payment", {"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":True})
Node.js
const result = await cotlet.call('fakturownia', 'record_payment', {"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":true});
CLI
cotlet call fakturownia record_payment --data '{"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":true}'

Example response

JSON

{
  "id": 9040,
  "name": "Transfer 2026-10-14 Blue Fern Studio",
  "price": "1230.00",
  "paid": true,
  "invoice_ids": [
    5120
  ]
}

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.