Webhook events

All webhook payloads follow a consistent structure:

interface BaseWebhookEventPayload<D extends Record<string, unknown>> {
  event: WebhookEventName;                  // The event name (e.g., 'invoice:create')
  data: D;                                  // Event-specific data
  status: 'success' | 'error' | 'pending';  // Event status
}

Payload Fields

  • event (string): The name of the event that triggered the webhook
  • data (object): Event-specific data containing relevant information
  • status (string): The status of the event (success, error, or pending)

Event Reference

Events and Payloads Overview

Event NameDescriptionWhen Triggered
invoice:createNew invoice createdWhen a new invoice is successfully created in the system
invoice:updateInvoice updatedWhen an existing invoice is modified (amounts, dates, items, etc.)
invoice:deleteInvoice deletedWhen an invoice is successfully deleted from the system
invoice:status_changedInvoice status changedWhen invoice status transitions (e.g., pending → paid, pending → overdue)
invoice:procurement_addedProcurement item addedWhen a procurement item (product, service, or product varier) is added to an invoice
invoice:procurement_updatedProcurement item updatedWhen a procurement item on an invoice is modified (quantity, price, tax, etc.)
invoice:procurement_removedProcurement item removedWhen a procurement item is removed from an invoice
product:createProduct createdWhen a new product is successfully created in the system
product:updateProduct updatedWhen an existing product is modified
product:deleteProduct deletedWhen a product is successfully deleted from the system
service:createService createdWhen a new service is successfully created in the system
service:updateService updatedWhen an existing service is modified
service:deleteService deletedWhen a service is successfully deleted from the system
pos:createPOS createdWhen a new POS is successfully created in the system
pos:updatePOS updatedWhen an existing POS is modified
pos:deletePOS deletedWhen a POS is successfully deleted from the system
customer:createCustomer createdWhen a new customer is successfully created in the system
customer:updateCustomer updatedWhen an existing customer is modified
customer:deleteCustomer deletedWhen a customer is successfully deleted from the system
vendor:createVendor createdWhen a new vendor is successfully created in the system
vendor:updateVendor updatedWhen an existing vendor is modified
vendor:deleteVendor deletedWhen a vendor is successfully deleted from the system
external_revenue:createExternal revenue createdWhen a new external revenue is successfully created in the system
external_revenue:updateExternal revenue updatedWhen an existing external revenue is modified
external_revenue:deleteExternal revenue deletedWhen an external revenue is successfully deleted from the system
expense:createExpense createdWhen a new expense is successfully created in the system
expense:updateExpense updatedWhen an existing expense is modified
expense:deleteExpense deletedWhen an expense is successfully deleted from the system
purchase_order:createPurchase order createdWhen a new purchase order is successfully created in the system
purchase_order:updatePurchase order updatedWhen an existing purchase order is modified
purchase_order:deletePurchase order deletedWhen a purchase order is successfully deleted from the system
table:createTable createdWhen a new table is successfully created in the system
table:updateTable updatedWhen an existing table is modified
table:deleteTable deletedWhen a table is successfully deleted from the system
shop_order:initiatedShop order initiatedWhen a new shop order is initiated
shop_order:completedShop order completedWhen a shop order is marked as completed
shop_order:status_changedShop order status changedWhen a shop order's status changes
payment:record:invoicePayment recorded for invoiceWhen a payment is recorded for an invoice
payment:record:posPayment recorded for POSWhen a payment is recorded for a POS transaction
payment:record:external_revenuePayment recorded for external revenueWhen a payment is recorded for external revenue
payment:record:shop_purchasePayment recorded for shop purchaseWhen a payment is recorded for a shop purchase
payment:record:expensePayment recorded for expenseWhen a payment is recorded for an expense
payment:record:purchase_orderPayment recorded for purchase orderWhen a payment is recorded for a purchase order
payment:remove:invoice:paymentPayment removed from invoiceWhen a payment is removed from an invoice
payment:remove:posPayment removed from POSWhen a payment is removed from a POS transaction
payment:remove:external_revenuePayment removed from external revenueWhen a payment is removed from external revenue
payment:remove:shop_purchasePayment removed from shop purchaseWhen a payment is removed from a shop purchase
payment:remove:expensePayment removed from expenseWhen a payment is removed from an expense
payment:remove:purchase_orderPayment removed from purchase orderWhen a payment is removed from a purchase order