# Invoice Ninja webhooks

Invoice Ninja webhooks are JSON requests that Invoice Ninja sends to a URL you choose when a client, invoice, quote, credit, payment or other record changes.

Agent skill: `npx skills add hookdeck/webhook-skills --skill invoice-ninja-webhooks` ([details](https://hookdeck.com/webhooks/invoice-ninja/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [Invoice Ninja's official docs](https://github.com/invoiceninja/invoiceninja/blob/v5-stable/app/Jobs/Util/WebhookSingle.php).

[Overview](https://hookdeck.com/webhooks/invoice-ninja) · [Webhook events (65)](https://hookdeck.com/webhooks/invoice-ninja/events) · [MCP events](https://hookdeck.com/webhooks/invoice-ninja/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/invoice-ninja/verify) · [Production guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/invoice-ninja/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `None (unsigned)` | [Invoice Ninja source](https://github.com/invoiceninja/invoiceninja/blob/v5-stable/app/Jobs/Util/WebhookSingle.php) |
| How events are identified | `None on the wire: give each subscription its own URL` | [Invoice Ninja source](https://github.com/invoiceninja/invoiceninja/blob/v5-stable/app/Jobs/Util/WebhookSingle.php) |
| Body format | `JSON` | [Invoice Ninja source](https://github.com/invoiceninja/invoiceninja/blob/v5-stable/app/Jobs/Util/WebhookSingle.php) |
| Other headers | `user-agent, accept, content-length` | [Invoice Ninja source](https://github.com/invoiceninja/invoiceninja/blob/v5-stable/app/Jobs/Util/WebhookSingle.php) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill invoice-ninja-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/invoice-ninja/skill) |

[Verify Invoice Ninja webhooks](https://hookdeck.com/webhooks/invoice-ninja/verify)

## How Invoice Ninja webhooks work

Webhooks push billing changes to your server, so you don't have to poll the Invoice Ninja API. Each subscription ties one event, such as `create_invoice`, to one target URL. When the event happens, Invoice Ninja queues a job that sends the record as JSON, using the subscription's method, `POST` or `PUT`, and any headers you added.

The event names on these pages are what you subscribe to, and they never arrive in the delivery. The body is the record itself, with no wrapper, event field or delivery ID, plus related records such as `client` on an invoice. To tell deliveries apart, give each subscription its own path or `?event=` value. There's no payload version: the `User-Agent` names the server version instead. Invoice Ninja's API reference covers only the subscription fields, so these details come from its open-source v5 server.

## Setting up Invoice Ninja webhooks

- Open Settings > Account Management > API Webhooks, or call `POST /api/v1/webhooks` as an admin with `target_url`, `event_id`, `rest_method` and your secret in `headers`. On the hosted service, webhooks only fire for paid accounts.
- To test locally, run the [Hookdeck CLI](/docs/cli): `hookdeck listen 3000 invoice-ninja --path /webhooks/invoice-ninja`, then use its URL as the target. Invoice Ninja rejects target URLs on private addresses, so `localhost` won't work.
- Resend one record with `POST /api/v1/webhooks/{id}/retry`, passing `entity` and `entity_id`. The call is in the v5 server's routes but not in the API reference, and it sends the record as it is now.
- To receive through Event Gateway, create a source with the Invoice Ninja type, enter your header's name and exact value, and use the source URL as the target. If a subscription uses `PUT`, allow `PUT` on the source before you save the subscription.

## Delivery behaviour

- **Timeout:** 30 seconds. The v5 server allows 10 seconds to connect and 30 seconds for the whole request.. [Guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#timeouts)
- **Retries:** Up to 5 tries. Only connection errors, timeouts and `429` are retried, about 10 to 15 seconds, 30 to 40 seconds, 1 minute and 3 minutes apart.. [Guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#retries)
- **After a failure:** Logged, not resent. A `5xx` or other `4xx` ends the delivery at once, and a `404`, `405` or `410` also archives the subscription.. [Guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#retries)
- **Duplicates:** No delivery ID. A request that times out after your handler finished is sent again, with nothing to mark it as a repeat.. [Guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#duplicates)

## Known failure modes

1. **A subscription stops firing.** Invoice Ninja archives a subscription when your endpoint answers `404`, `405` or `410`, and archived subscriptions send nothing. Fix the route, then restore the subscription from the archived webhooks. [Keep subscriptions active](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#retries)
2. **A 500 loses the event.** Invoice Ninja doesn't retry a `5xx`, or any `4xx` except `429`. Acknowledge before you do work that can fail, and reconcile against the API after an incident. [Plan for dropped events](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#retries)
3. **You can't tell which event fired.** Neither the body nor the headers name the event, because it belongs to the subscription. Give each subscription its own path or `?event=` value. [Route by URL](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#choosing-events)
4. **A payment arrives after a later change.** Invoice Ninja queues payment events for 20 to 25 seconds and most others not at all, so arrival order can differ from event order. Compare `updated_at` before you apply a body. [Handle events out of order](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#ordering)

From [Hookdeck's Invoice Ninja guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts).

## Invoice Ninja webhook best practices

- **[Check the secret header on every request](https://hookdeck.com/webhooks/invoice-ninja/verify).** It's the only credential Invoice Ninja sends, so compare the whole value in constant time and reject anything else with a `401`.
- **[Never answer 404, 405 or 410](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#retries).** Any of them archives the subscription and stops its deliveries. Accept the subscription's method on the route, and check proxies too.
- **[Acknowledge before you do the work](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#timeouts).** A `500` is never retried, so store the record and return a `200` first, then process it in a background job.
- **[Give each subscription its own URL](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#choosing-events).** The event isn't in the request, so a path or `?event=` value is the reliable way to know which one fired.
- **[Upsert on the record's id](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#duplicates).** There's no delivery ID. Compare `updated_at` with what you've stored, so repeats and older bodies change nothing.
- **[Re-read records that move money](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts#other-limits).** A static header doesn't protect the body, so fetch a payment from the API by `id` before you act on it.

## Common Invoice Ninja webhook events

### Invoices

- [create_invoice](https://hookdeck.com/webhooks/invoice-ninja/events#create_invoice): New invoice is created
- [sent_invoice](https://hookdeck.com/webhooks/invoice-ninja/events#sent_invoice): Invoice is emailed or marked as sent
- [late_invoice](https://hookdeck.com/webhooks/invoice-ninja/events#late_invoice): Daily check finds an unpaid invoice past its due date

### Payments

- [create_payment](https://hookdeck.com/webhooks/invoice-ninja/events#create_payment): Payment is recorded
- [update_payment](https://hookdeck.com/webhooks/invoice-ninja/events#update_payment): Payment record is saved with changes
- [delete_payment](https://hookdeck.com/webhooks/invoice-ninja/events#delete_payment): Payment is marked as deleted

### Clients and quotes

- [create_client](https://hookdeck.com/webhooks/invoice-ninja/events#create_client): New client is added
- [update_client](https://hookdeck.com/webhooks/invoice-ninja/events#update_client): Client record is saved with changes
- [approve_quote](https://hookdeck.com/webhooks/invoice-ninja/events#approve_quote): Client approves a quote

## Events by resource

| Resource | Events | Payloads |
|---|---|---|
| [quote](https://hookdeck.com/webhooks/invoice-ninja/events#resource-quote) | 9 | 0 |
| [invoice](https://hookdeck.com/webhooks/invoice-ninja/events#resource-invoice) | 8 | 0 |
| [purchase_order](https://hookdeck.com/webhooks/invoice-ninja/events#resource-purchase-order) | 7 | 0 |
| [credit](https://hookdeck.com/webhooks/invoice-ninja/events#resource-credit) | 6 | 0 |
| [client](https://hookdeck.com/webhooks/invoice-ninja/events#resource-client) | 5 | 0 |
| [expense](https://hookdeck.com/webhooks/invoice-ninja/events#resource-expense) | 5 | 0 |
| [payment](https://hookdeck.com/webhooks/invoice-ninja/events#resource-payment) | 5 | 0 |
| [product](https://hookdeck.com/webhooks/invoice-ninja/events#resource-product) | 5 | 0 |
| [project](https://hookdeck.com/webhooks/invoice-ninja/events#resource-project) | 5 | 0 |
| [task](https://hookdeck.com/webhooks/invoice-ninja/events#resource-task) | 5 | 0 |

1 more resource. [All 65 events](https://hookdeck.com/webhooks/invoice-ninja/events)

## In this hub

- [Webhook events](https://hookdeck.com/webhooks/invoice-ninja/events): Every covered Invoice Ninja event, with payloads where the registry has them.
- [MCP events](https://hookdeck.com/webhooks/invoice-ninja/mcp-events): How an agent subscribes to Invoice Ninja events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/invoice-ninja/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/invoice-ninja/guide-duplicates-ordering-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/invoice-ninja/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill invoice-ninja-webhooks`
---

Not affiliated with Invoice Ninja. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/invoice-ninja.json) · [Report a correction](https://hookdeck.com/contact)
