Actions69
- 👤 Customer Actions
- 🛍️ Product Actions
- 📄 Customer Invoice Actions
- 💰 Quote Actions
- 🏢 Supplier Actions
- 📥 Supplier Invoice Actions
- 🏦 Bank Account Actions
- 💸 Transaction Actions
- 💰 Payment Actions
- 💳 SEPA Mandate Actions
- 🔄 GoCardless Mandate Actions
- 📓 Journal Actions
- 📈 Ledger Account Actions
- 📋 Ledger Entry Actions
- 📑 Ledger Entry Line Actions
- 📎 Ledger Attachment Actions
- ⚖️ Trial Balance Actions
- 📅 Fiscal Year Actions
- 🏷️ Category Actions
- 📦 Category Group Actions
- 🔄 Billing Subscription Actions
- 📋 Invoice Lines Actions
- 📎 Invoice Appendices Actions
- 📎 File Attachment Actions
- 📄 Commercial Document Actions
- ⚡ E-Invoice Create (Import) Actions
- 👤 User Profile Actions
📄 Customer Invoice → Delete
AI-generatedSummary
Delete a customer invoice draft via the Pennylane API.
Inputs
- invoiceSelectionMode — Choose how to select the invoice to delete. Defaults to selecting from the available customer invoice list; switch to manual entry to provide a custom ID directly.
- customerInvoiceId (required) — The identifier of the customer invoice to delete. When invoiceSelectionMode is 'list', select from the dropdown loaded via getCustomerInvoices. When 'manual', enter the invoice ID as a plain string.
Output shape
The Pennylane API response from DELETE /customer_invoices/{id}. Typically confirms the deletion of a draft invoice.
Only draft invoices support deletion. The operation consumes only the invoice ID; no other parameters are sent to the API.
Examples
Example 1: Delete by selecting from the invoice list
Leave invoiceSelectionMode as 'list' (default) and choose an invoice from the Customer Invoice dropdown.
Example 2: Delete by entering a custom invoice ID
Set invoiceSelectionMode to 'manual' and provide the exact customerInvoiceId string.
