|
1 |
| -### Seat Management Embed |
| 1 | +# Seat Management Embed |
| 2 | + |
| 3 | +!!! warning "Note" |
| 4 | + This embed will require code to be placed in your server |
2 | 5 |
|
3 | 6 | 1. Go to "Embeddables"
|
4 | 7 | 1. Click on `Seat Management`
|
5 |
| -1. Copy the HTML given |
6 |
| -1. Paste on your existing site where you would like a seat management page to be generated |
7 |
| -1. Pass a token to the embed for the user you want to manage seats |
8 |
| -##### Seat Management options |
| 8 | +1. Select your backend language/framework |
| 9 | +1. Place the server code in your server |
| 10 | +1. Place the client code on the client, and insert the token from the server when a logged in user visits the page |
| 11 | +1. Customers can now add/remove the seats attached to their subscription |
| 12 | + |
| 13 | +## Seat Management options |
9 | 14 |
|
10 | 15 | | Attribute | Type | Description |
|
11 | 16 | | ------------- |:-------------:| -----:|
|
|
14 | 19 | | token | string | JSON Web Token for the user who owns a service instance you want to manage the seats of|
|
15 | 20 | | [serviceInstanceId] | string | used if the user owns multiple service instances, pass the instance id of the specific instance|
|
16 | 21 |
|
17 |
| -##### Example Seat Management Config |
| 22 | +## Example Seat Management Config |
18 | 23 | ```javascript
|
19 | 24 | Servicebot.SeatManagement({
|
20 | 25 | url : "https://example.serviceshop.io",
|
21 | 26 | selector : document.getElementById('servicebot-seat-management-form'),
|
22 | 27 | token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOjMzLCJpYXQiOjE1MzczNzY4MTgsImV4cCI6MTUzNzM4NzYxOH0.yrhyVmzHprR-7b--SpnwaH7ylKjd6q4-isgnm782Q8I"
|
23 | 28 | })
|
24 | 29 | ```
|
| 30 | + |
| 31 | +## Tips |
| 32 | +- There will be a webhook called everytime a seat is invited |
| 33 | +- You should set your invite url in the seat management settings to direct to a page with a login embed |
| 34 | +- You can tie a metric based service to seats on edit page for a service |
| 35 | +- The invite email can be configured on the `Settings -> Email Settings -> Invite` page |
0 commit comments