A webhook is a short message StartProto sends to a web address the moment something happens: a sales order is created, a shipment is created, a work session ends. Another system receives the message and acts on it, such as posting in a chat channel, adding a row to a spreadsheet or creating an invoice in another program.
Webhooks are for the person at your shop who sets up tools like Zapier, or for a developer. If you only want people to be notified when something happens, use Notifications instead. They need no other system.
Before you start
You need a login that can open Settings → Business Setup. An owner always can. If it does not open for you, ask your account owner.
You need the web address to send to. StartProto does not create it. It comes from the system that will receive the message. In Zapier it is the address a "Catch Hook" step gives you. In a Google Sheet it is the address of an Apps Script.
Decide which event should trigger it. The full list is further down.
Create a webhook
Settings → Business Setup → Webhook Setup. The addresses in this list are examples.
1. Click Settings (the gear icon) in the left menu, then Business Setup. In the list on the left, under Advanced, click Webhook Setup.
2. Click the blue Create Webhook button at the top right. A window opens.
The list of events. It is long, so type a word to narrow it.
3. Click the Event Code box. A list of events opens. Click each event that should trigger this webhook. You can select more than one. Type a word, such as "shipment", to narrow the list.
One event and an example address, ready to save.
4. Press the Esc key to close the list. Each event you picked shows as a small gray label in the box. Click the x on a label to remove that event.
5. Webhook URL: paste the web address from the other system. It starts with "https://".
6. Enabled: leave it checked. If it is cleared, the webhook is saved but switched off.
7. Click Save. It stays grayed out until at least one event is selected. Cancel closes the window without saving.
What you'll see
The webhook is in the list. StartProto says at the top of the page that a new or changed webhook can take up to 5 minutes to start working. After that, each time the event happens, a message is sent to your address.
Read the list
Each row is one webhook.
1. Event Code: the event or events that trigger it.
2. Webhook URL: the address the message goes to.
3. Enabled: checked means the webhook is switched on.
4. Deactivated shows Yes in red when StartProto has stopped sending to that address because it failed three times in a row. See "If it goes wrong" below.
5. A dash under Deactivated means it is working.
6. The red trash can icon removes the webhook.
7. Refresh loads the list again, for example to see whether a webhook has been deactivated since you opened the page.
To change a webhook, change its event or its address in the row, or clear Enabled to pause it. An Update button then appears at the top right. Click it to save the change.
Careful
The red trash can icon removes the webhook immediately. It does not ask for confirmation.
What the message says
The message is intentionally short. It says which event happened and gives the id of the record it is about. It does not include the customer, the lines or the amounts.
For those details, the system that receives the message requests the record from StartProto, using the id. In Zapier, add a StartProto "get" step after the trigger. A developer does the same with StartProto's API.
The events you can pick
There are about a hundred events. Each has a number and a name, and the numbers group them:
Starts with | What it covers |
Comments | A comment was added to a record. |
00 | Someone signed in. |
02 | Work sessions: started, paused, resumed, ended, edited, parts scrapped during a session, a guided step changed. |
03 and 04 | Make items and buy items: created, edited, deleted. |
05 | Stock and files: stock adjusted, added or removed, the schedule adjusted, a file uploaded, a file link opened, a stock take submitted. |
06 | Customers: created, edited, deleted. |
08 | Sales orders, their lines and their charges: created, edited, deleted. |
09 | Purchase orders, their lines and their charges: created, edited, deleted. Also 09.03 - PO Line Item received. |
11 | Shipments: created, edited, deleted. |
12 | Quotes: created, edited, deleted. |
13 | Invoices: created, edited, deleted. |
14 | Receipts: created, edited, deleted. |
15 | Jobs: created, edited, deleted. |
16 | Services: created, edited, deleted. |
17 | Someone opened a report page. |
18 | Service shipments (parts sent to an outside vendor): created, edited, deleted. |
19 | Processes: created, edited, deleted. |
35 | Stock takes: created, edited, deleted, canceled. |
36 | Bills: created, edited, deleted. |
37 | Operations: created, edited, deleted. |
40 | Payments, checks, bank deposits and payment runs. |
The most commonly used events are:
To act when | Pick |
A new order is entered | 08.00 - SO created |
An order ships | 11.00 - Shipment created |
An invoice is created | 13.00 - Invoice created |
Material arrives | 09.03 - PO Line Item received |
An operator finishes a work session | 02.03 - Session ended. |
Parts are scrapped | 02.04 - Session scrapped parts/made NCRs mid-session |
Someone leaves a comment | Comments |
If it goes wrong
Nothing arrives. A new webhook can take up to 5 minutes to start. Wait, then trigger the event again, for example by creating another test order.
Deactivated says Yes. The address did not respond, or responded with an error, three times in a row, so StartProto stopped sending. Fix the problem in the other system first. Then change the row and click Update, or remove the webhook and create it again.
The other system receives an id but no details. Webhooks send only the id. Have the other system request the record from StartProto: see "What the message says" above.
You need to know when a job is finished. There is no event for that. 15.01 - Job edited is triggered by many kinds of change, so it is not a reliable substitute. Message StartProto support and describe what you need.
The comment message has no comment in it. It contains only the id, like every other event.
There are too many messages. "Edited" events are triggered on every save. Use the "created" event if that is what you need.
Good to know
Use one address for each kind of event. Different events need different handling at the other end, so give each its own address rather than sending two kinds to one.
Zapier is the quicker option. Zapier's own StartProto steps sign in for you and already include the common events. Use a plain webhook when you need an event Zapier does not offer, or when a developer is building the receiving system: see The Integrations page.
For the developer. To read a record, sign in to StartProto's API first, then ask for the record by its id. The sign-in lasts less than an hour, so sign in each time a message arrives.
A webhook only sends. It never lets the other system change anything in StartProto.
To notify people rather than systems, use a notification under the bell or by email instead: see Notifications.




