What the API can do
Short answer
The REST API reads and creates customers, enquiries, draft quotes and invoices, jobs and your price list, and reads payments, staff, timesheets and stock.
Updated · 1 min read
The REST API is for connecting your own website, scripts or other software to your account. It works over HTTPS at https://api.thebusinessapp.co.uk/v1, with your API key sent as a bearer token. The full reference, with examples, is on the developer pages.
curl https://api.thebusinessapp.co.uk/v1/me \
-H "Authorization: Bearer tba_live_XXXXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"Resources
| Endpoint | What you can do |
|---|---|
| /customers | List, get, create, update. Contacts and sites are nested under a customer |
| /enquiries | List, get, create. New enquiries land in your pipeline with source "api" |
| /quotes | List, get, create a draft. Totals are worked out for you |
| /jobs | List, get, create, update. Visits are nested under a job |
| /invoices | List, get, create a draft |
| /payments | List, get (read only) |
| /products | List, get, create, update your price list |
| /staff | List, get (read only, pay rates never included) |
| /timesheets | List, get (read only) |
| /stock-items | List, get stock per product and location (read only) |
| /exports | Download the same Xero, QuickBooks, Sage and FreeAgent CSV files as the accountant exports |
Resources follow the modules you have switched on. If a module is off, its endpoints return 403 module_disabled.
Lists, writes and errors
- Lists are newest first, with
limit(1 to 100, default 25) and acursorfor the next page.created_sinceandupdated_sincehelp with syncing. - Creates and updates take JSON. An
Idempotency-Keyheader makes a POST or PATCH safe to retry for 24 hours. - Every error has the same shape with a
codeto branch on, and every response has anX-Request-Idheader. Quote it if you contact us.
An OpenAPI spec is available at https://api.thebusinessapp.co.uk/v1/openapi.json for Postman, Insomnia or a code generator.
Good to know
The API never sends quotes or invoices to customers and never takes payments.
Related articles
Still stuck?
Tell us what you were trying to do and which screen you were on, and we’ll walk you through it. Email hello@thebusinessapp.co.uk or contact support.