First-party app
Invoice Ninja Invoice Ninja

Invoice Ninja

Manage Invoice Ninja clients, invoices, quotes, payments, products, tasks and expenses.

stable Finance & AccountingCommerce & Payments

About

Invoice Ninja ships in the w6w first-party pack. It declares 40 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.invoiceninja
Version
0.1.1
Author
w6w
Licence
MIT
Categories
Finance & Accounting · Commerce & Payments

Overview

Invoice Ninja is a source-available invoicing and billing platform. This app covers the day-to-day billing lifecycle: creating, updating, fetching, listing and deleting clients, invoices, quotes, payments, products, tasks and expenses.

Invoices can be created with typed line items, listed and filtered, updated, deleted, and sent by email or marked paid without a person opening Invoice Ninja directly. Quotes carry the same lifecycle plus the two moves that make a quote a quote — approving it and converting it into an invoice. Payments can be recorded against one or more invoices and refunded. Clients, products, tasks and expenses round out the resources a workflow needs to keep records in sync with the rest of a billing stack.

Invoice Ninja is both a hosted cloud service (invoicing.co) and a self-hosted, source-available application — this app connects to whichever instance URL a Connection supplies, exactly like it would for any self-hosted install.

A fit for turning a paid order, a signed contract, or a completed job into an invoice or quote, recording a payment that arrived through another channel, or keeping a workflow’s own records of clients and billable time in step with Invoice Ninja.

Build with Invoice Ninja

Three routes to the same 40 actions. The Workflow tab is generated from Invoice Ninja's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Create Client

client-create

Create a client, optionally with its first contact.

Delete Client

client-delete

Soft-delete a client.

Get Client

client-get

Retrieve a single client by hashed ID.

List Clients

client-get-many

List clients, optionally filtered by name.

Update Client

client-update

Update a client. Only the fields you set are changed.

Create Expense

expense-create

Record an expense.

Delete Expense

expense-delete

Soft-delete an expense.

Get Expense

expense-get

Retrieve a single expense by hashed ID.

List Expenses

expense-get-many

List expenses.

Update Expense

expense-update

Update an expense. Only the fields you set are changed.

Create Invoice

invoice-create

Create an invoice for a client.

Delete Invoice

invoice-delete

Soft-delete an invoice.

Get Invoice

invoice-get

Retrieve a single invoice by hashed ID.

List Invoices

invoice-get-many

List invoices, optionally scoped to one client.

Mark Invoice Paid

invoice-mark-paid

Mark an invoice as fully paid without recording a separate payment.

Send Invoice

invoice-send

Email an invoice to its client.

Update Invoice

invoice-update

Update an invoice. Only the fields you set are changed.

Create Payment

payment-create

Record a payment for a client, optionally applied to one or more invoices.

Delete Payment

payment-delete

Soft-delete a payment.

Get Payment

payment-get

Retrieve a single payment by hashed ID.

List Payments

payment-get-many

List payments, optionally scoped to one client.

Refund Payment

payment-refund

Refund some or all of a payment.

Update Payment

payment-update

Update a payment's date, reference or notes.

Create Product

product-create

Create a product or service that can be added to invoice/quote line items.

Delete Product

product-delete

Soft-delete a product.

Get Product

product-get

Retrieve a single product by hashed ID.

List Products

product-get-many

List products, optionally filtered by product key.

Update Product

product-update

Update a product. Only the fields you set are changed.

Approve Quote

quote-approve

Approve a quote on the client's behalf.

Convert Quote to Invoice

quote-convert-to-invoice

Convert an approved quote into an invoice.

Create Quote

quote-create

Create a quote for a client.

Delete Quote

quote-delete

Soft-delete a quote.

Get Quote

quote-get

Retrieve a single quote by hashed ID.

List Quotes

quote-get-many

List quotes, optionally scoped to one client.

Update Quote

quote-update

Update a quote. Only the fields you set are changed.

Create Task

task-create

Create a billable task.

Delete Task

task-delete

Soft-delete a task.

Get Task

task-get

Retrieve a single task by hashed ID.

List Tasks

task-get-many

List tasks.

Update Task

task-update

Update a task. Only the fields you set are changed.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Invoice Ninja's real ids.

{
  "manifestVersion": "2",
  "name": "invoiceninja-example",
  "steps": [
    {
      "id": "client-get",
      "uses": {
        "app": "io.w6w.invoiceninja",
        "action": "client-get",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "clientId": "<clientId>"
      }
    }
  ]
}

Here are some of the things you can do

  • Get Client

    read
    client-get
  • Create Client

    perform
    client-create
  • List Clients

    search
    client-get-many
  • Update Client

    perform
    client-update
  • Create Expense

    perform
    expense-create

+35 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Invoice Ninja, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Invoice Ninja. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "client-get",
  payload: {
    clientId: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action client-get --payload '{"clientId":"<value>"}'

Give an AI agent Invoice Ninja — without giving it Invoice Ninja's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.invoiceninja#client-get",
    "input": {
      "clientId": "<clientId>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Invoice Ninja connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Invoice Ninja's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Invoice Ninja itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Invoice Ninja declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Invoice Ninja hosted status

Open incidents on status.invoiceninja.com's RSS feed. Unauthenticated and unsigned; fetched and parsed by the host. Only meaningful for the hosted invoicing.co service — a self-hosted install's own health is `instance`.

dependency

Instance health

Signed probe of this connection's own Invoice Ninja instance via `GET /api/v1/health_check` — its system health flag, failed queue jobs, and pending migrations.