Overview
The Invoify REST API lets you read, create, update, and delete invoices and clients from any backend, no SDK required. All responses are JSON. All requests are authenticated with a bearer token.
Everything the API returns is also available in the OpenAPI spec at /api/v1/openapi.json. Import it into Postman, Zapier, Make, or any HTTP tool that speaks OpenAPI 3.0.
Authentication
Create an API key under Settings → API Keys. The full key is displayed once at creation — copy it immediately and store it somewhere safe (a password manager, your deploy secrets). We only store a SHA-256 hash; if you lose the key, you have to revoke and create a new one.
Keys look like:
inv_7Zq8xP3kR9mA2vL5nY6bQ4tC1dE0hF8jG
Send the key as a bearer token on every request:
curl https://www.invoify.co.uk/api/v1/invoices \ -H "Authorization: Bearer inv_7Zq8xP3kR9mA2vL5nY6bQ4tC1dE0hF8jG"
Scopes
Each key has one or both of these scopes:
Tick Allow write operations when creating a key to enable the write scope. Read-only is the default and recommended for anything that only needs to pull data.
Rate limits
Every key is capped at 1,000 requests per hour. Buckets are fixed-window and reset on the hour (minute 0 UTC).
Every response includes:
Exceed the limit and the request returns 429 Too Many Requests:
HTTP/1.1 429 Too Many Requests
{
"error": "Rate limit exceeded (1,000 requests/hour per key). Try again after the window resets.",
"limit": 1000,
"reset_at": "2026-10-23T15:00:00.000Z"
}Live usage per key is in Settings → API Keys — click the activity icon on any key for current-hour counts and a 7-day bar chart.
Idempotency
Every write endpoint (POST, PATCH, DELETE) accepts an Idempotency-Key header. Send a unique string per logical operation (a UUID is easiest). We cache the response and return it on any retry with the same key.
POST /api/v1/invoices
Authorization: Bearer inv_...
Idempotency-Key: 7c3a1e02-9f4b-4c01-a7b7-3b2a9e1c0d84
Content-Type: application/json
{ "invoice_number": "INV-042", ... }This matches Stripe and Shopify semantics — if your client times out mid-request, retry with the same Idempotency-Key and you can't accidentally create two invoices.
Errors
Every error response has this shape:
{ "error": "Human-readable description" }Invoices
List invoices
Query params
curl https://www.invoify.co.uk/api/v1/invoices?status=overdue \ -H "Authorization: Bearer inv_..."
Create a draft invoice with line items
Totals (subtotal / tax_total / total) are computed server-side from items. Status defaults to draft.
Request body
{
"invoice_number": "INV-042",
"issue_date": "2026-10-23",
"due_date": "2026-11-22",
"currency": "GBP",
"client_id": "...",
"to": {
"name": "Rivertech Inc.",
"email": "billing@rivertech.co",
"address": "..."
},
"items": [
{ "description": "Brand design", "quantity": 1, "unit_price": 1800, "tax_rate": 20 }
]
}curl -X POST https://www.invoify.co.uk/api/v1/invoices \ -H "Authorization: Bearer inv_..." \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d @invoice.json
Fetch an invoice with items, payments, credit notes, and balance
{
"invoice": { ... },
"items": [ ... ],
"payments": [ ... ],
"credit_notes": [ ... ],
"balance": { "total": 2450, "paid": 1000, "credited": 0, "amount_due": 1450 }
}Update invoice metadata (not line items)
Line-item editing is not in v1 — delete and recreate the invoice if you need to change items.
Request body
{
"status": "sent",
"due_date": "2026-11-30",
"notes": "Updated terms"
}Hard delete; cascades to items, payments, credit notes
No undo. The matching invoice.cancelled webhook is NOT fired on delete; only on status change.
Clients
List clients
Query params
curl https://www.invoify.co.uk/api/v1/clients?search=rivertech \ -H "Authorization: Bearer inv_..."
Create a client
Fires the client.created webhook on success.
Request body
{
"name": "Rivertech Inc.",
"email": "billing@rivertech.co",
"currency": "GBP",
"peppol_endpoint_scheme": "0088",
"peppol_endpoint_id": "5790000435968"
}HTTP/1.1 201 Created
{ "client": { "id": "...", "name": "Rivertech Inc.", ... } }Fetch a client with rollup stats
{
"client": { ... },
"stats": { "invoice_count": 7, "total_invoiced": 17500, "outstanding": 2450 }
}Update any subset of client fields
Request body
{ "phone": "+44 20 7946 0012" }Hard delete the client row
Existing invoices keep their denormalized to_name / to_company / to_email snapshot and continue to render correctly.
Webhooks
Invoify POSTs an event to any URL you register under Settings → Webhooks. Each endpoint gets a one-time signing secret shown at creation — use it to verify the X-Invoify-Signature header before trusting the body.
Event types
Request shape
Body
{
"type": "invoice.paid",
"id": "e9a8b7c6-d5f4-...",
"user_id": "...",
"created_at": "2026-10-23T14:12:03.000Z",
"data": {
"invoice": {
"id": "...",
"invoice_number": "INV-042",
"status": "paid",
"currency": "GBP",
"total": "2450.00",
"balance_due": 0,
"amount_paid": 2450,
"amount_credited": 0,
"due_date": "2026-10-01",
"to_email": "billing@rivertech.co",
"to_name": "Rivertech Inc.",
"public_token": "..."
}
}
}Verifying the signature (Node)
const crypto = require("node:crypto");
function verify(rawBody, signatureHeader, secret) {
const [, hex] = signatureHeader.split("sha256=");
const expected = crypto
.createHmac("sha256", secret)
.update(rawBody)
.digest("hex");
return crypto.timingSafeEqual(Buffer.from(hex), Buffer.from(expected));
}Delivery semantics
Changelog
We don't version endpoint URLs — every path stays on /api/v1until there's a genuine breaking change. Additive changes (new endpoints, new optional fields) are shipped without bumping.
- Added
Idempotency-Keyheader support on all write endpoints. - Added
Idempotency-Replayedresponse header on cached replays.
- Write endpoints: POST/PATCH/DELETE on invoices and clients.
- Outbound webhooks for
invoice.sent,invoice.paid,invoice.partially_paid,client.created. - Per-key rate limiting (1,000 req/hr) with X-RateLimit headers.
- Read-only endpoints on invoices and clients.