Record an Invoice Write-Off
This endpoint records a write-off of an invoice in Layer.
Path Parameters
Body
Unique ID of the write-off in your system for linking and idempotency.
The amount written off. This amount counts towards the invoice total and decreases the outstanding balance of the invoice.
The amount is optional if omitted, default to the entire outstanding balance of the invoice.
If specified, the amount must be a positive value and cannot exceed the current outstanding balance of the invoice.
User-specifiable memo indicating the reason for the write-off. Recommended but not required.
Expense account where write off amount is recorded. See AccountIdentifier for more details.
This field is optional and defaults to the bad debt expense account.
If the write-off is for a different reason, such as a charitable donation, a different ledger expense account can be specified here.
Timestamp when the write off should be recognized in the general ledger. This can be the same time as the invoice was created if it is an intentional charitable contribution or it could be months after the invoice is issued when that invoice is deemed uncollectible.
Response
Returns the created Invoice Write-Off