This guide covers credit notes for accounts payable. Monite also supports credit notes for accounts receivable.
Overview
There are two ways to create a credit note:- Create a credit note via API by providing the amount, currency, and other details.
- Upload a credit note in PDF, PNG, or JPEG formats via API.
Automatically link credit notes with payables
You can configure Monite to automatically link credit notes which have a payable reference to the appropriate payable during the credit note creation based on the following criteria:- The field
based_on_document_idof the credit note must be equal to thedocument_idof the payable. - The payable needs to be under
waiting_to_be_paid,partially_paid, orpaidstatuses. - The payable must not be linked to any other credit note.
- Both credit note and payable must have the same value for the
counterpart_idfield.
based_on_document_id corresponds to multiple payables with the same document_id and counterpart_id, the credit note is created but not auto-linked to any payable.
To enable this feature, send a PATCH request to the /settings endpoint, setting the payable.allow_credit_note_autolinking field to true:
Roles and permissions
To create and manage credit notes using an entity user token, this entity user must have a role with thepayables permission.
If a partner-level token is used, no special permissions are needed.
Create a credit note from data
To create a new credit note, callPOST /payable_credit_notes:
Requirements and considerations
- The fields
document_id,issued_at, andtotal_amountare mandatory. - The
issued_atfield cannot be a future date. - All the amount fields in the credit notes and line items must be greater than 0, except the
total_amountfield, which is optional. - A credit note cannot be linked to a canceled payable.
Upload files via API
You can upload credit notes in the PDF, PNG, or JPG format to Monite by callingPOST /payable_credit_notes/upload_from_file. The maximum file size is 10 MB:
processing.
To cancel the OCR process, call POST /payable_credit_notes/{id}/cancel_ocr. The credit note status will be changed to canceled.
When the OCR scanning is finished (this might take up to 5-7 minutes), you will receive the credit_note.ocr_finished webhook event.
Change credit note status
You can manually change the status of the credit notes and move them through the lifecycle until their application. See the credit notes lifecycle for more information. Alternatively, we recommend that you implement approval policies to manage the credit notes transitions.List all credit notes
To list all credit notes, callGET /payable_credit_notes. You can sort and filter the results by the amount, status, and other fields. For the full list of available sort and filter parameters, see the GET /payable_credit_notes endpoint:
data array in the response contains a list of related credit notes, if any:
Find all credit notes of a payable
To check if there are credit notes linked to a specific payable, callGET /payable_credit_notes?based_on={payable_id}:
Update a credit note
Credit notes in thedraft and new statuses can be updated, for example, to provide additional details or fix the information extracted by OCR. To update a credit note, call PATCH /payable_credit_notes/{payable_credit_notes_id} with the request body containing the new field values. For example, to update the description field:
Delete a credit note
Credit notes in any status can be deleted by calling theDELETE /payable_credit_notes/{payable_credit_notes_id} endpoint:
This action is irreversible, and once deleted, credit notes can no longer be accessed.