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

List jobs

Every document of the shop: estimates, repair orders, invoices, credit notes and prepayments, by (updatedAt, id).

Scope: jobs:read.

updated_sincequery, string (date-time)Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync.
cursorquery, stringnextCursor from the previous page, passed back unchanged.
limitquery, integerRows per page, 1 to 200. Default 50.

GET /v1/jobs/{number}

Get one job with its lines

One job by its number in the shop, with its lines.

Scope: jobs:read.

numberpath, integerThe job's number.

GET /v1/invoices

List invoices

Issued documents (invoiced or paid; credit notes and prepayments included) with their payments, by (updatedAt, id).

Scope: invoices:read.

updated_sincequery, string (date-time)Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync.
cursorquery, stringnextCursor from the previous page, passed back unchanged.
limitquery, integerRows per page, 1 to 200. Default 50.

GET /v1/part-lines

List 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_sincequery, string (date-time)Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync.
cursorquery, stringnextCursor from the previous page, passed back unchanged.
limitquery, integerRows per page, 1 to 200. Default 50.

GET /v1/stock

List stock on hand

Stock on hand per product and warehouse, by product.

Scope: parts:read.

updated_sincequery, string (date-time)Only rows changed at or after this instant. Use the largest updatedAt you have seen, for incremental sync.
cursorquery, stringnextCursor from the previous page, passed back unchanged.
limitquery, integerRows per page, 1 to 200. Default 50.

GET /v1/time

List labour 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.

fromquery, string (date)First day. Default: to minus 6 days.
toquery, string (date)Last day. Default: today (shop time).
cursorquery, stringnextCursor from the previous page, passed back unchanged.
limitquery, integerRows per page, 1 to 200. Default 50.

GET /v1/staff

List staff

The roster: name, roles and whether active. Never contact details.

Scope: staff:read.

GET /v1/bookings

List bookings

Bookings in a window of at most 31 days, by (date, id). A longer window is cut to 31 days.

Scope: bookings:read.

fromquery, string (date)First day. Default: today (shop time).
toquery, string (date)Last day. Default: from plus 6 days.
cursorquery, stringnextCursor from the previous page, passed back unchanged.
limitquery, integerRows per page, 1 to 200. Default 50.

Objects

VehicleRef

idstring | null
platestring | null
makestring | null
modelstring | null

CustomerRef

idstring | null
namestring | nullThe name on the document, else the customer's name.
kindstring | nullperson or company. One of: person, company.
phonestring | nullThe customer's first phone number. Null without the contacts:read scope.
emailstring | nullThe customer's first e-mail address. Null without the contacts:read scope.
phonesstring[]Every phone number of the customer. Null without the contacts:read scope.
emailsstring[]Every e-mail address of the customer. Null without the contacts:read scope.

BookingCustomer

idstring | null
namestring | nullThe name on the document, else the customer's name.
phonestring | nullThe customer's first phone number. Null without the contacts:read scope.
emailstring | nullThe customer's first e-mail address. Null without the contacts:read scope.
phonesstring[]Every phone number of the customer. Null without the contacts:read scope.
emailsstring[]Every e-mail address of the customer. Null without the contacts:read scope.

Job

idstring (uuid)
numberintegerThe job's number in the shop.
kindstringestimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment.
statusstringdraft, sent, invoiced, paid or closed.
createdAtstring (date-time)When the job was opened.
updatedAtstring (date-time)When the job last changed. Sort key of the list.
invoiceNumberstring | null
invoiceDatestring | null (date)The invoice date.
closedOnstring | null (date)The day the job was closed.
paidOnstring | null (date)The day the job was marked paid.
vehicleVehicleRef
mileageinteger | null
customerCustomerRef
servicesstring[]The names of the job's services, in order.
netCentsintegerTotal before VAT. In cents.
vatCentsintegerVAT. In cents.
grossCentsintegerTotal with VAT. In cents.
costCentsinteger | nullThe typed cost of the job's lines (cost price times quantity). In cents. Null without the costs:read scope.

JobLine

idstring
positioninteger | null
servicestring | nullThe name of the service the line belongs to.
kindstring | nulllabor, part or another line kind.
descriptionstring | null
codestring | null
productIdstring | null
qtynumber | null
unitstring | null
unitPriceCentsnumber | nullNet unit price in cents, as stored: may carry fractional cents (totals are whole cents).
discountPctnumber | null
vatPctnumber | null
netCentsinteger | nullLine total before VAT, in cents.
billedbooleanFalse when the line's service is excluded from the invoice or was declined.
technicianIdstring | null
technicianNamestring | null
vehicleIdstring | null
costPriceCentsnumber | nullUnit cost in cents, as stored: may carry fractional cents. Null without the costs:read scope.
markupPctnumber | nullMarkup percent. Null without the costs:read scope.

