NFS Workshop API
Version 1.0.0. Base URL https://api.needforservice.app. Machine-readable: /openapi.json (OpenAPI 3.1).
Read-only access to one workshop's own data in NFS Workshop.
Keys. The shop's owner or admin creates a key in Workshop settings and chooses its scopes. Send it on every request as Authorization: Bearer nfs_live_.... A key reads its own shop only; the shop is decided by the key, never by the request.
Scopes. jobs:read, invoices:read, parts:read (part lines and stock), time:read, staff:read, bookings:read. Two scopes add fields to the others instead of opening an endpoint: without costs:read every cost, cost price, markup and margin field is null; without contacts:read every customer phone and e-mail is null. National ID codes, notes, VINs and staff contact details are never returned under any scope.
Paging. Lists are cursor paged. Each answer is { "data": [...], "nextCursor": "..." }; pass nextCursor back as cursor until it is null. Cursors are opaque: do not build or edit them. limit is 1 to 200 (default 50).
Incremental sync. Jobs, invoices, part lines and stock are sorted by when they last changed and take updated_since. Keep the largest updatedAt you have stored and ask for what changed since. Time and bookings take a date window (from, to) instead.
Deleted jobs vanish. A deleted job is gone from every list; no tombstone is sent. If you mirror jobs, do a full pass (no updated_since) now and then and drop what is no longer there.
Money is in cents. Unit prices may carry fractional cents (for example 3225.81, a net price derived from a gross one), exactly as stored; totals are whole cents.
Limits. 5000 requests per key per UTC day, and a per-minute limit. Over a limit the answer is 429 with Retry-After in seconds. A request the database cannot answer in time is 503 with Retry-After; try again later.
Every answer carries X-Request-Id; quote it when you contact support. Responses are never cached (Cache-Control: no-store). The API is meant for server-to-server use and sends no CORS headers.
curl -H "Authorization: Bearer nfs_live_..." \ "https://api.needforservice.app/v1/jobs?updated_since=2026-10-01T00:00:00Z&limit=100"
Endpoints
GET /v1/jobs
Every document of the shop: estimates, repair orders, invoices, credit notes and prepayments, by (updatedAt, id).
Scope: jobs:read.
updated_since | query, string (date-time) | Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync. |
cursor | query, string | nextCursor from the previous page, passed back unchanged. |
limit | query, integer | Rows per page, 1 to 200. Default 50. |
GET /v1/jobs/{number}
One job by its number in the shop, with its lines.
Scope: jobs:read.
number | path, integer | The job's number. |
GET /v1/invoices
Issued documents (invoiced or paid; credit notes and prepayments included) with their payments, by (updatedAt, id).
Scope: invoices:read.
updated_since | query, string (date-time) | Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync. |
cursor | query, string | nextCursor from the previous page, passed back unchanged. |
limit | query, integer | Rows per page, 1 to 200. Default 50. |
GET /v1/part-lines
Part lines on jobs. Paged by job: limit counts jobs that hold part lines, so a page can hold more rows than limit.
Scope: parts:read.
updated_since | query, string (date-time) | Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync. |
cursor | query, string | nextCursor from the previous page, passed back unchanged. |
limit | query, integer | Rows per page, 1 to 200. Default 50. |
GET /v1/stock
Stock on hand per product and warehouse, by product.
Scope: parts:read.
updated_since | query, string (date-time) | Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync. |
cursor | query, string | nextCursor from the previous page, passed back unchanged. |
limit | query, integer | Rows per page, 1 to 200. Default 50. |
GET /v1/time
Labour hours per technician per job. limit counts jobs. The window is at most 92 days; a longer one is cut to 92.
Scope: time:read.
from | query, string (date) | First day. Default: to minus 6 days. |
to | query, string (date) | Last day. Default: today (shop time). |
cursor | query, string | nextCursor from the previous page, passed back unchanged. |
limit | query, integer | Rows per page, 1 to 200. Default 50. |
GET /v1/staff
The roster: name, roles and whether active. Never contact details.
Scope: staff:read.
GET /v1/bookings
Bookings in a window of at most 31 days, by (date, id). A longer window is cut to 31 days.
Scope: bookings:read.
from | query, string (date) | First day. Default: today (shop time). |
to | query, string (date) | Last day. Default: from plus 6 days. |
cursor | query, string | nextCursor from the previous page, passed back unchanged. |
limit | query, integer | Rows per page, 1 to 200. Default 50. |
Objects
VehicleRef
id | string | null | |
plate | string | null | |
make | string | null | |
model | string | null |
CustomerRef
id | string | null | |
name | string | null | The name on the document, else the customer's name. |
kind | string | null | person or company. One of: person, company. |
phone | string | null | The customer's first phone number. Null without the contacts:read scope. |
email | string | null | The customer's first e-mail address. Null without the contacts:read scope. |
phones | string[] | Every phone number of the customer. Null without the contacts:read scope. |
emails | string[] | Every e-mail address of the customer. Null without the contacts:read scope. |
BookingCustomer
id | string | null | |
name | string | null | The name on the document, else the customer's name. |
phone | string | null | The customer's first phone number. Null without the contacts:read scope. |
email | string | null | The customer's first e-mail address. Null without the contacts:read scope. |
phones | string[] | Every phone number of the customer. Null without the contacts:read scope. |
emails | string[] | Every e-mail address of the customer. Null without the contacts:read scope. |
Job
id | string (uuid) | |
number | integer | The job's number in the shop. |
kind | string | estimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment. |
status | string | draft, sent, invoiced, paid or closed. |
createdAt | string (date-time) | When the job was opened. |
updatedAt | string (date-time) | When the job last changed. Sort key of the list. |
invoiceNumber | string | null | |
invoiceDate | string | null (date) | The invoice date. |
closedOn | string | null (date) | The day the job was closed. |
paidOn | string | null (date) | The day the job was marked paid. |
vehicle | VehicleRef | |
mileage | integer | null | |
customer | CustomerRef | |
services | string[] | The names of the job's services, in order. |
netCents | integer | Total before VAT. In cents. |
vatCents | integer | VAT. In cents. |
grossCents | integer | Total with VAT. In cents. |
costCents | integer | null | The typed cost of the job's lines (cost price times quantity). In cents. Null without the costs:read scope. |
JobLine
id | string | |
position | integer | null | |
service | string | null | The name of the service the line belongs to. |
kind | string | null | labor, part or another line kind. |
description | string | null | |
code | string | null | |
productId | string | null | |
qty | number | null | |
unit | string | null | |
unitPriceCents | number | null | Net unit price in cents, as stored: may carry fractional cents (totals are whole cents). |
discountPct | number | null | |
vatPct | number | null | |
netCents | integer | null | Line total before VAT, in cents. |
billed | boolean | False when the line's service is excluded from the invoice or was declined. |
technicianId | string | null | |
technicianName | string | null | |
vehicleId | string | null | |
costPriceCents | number | null | Unit cost in cents, as stored: may carry fractional cents. Null without the costs:read scope. |
markupPct | number | null | Markup percent. Null without the costs:read scope. |
JobDetail
id | string (uuid) | |
number | integer | The job's number in the shop. |
kind | string | estimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment. |
status | string | draft, sent, invoiced, paid or closed. |
createdAt | string (date-time) | When the job was opened. |
updatedAt | string (date-time) | When the job last changed. Sort key of the list. |
invoiceNumber | string | null | |
invoiceDate | string | null (date) | The invoice date. |
closedOn | string | null (date) | The day the job was closed. |
paidOn | string | null (date) | The day the job was marked paid. |
vehicle | VehicleRef | |
mileage | integer | null | |
customer | CustomerRef | |
services | string[] | The names of the job's services, in order. |
netCents | integer | Total before VAT. In cents. |
vatCents | integer | VAT. In cents. |
grossCents | integer | Total with VAT. In cents. |
costCents | integer | null | The typed cost of the job's lines (cost price times quantity). In cents. Null without the costs:read scope. |
lines | JobLine[] |
Payment
id | string | null | |
paidAt | string | null (date-time) | |
amountCents | integer | Amount. In cents. |
method | string | null |
Invoice
id | string (uuid) | |
jobNumber | integer | The number of the job the invoice was issued from. |
invoiceNumber | string | null | |
kind | string | estimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment. |
status | string | invoiced or paid. |
invoiceDate | string | null (date) | The invoice date. |
dueDate | string | null (date) | The due date. |
paid | boolean | |
paidOn | string | null (date) | The day it was marked paid. |
creditOf | string | null | For a credit note: what it credits. |
prepaymentOf | string | null | For a prepayment invoice: what it prepays. |
customer | CustomerRef | |
vehiclePlate | string | null | |
netCents | integer | Total before VAT. In cents. |
vatCents | integer | VAT. In cents. |
grossCents | integer | Total with VAT. In cents. |
paidCents | integer | Sum of the payments. In cents. |
costCents | integer | null | Typed cost of the lines. In cents. Null without the costs:read scope. |
marginCents | integer | null | netCents minus costCents. In cents. Null without the costs:read scope. |
payments | Payment[] | |
updatedAt | string (date-time) | When the invoice last changed. Sort key of the list. |
PartLine
jobId | string (uuid) | |
jobNumber | integer | |
jobKind | string | estimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment. |
jobStatus | string | |
jobUpdatedAt | string (date-time) | When the job last changed. Sort key of the list. |
lineId | string | |
position | integer | null | |
productId | string | null | |
code | string | null | |
description | string | null | |
supplier | string | null | |
qty | number | null | |
unit | string | null | |
unitPriceCents | number | null | Net unit price in cents, as stored: may carry fractional cents (totals are whole cents). |
netCents | integer | null | Line total before VAT, in cents. |
costPriceCents | number | null | Unit cost in cents, as stored: may carry fractional cents. Null without the costs:read scope. |
costCents | integer | null | Cost price times quantity. In cents. Null without the costs:read scope. |
StockItem
productId | string | null | |
warehouseId | string | null | |
code | string | null | |
name | string | null | |
brand | string | null | |
unit | string | null | |
onHand | number | null | |
reorderPoint | number | null | |
priceCents | number | null | Sell price before VAT, in cents, as stored: may carry fractional cents. |
costCents | number | null | Cost price in cents, as stored: may carry fractional cents. Null without the costs:read scope. |
archived | boolean | |
updatedAt | string (date-time) | When the stock row last changed. |
TimeEntry
jobId | string (uuid) | |
jobNumber | integer | |
jobKind | string | estimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment. |
jobStatus | string | |
day | string (date) | The day the job was sold, else the day it was opened (shop time). |
daySource | string | One of: sold, opened. |
technicianId | string | null | Null for labour lines without a technician. |
technicianName | string | null | |
hours | number | Hours on the technician's labour lines of the job. |
labourLines | integer |
StaffMember
id | string | |
name | string | |
roles | string[] | |
active | boolean |
Booking
id | string | |
date | string | null (date) | The booking's day. |
startMinute | integer | null | Minutes from midnight, shop time. |
endMinute | integer | null | Minutes from midnight, shop time. |
status | string | One of: booked, requested, cancelled. |
employeeId | string | null | |
employeeName | string | null | |
jobNumber | integer | null | |
vehicle | VehicleRef | |
customer | BookingCustomer | |
updatedAt | string (date-time) | When the booking last changed. |
Error
error | object |