Record write-off
This endpoint records a write-off of an invoice in Layer.
Rate Limiting
This endpoint has a custom rate limit policy. Rate Limit Details:| Environment | Limit | Refill Period | Initial Size |
|---|---|---|---|
| Sandbox | 5 requests | 1 second | 5 requests |
| Production | 25 requests | 1 second | 25 requests |
- X-RateLimit-Limit: The rate limit bucket capacity
- X-RateLimit-Remaining: The number of tokens remaining in the bucket
- X-RateLimit-Reset: UTC timestamp (in seconds) when the bucket will be refilled
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type must be set to application/json.
Path Parameters
The UUID of the business the invoice is associated with.
The UUID of the invoice the write-off is applied to.
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-specified memo indicating the reason for the write-off. Recommended but not required.
Expense or contra-revenue 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.
- Account ID
- Account Stable Name
Timestamp when the write off should be recognized in the general ledger.