Receive CRM and Projects webhooks
Lead created or converted, deal moved, won or lost, task completed, timesheet approved.
A marketing tool, a dashboard or a neighbouring ERP needs to know right away that a lead comes in, that a deal changes stage, that a task is completed or that a timesheet is approved. These events are signed and retried like all QuoSuite webhooks.
| Event | When | Key scope |
|---|---|---|
crm_lead.created | new lead — screen, import, API | crm_leads:read |
crm_lead.converted | lead converted; data.conversion: account, contact, ERP record, deal | crm_leads:read |
crm_deal.created | new deal (entry, conversion, API) | crm:read |
crm_deal.stage_changed | entry into a stage; previous.stageId = stage left | crm:read |
crm_deal.won / crm_deal.lost | deal won / lost | crm:read |
project_task.created | new task or sub-task | projects:read |
project_task.completed | task entered a DONE column; previous.category | projects:read |
project_timesheet.approved | timesheet fully approved | project_time:read |
1. Subscribe
curl -X POST 'https://quosuite.com/api/public/v1/quosuite/webhooks/endpoints' \
-H "Authorization: Bearer $QUOSUITE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"url": "https://hooks.example.com/quosuite",
"events": [
"crm_deal.stage_changed",
"crm_deal.won",
"project_task.completed",
"project_timesheet.approved"
],
"description": "Sales dashboard"
}'The secret (whsec_…) is only returned on creation. You only receive what the key can read: a key with crm_leads:read alone cannot subscribe to deals (403).
2. What arrives
{
"id": "evt_4b5c6d7e8f9a0b1c2d3e4f5a",
"type": "crm_deal.stage_changed",
"apiVersion": "v1",
"perimeter": "QUOSUITE",
"createdAt": "2026-11-18T10:04:00.000Z",
"previous": { "stageId": "a1b2c3d4-…" },
"data": { "id": "fa576b0d-…", "title": "Workshop equipment", "stageId": "b4c5d6e7-…", "stageName": "Proposal", "probability": 50, "…": "…" }
}datais exactly what the resource’sGETroute would return (/crm/leads/{id},/crm/deals/{id},/projects/tasks/{id},/projects/timesheets/{id}), read after the write was committed.crm_lead.createdis sent as soon as the lead is entered; assignment by an automation follows a few moments later (read the lead again if you need its owner).project_timesheet.approvedis only sent when all the timesheet’s entries are approved (or invoiced): a partial approval sends nothing.data.entriesgives each entry, ready for payroll or billing.
3. Verify, deduplicate, respond
Verify X-QuoSuite-Signature on the raw body, answer 2xx within 10 s, process afterwards. Delivery is “at least once”: ignore an evt_… already processed, and compare data.updatedAt — arrival order is not guaranteed.
app.post('/quosuite', express.raw({ type: 'application/json' }), async (req, res) => {
if (!verifySignature(req.body, req.get('X-QuoSuite-Signature'), process.env.QUOSUITE_WEBHOOK_SECRET)) {
return res.sendStatus(401);
}
const event = JSON.parse(req.body.toString('utf8'));
res.sendStatus(200);
if (await seen(event.id)) return;
switch (event.type) {
case 'crm_deal.stage_changed':
await moveCard(event.data.id, event.previous?.stageId, event.data.stageId);
break;
case 'crm_deal.won':
await celebrate(event.data);
break;
case 'project_timesheet.approved':
await exportToPayroll(event.data.personName, event.data.weekStart, event.data.entries);
break;
}
});| Event | When | Scope |
|---|---|---|
quote.created | Quote created — by the application, the API, the POS or the shop. | sales:read |
quote.status_changed | Quote: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | sales:read |
sales_order.created | Customer order created — by the application, the API, the POS or the shop. | sales:read |
sales_order.status_changed | Customer order: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | sales:read |
delivery_note.created | Delivery note created — by the application, the API, the POS or the shop. | sales:read |
delivery_note.status_changed | Delivery note: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | sales:read |
invoice.created | Invoice created — by the application, the API, the POS or the shop. | sales:read |
invoice.status_changed | Invoice: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | sales:read |
invoice.paid | Invoice fully paid (balanceDue at 0). | sales:read |
credit_note.created | Customer credit note created — by the application, the API, the POS or the shop. | sales:read |
credit_note.status_changed | Customer credit note: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | sales:read |
purchase_order.created | Supplier purchase order created — by the application, the API, the POS or the shop. | purchases:read |
purchase_order.status_changed | Supplier purchase order: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | purchases:read |
goods_receipt.created | Goods receipt created — by the application, the API, the POS or the shop. | purchases:read |
goods_receipt.status_changed | Goods receipt: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | purchases:read |
purchase_invoice.created | Supplier invoice created — by the application, the API, the POS or the shop. | purchases:read |
purchase_invoice.status_changed | Supplier invoice: status change (validation, sending, delivery, invoicing, payment, cancellation). previous.status gives the status left. | purchases:read |
purchase_invoice.paid | Supplier invoice fully paid (balanceDue at 0). | purchases:read |
payment.created | Payment recorded (receipt or disbursement), with its allocation to documents. | payments:read |
partner.created | New partner (customer, supplier, or both). | partners:read |
partner.updated | Partner record updated. | partners:read |
article.created | New article in the ERP catalogue. | articles:read |
article.updated | Article updated (name, price, VAT, archiving…). | articles:read |
rental_booking.created | New rental booking — placed on the rental website or created through the API (source). The vehicle is already held in the planning. | rental_bookings:read |
rental_booking.status_changed | Change of a booking’s displayed status (PENDING_PAYMENT, REQUESTED, CONFIRMED, IN_PROGRESS, RETURNED, CANCELLED, EXPIRED) — whether it comes from the API, the website, the payment, the agency or the expiry of the hold. previous.status gives the status left. | rental_bookings:read |
rental_availability.updated | Planning of a vehicle changed (reservation created, moved, cancelled; agreement opened, closed, extended; block). Close changes are grouped: data is always the availability at the time of sending (next 90 days). | rental:read |
crm_lead.created | New lead — entered in the application, imported from a file or created through the API (a website form…). The “new lead” automations run separately: the assignment may follow a few moments later. | crm_leads:read |
crm_lead.converted | Lead converted: data.conversion gives the account, contact, ERP customer record and deal created or reused (the deal also triggers crm_deal.created). | crm_leads:read |
crm_deal.created | New deal — entered, from a lead conversion, or created through the API. | crm:read |
crm_deal.stage_changed | Deal entered a stage: moved (pipeline board, deal page, API) or reopened. previous.stageId gives the stage left (null on reopening). | crm:read |
crm_deal.won | Deal won (status: WON, closedAt set, probability 100%). | crm:read |
crm_deal.lost | Deal lost (status: LOST, lostReason filled in). | crm:read |
project_task.created | New task (or sub-task) — in the application or through the API. | projects:read |
project_task.completed | Task completed: entered a column of category DONE (board, task page, API). previous.category gives the category left. | projects:read |
project_timesheet.approved | Timesheet fully approved (all its entries approved or invoiced): the time is ready to bill or to carry into payroll. A partial approval sends nothing. | project_time:read |