update-credit-note
Modify draft credit notes in Xero by updating line items, reference, date, or contact. All line items must be provided as unspecified items will be removed. Returns a direct link to view the updated credit note.
Instructions
Update a credit note in Xero. Only works on draft credit notes. All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user. When a credit note is updated, a deep link to the credit note in Xero is returned. This deep link can be used to view the credit note in Xero directly. This link should be displayed to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| creditNoteId | Yes | ||
| lineItems | No | All line items must be provided. Any line items not provided will be removed. Including existing line items. Do not modify line items that have not been specified by the user | |
| reference | No | ||
| date | No | ||
| contactId | No |