Delete Record
invoiceninja.delete_record
ActionBusiness appsconnection required
Calls the Invoice Ninja API with the connection's credentials.
Delete a client, invoice, payment, quote, task or expense by id. Invoice Ninja keeps the row on file, so the record can be restored later.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Invoice Ninja
- Secret shape
- the API token, or {"api_token": "…", "api_secret": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
resource Which Invoice Ninja entity to act on. | string | Yes | — | one of "clients", "invoices", "payments", "quotes", "tasks", "expenses" | — |
record_id The record's Invoice Ninja id, which is a hashed string and not a number. | string | Yes | — | — | Opnel5aKBz |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"record_id": "Opnel5aKBz"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
deleted True once Invoice Ninja has removed the record. | boolean | — |
resource The entity the record belonged to. | string | — |
id The id of the record that was deleted. | string | — |
data The record as it stands after the delete. | object | — |
{
"data": {},
"deleted": false,
"id": "",
"resource": ""
}Related Invoice Ninja nodes
See Delete Record run in a workflow.
In a technical demo we add the Invoice Ninja connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.