Get started
Get installed at a restaurant
How a restaurant installs your app from its dashboard, what your app can do afterward, and what happens when you ask for more access or the restaurant removes it.
A restaurant gives your app access by installing it from the Maple dashboard. You cannot send an install link. Tell the restaurant where to click, using the steps below.
Before you start
- Maple has certified your app. See Going live.
- Your app has a published listing. In the console, fill in the listing, pass the go-live checks, submit the app for review, and publish once Maple approves. Only published listings appear to restaurants.
- Your listing asks for the permissions your app needs and no more. Restaurants see them in plain words and approve exactly those.
Test restaurants cannot take installs. In test mode the console grants your app access for you.
What the restaurant does
Send these steps to a store admin of the restaurant. Only a store admin can install an app.
Open Apps
In the dashboard, open Location settings and choose Apps. The tab lists every published app.
Read the listing
Open your app. The page shows its description and a list headed This app will be able to, one line per permission.
Pick locations
Under Install on, tick each location to give the app. The list holds the locations the person administers, grouped by brand.
Approve
Choose Approve. Each ticked location shows Installed.
Approval makes one grant per location, with exactly the permissions on your listing. Approving one location does not cover another.
What your app can do afterward
- Calls to the location that need an approved permission now work, if your key also holds that scope. Reading orders, the catalog and delivery zones needs only the grant and the read scope. If you subscribe to
store.provisioned, Maple sends it when the grant is made. - To receive the location’s orders, connect your app with
POST /v1/locations/{locationId}/connection. The connection needs theconnections:writescope on your key and the restaurant’s approval oforders:read. Publishing the catalog, changing delivery zones and deciding orders also need that connection. See Receive and decide orders. - A call that needs a permission the restaurant has not approved fails, or leaves that data out, until the restaurant approves. See Errors.
- A location your app has no access to is treated as if it did not exist.
Ask for more access later
Say your listing needs a new permission. Change the permissions in the console and submit the app for review. Any change to the permissions of a published listing, wider or narrower, goes to Maple first. Until Maple approves, publishing is refused. Once it approves, publish again.
Restaurants that installed before the change keep what they approved. Calls that need a new permission fail until the restaurant installs again. The restaurant sees Wants more permissions beside your app in the Apps tab and under Location settings, Integrations, Connected apps. It reads the new permissions and chooses Approve. Installing again replaces the approval with what your listing asks for now. Your key must hold the new scope too: a key that lists its own scopes does not gain it, so make a new live key that includes it.
When access is removed
A store admin can remove your app under Location settings, Integrations, Connected apps. There are two buttons:
- Disconnect stops orders going to your app at that location. The app keeps its grant and can connect again.
- Revoke ends the grant and disconnects the app. Calls for that location answer
404, and if you subscribe tostore.deprovisioned, Maple sends it. The restaurant can install again from Apps.