Invoices

Apply a late payment fee

Calculate and apply a late payment fee to an overdue or sent invoice. Uses the EU Late Payment Directive default rate of 8% per annum if amount is not specified. Can only be applied once per invoice.

post/v1/invoices/{invoiceId}/late-fee

Request

  • Base URL: https://api.frihet.io
  • URL: https://api.frihet.io/v1/invoices/{invoiceId}/late-fee
  • Auth: API key in header X-API-Key

Path parameters

invoiceIdstring required

Invoice unique identifier

Request body

amountnumber

Fixed fee amount. If omitted, auto-calculated at 8% p.a. on the invoice total.

daysOverdueinteger

Override the number of overdue days used for auto-calculation. Defaults to actual days past due date.

Example request

{
  "amount": 42.5,
  "daysOverdue": 30
}

Response

Late fee applied

successboolean
feeAmountnumber

Fee amount applied

invoiceIdstring
daysOverdueinteger

Example response

{
  "success": true,
  "feeAmount": 42.5,
  "invoiceId": "abc123def456",
  "daysOverdue": 30
}

Changes

No recorded changes to this operation across all 1 revision of this API.