Part of theU-Suite
uinvoices.ai

API and integrations

uinvoices has a small REST API and signed webhooks so other apps, including the rest of the U-Suite, can create clients, quotes and invoices, and react when invoices are paid. Available on Pro and Business.

Authentication

Create a key in Integrations inside the app (one per connected app is best). Send it as a bearer token. Keys belong to one business profile. Limit: 600 requests per hour per key.

Authorization: Bearer ui_live_xxxxxxxxxxxxxxxx
Content-Type: application/json

Base URL: https://uinvoices.app/api/v1. Errors return { "error": "message" } with a 4xx status.

Clients

POST /api/v1/clients creates or updates a client. Matching order: id, then external_source + external_id, then email.

curl -X POST https://uinvoices.app/api/v1/clients \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"name":"Priya Shah","email":"priya@example.com","phone":"416-555-0142",
       "external_source":"uleads","external_id":"contact_123",
       "address_line1":"14 Birch Ave","city":"Toronto","region":"ON","postal_code":"M4V 1E2","country":"CA"}'

GET /api/v1/clients?email=… or ?external_id=… finds clients.

Quotes and invoices

POST /api/v1/quotes and POST /api/v1/invoices take the same body. Pass client (created or matched as above) or client_id. Prices are in dollars (unit_price) or cents (unit_price_cents). taxes is "default" (the client's or business's default taxes), "none", or a list of tax names such as ["GST","PST"].

{
  "client": { "external_source": "uleads", "external_id": "contact_123", "name": "Priya Shah", "email": "priya@example.com" },
  "title": "Bathroom faucet replacement",
  "currency": "CAD",
  "lines": [
    { "name": "Labour", "quantity": 3, "unit": "hr", "unit_price": 95 },
    { "name": "Moen chrome faucet", "quantity": 2, "unit_price": 189 },
    { "name": "Haul-away", "unit_price": 40, "optional": true }
  ],
  "deposit_percent": 50,      // quotes only
  "due_days": 15,             // invoices only (default: the business's terms)
  "send": true,               // email it to the client now
  "source": "uleads", "reference": "deal_987"
}

Response (201):

{ "quote": { "id": "…", "number": "Q-1031", "status": "sent", "total_cents": 79439, "balance_cents": 79439,
  "currency": "CAD", "url": "https://uinvoices.app/q/…", "app_url": "https://uinvoices.app/app/quotes/…" }, "client_id": "…" }

To record an invoice that's already paid (for example a paid booking), add paid:

"paid": { "method": "card", "reference": "ucals booking bk_456" }   // amount defaults to the invoice total

GET /api/v1/documents/:id returns a quote or invoice's status, totals and link.

Webhooks

Add an endpoint in Integrations and choose events: quote.sent, quote.accepted, quote.declined, invoice.sent, invoice.paid. We POST JSON:

{ "event": "invoice.paid", "business_id": "…", "created_at": "2026-12-05T14:03:11Z",
  "data": { "id": "…", "number": "INV-1042", "total_cents": 79439, "currency": "CAD", "paid_at": "…",
            "client": { "id": "…", "name": "Priya Shah", "email": "priya@example.com", "phone": "…", "external_id": "contact_123" },
            "review_url": "https://g.page/r/…/review" } }

Verify the X-Uinvoices-Signature: t=<unix>,v1=<hex> header: v1 is HMAC-SHA256 of `${t}.${rawBody}` with your endpoint's signing secret. Reject old timestamps (over 5 minutes).

import { createHmac, timingSafeEqual } from "node:crypto";
function verify(raw, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const want = createHmac("sha256", secret).update(`${t}.${raw}`).digest("hex");
  return Math.abs(Date.now() / 1000 - Number(t)) < 300 && timingSafeEqual(Buffer.from(want), Buffer.from(v1));
}

U-Suite recipes

uleads.ai: deal won → quote or invoice

When a deal moves to Won, call POST /api/v1/quotes (or /invoices) with client.external_source = "uleads", client.external_id = the uleads contact id, the deal's line items, source: "uleads", reference = the deal id and send: true. Subscribe to quote.accepted and invoice.paid to update the deal.

ucals.ai: paid booking → paid invoice

After a booking is paid, call POST /api/v1/invoices with the booker as client (external_source: "ucals"), one line for the service, and paid: { method: "card", reference: "<booking id>" }. The invoice is recorded as paid and the client gets a receipt.

ureviews.ai: invoice paid → review request

Subscribe a ureviews.ai endpoint to invoice.paid. The payload includes the client's name, email and phone, so ureviews can send a review request. Businesses can also paste their review link in Settings → Reminders, which adds it to the thank-you receipt.

Send your first invoice in five minutes

14-day free trial of every feature. No credit card. Free plan forever after.