Credit note lifecycle (accounts payable)
Overview
Each credit note is allocated with a status that indicates its progress throughout the credit note lifecycle, from its creation until its application.

Credit note statuses
Check out below a detailed explanation of the credit note statuses and the credit note approval process:
Draft
Status value: draft
This is the initial status for all uploaded credit notes that have any of the required fields set as null during their creation. The required fields are:
currencydocument_idissued_atbased_ontax_amounttotal_amountsubtotal
A draft credit note is not approved yet and can still be edited.
Only one draft credit note can exist per payable. Before you can create the second draft credit note for the same payable, you need to apply (or delete) the previous draft credit note.
Customize the list of required fields
You can change and customize the list of required fields that are necessary to move a credit note to the new state by sending a PUT request to the /payable_credit_notes/validations endpoint passing the new list of required fields as an array of strings:
The successful 200 response returns the new list of required fields:
- A successful request overwrites the existing list of required fields and replaces them with the newly defined array of required fields.
- If a composed field is specified, e.g.
line_items, a minimum of one item will be required. - It is possible to specify fields of different levels, e.g.
line_items.subtotal. - If the custom required fields list is not specified, the default validation is applied.
- To list the current required fields, send a
GETrequest to the/payable_credit_notes/validationsendpoint. - To remove the custom required fields and return the validation to the default one, send a
POSTrequest to the/payable_credit_notes/validations/resetendpoint. The default behavior will be applied to the future payables created. - Credit notes that have already passed the
newstatus will not be affected by newly updated required fields.
Validate mandatory fields
To understand what information is missing to move a credit note from draft to the new state, send a POST request to the /payable_credit_notes/{credit_note_id}/validate endpoint:
The successful 200 response returns the fields that need to be filled for the transition:
New
Status value: new
If the credit note already contains all essential fields (currency, document_id, issued_at, based_on, tax_amount, total_amount, and subtotal), its initial status is directly set to new.
Only credit notes in the new status can be sent for approval. To do this, call POST /payable_credit_notes/{credit_note_id}/submit_for_approval:
The successful response indicates that the status of the credit note has changed to approve_in_progress. Once the credito note is sent for approval, it cannot be updated anymore.
The entity users can also directly approve the credit note from the new status.
Canceled
Status value: canceled
The canceled credit notes are the ones that were not validated during the entity user review.
For example, if the entity user uploads the wrong file or the document is not compliant with regulations, this credit note can be canceled before being sent for approval.
To cancel a credit note, call POST /payable_credit_notes/{credit_note_id}/cancel:
There is no possible status change when a credit note is canceled.
Approve in progress
Status value: approve_in_progress
After the initial validation, the credit note is ready to be approved by an entity user. To do this, call POST /payable_credit_notes/{credit_note_id}/approve:
Rejected
Status value: rejected
The credit notes that are refused during the approve_in_progress status. By adding a reason for the refusal, the entity user who uploaded the payable knows what went wrong. To do this, call POST /payable_credit_notes/{credit_note_id}/reject:
There is no possible status change when a credit note is rejected.
Approved
Status value: approved
This status indicates that the credit note has been approved by all the required approvers and is ready to be applied.
Applied
Status value: applied
Entity users can access all applied credit notes to view any details and export these documents for accounting reasons.