Skip to main content

The developer platform — partner apps, the public API and webhook events

Other software can work with your company's data: a route planner reading your customers, a tax filer reading your sales, a script of your own. This page is about the three ways that happens, and the screens where you decide who may.

  • Partner apps ask for access through a consent screen. You see what the app wants, and you allow or deny it. Settings → App directory lists the apps you may install and the ones you have.
  • API keys are for your own systems — a till, a webstore. They are on Settings → Integrations → API clients and have their own page.
  • Webhooks tell another system when something happens here. Settings → Developer → Webhook events lists every event they can be told about.

If your company builds an app of its own for other companies, Settings → Developer → Your apps is where you register it.

Allowing an app​

A partner app sends you to a page that says " wants to work with ", and lists what it will be able to do — each item is one permission, such as See customers. Items marked Moves money, stock or access deserve a second look.

  1. Check the company named on the page. The app is allowed in the company you are signed in to; switch company first if it is the wrong one.
  2. Read the list. If the app asks for something you do not hold yourself, the page says so and you cannot allow it: an app never gets more than the person who lets it in.
  3. Choose Allow or Deny. Either way you are sent back to the app.

The app acts as you. It can do what you can do, limited to what you allowed, and nothing more. If your role changes, the app's access changes with it at once; if you leave the company, the app stops.

The first time an app is allowed in a company, it is installed there. Only an administrator can do that. If the page says Allowing this also installs the app, and you are not an administrator, ask one to install it from the App directory first.

The app directory​

Settings → App directory shows:

  • Apps you can install — apps reviewed for every company, and any app your own company is building (marked Yours). Each card says what the app asks for.
  • Installed in this company — every app let in, what it may do, and any that were removed, with when and why.

An administrator can Install an app (untick anything it should not do) and Uninstall one. Uninstalling asks why, and stops the app at once: every token it holds for your company stops working on its next request. Your data stays exactly as it is.

Webhook events​

Settings → Developer → Webhook events lists every event a webhook can receive: its name, its version and the fields it sends. When you add a webhook on Settings → Integrations → Webhooks, the form shows what each event you chose will send. The full reference, with how to check that a request really came from us, is Webhook events.

Registering an app your company builds​

On Settings → Developer → Your apps, choose Register a partner app (also in the command palette):

  1. Give it a name and say what it does — companies read both on the consent screen.
  2. Add its redirect addresses: the exact addresses the consent screen may send the person back to. Use https; http only works for your own computer (127.0.0.1) while you build.
  3. Choose its scopes: the most it may ever ask a company for.
  4. Say where it runs. An app on a server gets a client secret; an app in a browser or on a phone gets none.
  5. Choose Register. The client id and the secret are shown once — store the secret in your app's secret store before you close the dialog. Lost it? Choose New secret; the old one stops working at once.

A new app is a draft: it works in your own company only, so you can build against your own data. When it is ready, choose Submit to the directory. Once platform review lists it, every company can install it. If the reviewer sends it back instead, it returns to Draft with their note on the app: change what it says and submit again.

Common mistakes​

  • "did not register the address it asked to be sent back to" — the app's redirect address must match one you registered letter for letter, including the path. Add it on the app, or fix the app.
  • "asked for … which you do not hold here" — the person allowing the app lacks a permission it wants. Ask somebody who holds it, or have the app ask for less.
  • The app stopped working. Somebody uninstalled it, the person who allowed it left or lost the permission, or the app was suspended. The installed list says which.

FAQ​

Can an app see another company's data? No. An app is allowed in one company at a time, by somebody who works there, and its tokens reach that company only.

Where are app secrets kept? Nowhere readable. We keep a one-way fingerprint of each secret and of each token, so even we cannot show one again.

Is there an SDK? Yes, for TypeScript: @erp/sdk, described with the routes in the Public API reference.