Skip to content

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

On this page

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

EndpointWhat you can do
/customersList, get, create, update. Contacts and sites are nested under a customer
/enquiriesList, get, create. New enquiries land in your pipeline with source "api"
/quotesList, get, create a draft. Totals are worked out for you
/jobsList, get, create, update. Visits are nested under a job
/invoicesList, get, create a draft
/paymentsList, get (read only)
/productsList, get, create, update your price list
/staffList, get (read only, pay rates never included)
/timesheetsList, get (read only)
/stock-itemsList, get stock per product and location (read only)
/exportsDownload 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 a cursor for the next page. created_since and updated_since help with syncing.
  • Creates and updates take JSON. An Idempotency-Key header makes a POST or PATCH safe to retry for 24 hours.
  • Every error has the same shape with a code to branch on, and every response has an X-Request-Id header. 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.

Was this article helpful?

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.

    Type to search every help article. Use the arrow keys and Enter to open one.