Line items in credit notes
Learn how to manage the line items of credit notes.
Overview
Line item refers to any service or product added to a credit note, along with their descriptions, quantities, rates, and prices. Every credit note contains descriptions of all items purchased.
By default, the subtotal
and total
fields of line items are automatically calculated based on the unit_price
, quantity
, and tax
fields, therefore, are read-only and appear only in the response schema.
Credit notes cannot add new line items or increase the unit quantity and price in line items. Instead, the entity should issue a new payable for the additional amount.
Add line items to a credit note
To add line items to a credit note, call the POST /payable_credit_notes/{credit_note_id}/line_items
endpoint:
The successful response contains information about the created line item:
List all line items of a credit note
To list all line items of a specific credit note, send a GET
request to the /payable_credit_notes/{credit_note_id}/line_items
endpoint:
You will get a list of all line items present in the informed credit note:
Update a specific line item
To update some information about a specific line item in a credit note, call PATCH /payable_credit_notes/{credit_note_id}/line_items/{line_item_id}
:
Remove a line item
To remove the line item from the payable, call DELETE /payable_credit_notes/{credit_note_id}/line_items/{line_item_id}
: