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
| Name | Type | Description |
|---|---|---|
| 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 -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}' result = client.call("fakturownia", "record_payment", {"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":True}) const result = await cotlet.call('fakturownia', 'record_payment', {"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":true}); cotlet call fakturownia record_payment --data '{"name":"Transfer 2026-10-14 Blue Fern Studio","price":1230,"invoice_ids":[5120],"paid":true}' Example response
{
"id": 9040,
"name": "Transfer 2026-10-14 Blue Fern Studio",
"price": "1230.00",
"paid": true,
"invoice_ids": [
5120
]
}