submit-credit-note
Submit a draft credit note from create-credit-note: it becomes applied and its invoice is cancelled unless already paid. For a linked invoice previously reported to IRAS, the submission workflow can also queue external PEPPOL delivery and IRAS reporting. Confirm the user intends to apply the credit note, including any configured external delivery and reporting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Credit note ID | |
| reason | No | Reason for the credit note. Omit to keep the draft's reason. | |
| companyId | Yes | Company ID | |
| issueDate | Yes | Date in YYYY-MM-DD format | |
| creditNoteNumber | No | Custom credit note number, unique within the company. Omit to keep the draft's number or auto-generate one as <invoice number>-CN-<3-digit sequence>. |