Modules
Credit and Debit Notes
Credit notes and debit notes on issued invoices.
Overview
Requires the Credit notes or Debit notes module. A note always refers to an issued invoice and takes its number from its series when issued. A credit note lowers what the invoice owes (on a paid invoice the excess goes to the customer wallet); a debit note adds a charge. With the Fiscal module on, issued notes can also be issued as official tax documents.
Endpoints
| Method | Path | Permission | Description |
|---|---|---|---|
GET | /v1/credit-notes | read | List notes (invoice_id, customer_id, status) |
POST | /v1/credit-notes | write | Create and issue a note (issue: false keeps a draft) |
GET | /v1/credit-notes/{id} | read | Retrieve a note with its lines |
POST | /v1/credit-notes/{id}/issue | write | Issue a draft (optional series_id) |
POST | /v1/credit-notes/{id}/void | admin | Void an issued note |
Debit notes have the same endpoints under /v1/debit-notes.
Create a Credit Note
- Credit reasons:
return,discount,error,other. Debit reasons:additional_charge,interest,error,other - Line prices are before tax, like invoice lines; the note uses the tax rate of the invoice
- With
invoice_item_ida credit note cannot credit more than what is left of that line return_to_stock(credit notes, Inventory module) puts the products back in the warehouse of the sale- A credit note whose wallet balance was already used cannot be voided
- Events:
credit_note.issued,credit_note.voided,debit_note.issued,debit_note.voided