JobDetail

idstring (uuid)
numberintegerThe job's number in the shop.
kindstringestimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment.
statusstringdraft, sent, invoiced, paid or closed.
createdAtstring (date-time)When the job was opened.
updatedAtstring (date-time)When the job last changed. Sort key of the list.
invoiceNumberstring | null
invoiceDatestring | null (date)The invoice date.
closedOnstring | null (date)The day the job was closed.
paidOnstring | null (date)The day the job was marked paid.
vehicleVehicleRef
mileageinteger | null
customerCustomerRef
servicesstring[]The names of the job's services, in order.
netCentsintegerTotal before VAT. In cents.
vatCentsintegerVAT. In cents.
grossCentsintegerTotal with VAT. In cents.
costCentsinteger | nullThe typed cost of the job's lines (cost price times quantity). In cents. Null without the costs:read scope.
linesJobLine[]

Payment

idstring | null
paidAtstring | null (date-time)
amountCentsintegerAmount. In cents.
methodstring | null

Invoice

idstring (uuid)
jobNumberintegerThe number of the job the invoice was issued from.
invoiceNumberstring | null
kindstringestimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment.
statusstringinvoiced or paid.
invoiceDatestring | null (date)The invoice date.
dueDatestring | null (date)The due date.
paidboolean
paidOnstring | null (date)The day it was marked paid.
creditOfstring | nullFor a credit note: what it credits.
prepaymentOfstring | nullFor a prepayment invoice: what it prepays.
customerCustomerRef
vehiclePlatestring | null
netCentsintegerTotal before VAT. In cents.
vatCentsintegerVAT. In cents.
grossCentsintegerTotal with VAT. In cents.
paidCentsintegerSum of the payments. In cents.
costCentsinteger | nullTyped cost of the lines. In cents. Null without the costs:read scope.
marginCentsinteger | nullnetCents minus costCents. In cents. Null without the costs:read scope.
paymentsPayment[]
updatedAtstring (date-time)When the invoice last changed. Sort key of the list.

PartLine

jobIdstring (uuid)
jobNumberinteger
jobKindstringestimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment.
jobStatusstring
jobUpdatedAtstring (date-time)When the job last changed. Sort key of the list.
lineIdstring
positioninteger | null
productIdstring | null
codestring | null
descriptionstring | null
supplierstring | null
qtynumber | null
unitstring | null
unitPriceCentsnumber | nullNet unit price in cents, as stored: may carry fractional cents (totals are whole cents).
netCentsinteger | nullLine total before VAT, in cents.
costPriceCentsnumber | nullUnit cost in cents, as stored: may carry fractional cents. Null without the costs:read scope.
costCentsinteger | nullCost price times quantity. In cents. Null without the costs:read scope.

StockItem

productIdstring | null
warehouseIdstring | null
codestring | null
namestring | null
brandstring | null
unitstring | null
onHandnumber | null
reorderPointnumber | null
priceCentsnumber | nullSell price before VAT, in cents, as stored: may carry fractional cents.
costCentsnumber | nullCost price in cents, as stored: may carry fractional cents. Null without the costs:read scope.
archivedboolean
updatedAtstring (date-time)When the stock row last changed.

TimeEntry

jobIdstring (uuid)
jobNumberinteger
jobKindstringestimate, repair_order, credit_note or prepayment. One of: estimate, repair_order, credit_note, prepayment.
jobStatusstring
daystring (date)The day the job was sold, else the day it was opened (shop time).
daySourcestring One of: sold, opened.
technicianIdstring | nullNull for labour lines without a technician.
technicianNamestring | null
hoursnumberHours on the technician's labour lines of the job.
labourLinesinteger

StaffMember

idstring
namestring
rolesstring[]
activeboolean

Booking

idstring
datestring | null (date)The booking's day.
startMinuteinteger | nullMinutes from midnight, shop time.
endMinuteinteger | nullMinutes from midnight, shop time.
statusstring One of: booked, requested, cancelled.
employeeIdstring | null
employeeNamestring | null
jobNumberinteger | null
vehicleVehicleRef
customerBookingCustomer
updatedAtstring (date-time)When the booking last changed.

Error

errorobject