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.

65 events covered

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.

Key facts

Signature header
None (unsigned)
How events are identified
None on the wire: give each subscription its own URL
Other headers
user-agent, accept, content-length
Agent skill
npx skills add hookdeck/webhook-skills --skill invoice-ninja-webhooks

Verify Invoice Ninja webhooks →

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: 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

  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 →
  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 →
  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 →
  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 →

Invoice Ninja webhook best practices

Common Invoice Ninja webhook events

Invoices

create_invoice New invoice is created
sent_invoice Invoice is emailed or marked as sent
late_invoice Daily check finds an unpaid invoice past its due date

Payments

create_payment Payment is recorded
update_payment Payment record is saved with changes
delete_payment Payment is marked as deleted

Clients and quotes

create_client New client is added
update_client Client record is saved with changes
approve_quote Client approves a quote

Events by resource

Resource Events Payloads
quote

create_quote · sent_quote · update_quote · approve_quote +5

9 0
invoice

create_invoice · sent_invoice · update_invoice · late_invoice +4

8 0
purchase_order

create_purchase_order · sent_purchase_order · update_purchase_order · delete_purchase_order +3

7 0
credit

create_credit · sent_credit · update_credit · archive_credit +2

6 0
client

create_client · update_client · archive_client · restore_client +1

5 0
expense

create_expense · update_expense · archive_expense · restore_expense +1

5 0
payment

create_payment · update_payment · archive_payment · restore_payment +1

5 0
product

create_product · update_product · delete_product · restore_product +1

5 0
project

create_project · update_project · archive_project · restore_project +1

5 0
task

create_task · update_task · archive_task · restore_task +1

5 0

1 more resource. All 65 events →

In this hub

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

Keep a failing deploy from losing Invoice Ninja events.

Event Gateway checks your secret header, accepts each Invoice Ninja delivery as it arrives and queues it, so a 500 from your service becomes a retry instead of a dropped event.

Not affiliated with Invoice Ninja. Facts are compiled from public sources and linked inline.