Manage credit notes
Learn how to manage your credit notes.
Roles and permissions
To create and manage credit notes using an entity user token, this entity user must have a role with the payables
permission.
If a partner-level token is used, no special permissions are needed.
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.
Create a credit note
To create a new credit note, call POST /payable_credit_notes
. You can provide the base64-encoded contents of the original invoice file in the field base64_encoded_file
:
Requirements and considerations
- The fields
payable_id
,document_id
,issued_at
, andamount
are mandatory. - The
issued_at
field cannot be a future date. - The
issued_at
must be after or equal to the payables’sissued_at
. - All the amount fields in the credit notes and line items must be greater than 0.
- A credit note cannot be linked to a canceled payable.
List all credit notes
To list all credit notes, call GET /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:
The 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, call GET /payable_credit_notes?based_on={payable_id}
:
Update a credit note
Credit notes in the draft
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 the DELETE /payable_credit_notes/{payable_credit_notes_id}
endpoint:
This action is irreversible, and once deleted, credit notes can no longer be accessed.