v1
latestOpenAPI 3.0.32026-07-268955212.1 KBinvoices
Create an invoice settlement
Create a settlement for the invoice that will reduce the outstanding amount of the invoice. A negative amount will increase the outstanding amount. For example, in the case of a currency gain.
📘 Settlement types that can be created in Bokio API
- currency
- bankFee
- paymentServiceFee
Scope: invoices:write
post/companies/{companyId}/invoices/{invoiceId}/settlements
Request body
Example request
{
"type": "bankFee",
"invoiceSettlementDetails": {
"date": "2024-10-15",
"sumBaseCurrency": 15.5
}
}Response
Settlement created successfully
Example response
{
"id": "c529df79-eb7f-5ef0-a8dc-c2b71f953554",
"invoiceId": "a419cf69-db6f-4de9-992c-b1a60942a443",
"type": "bankFee",
"invoiceSettlementDetails": {
"date": "2024-10-15",
"sumBaseCurrency": 15.5
},
"journalEntryRef": {
"id": "55c899c5-82b2-4a09-899e-9dc03342b5dc"
}
}