Collection of events that can trigger webhook notifications from Rackbeat.
This event catalog for Rackbeat's webhooks is a structured list of events that can trigger webhook notifications. It provides details about relevant events, e.g. name, description, and the data payload it carries when sent via webhook. This catalog helps developers understand what events they can subscribe to and how to handle the corresponding data.
General Format for Webhook Delivery
Headers
Upon creating a new webhook, a 32-character "token" will be given to you. Store this token securely. It will be passed on every webhook in a Rackbeat-Webhook-Token
header, and can be used to verify that the origin is Rackbeat.
Every webhook request includes these headers:
Rackbeat-Webhook-Token
: Your webhook's verification tokenRackbeat-Webhook-Event
: The event that triggered the webhookRackbeat-Account-Id
: Your Rackbeat account IDUser-Agent
: "Rackbeat Webhook"
Payload Structure
The payload structure varies by event type, but generally includeskey
and key_name
(name of the id/number/identifier/key for the element, which usually is "number" or "id"):
{
"key": 123,
"key_name": "id",
"event": "order.created",
"data": {
// Event-specific data
}
}
For "updated" events, additional fields are included:
old_key
: Previous identifier value (old id/number/identifier/key of the element). Included in case it was changed, but generally always supplied.new_key
: New identifier value (new id/number/identifier/key of the element). Included in case it was changed, but generally always supplied.changed
: Updated data (array of keys).
Account & Settings
Entity | Event name | Extra info |
---|---|---|
Delivery terms |
| Delivery terms API |
Employees |
| Employees API |
Payment terms |
| Payment terms API |
Plugins |
| |
Tabs (Iframes) |
| Tabs API |
Items, Products & BoMs
ℹ️ Read more about the differences between items, products and bill of materials as well as batches, collections, locations and units in our guide "Intro to Items, Products & BoMs".
Entity | Event name | Extra info |
---|---|---|
Batches |
| Batches API |
Collections |
| Collections API |
Item cost price |
| Items API |
Item translations |
| ℹ️ Returns changes for translations. Payload type can be description or name. |
Locations |
| Locations API |
Bill of Material (lot) |
| BoM API |
Products |
| Products API |
Units |
| Units API |
Inventory & Movements
ℹ️ Read more about managing your warehouse operations, including stock adjustments, internal movements, checking processes, and inventory transactions in our guide "Intro to Inventory".
Inventory changes
Good to know:
- Events will be sent for changes in inventory for BoMs (lots) and products.
- Type can be any of
stock
,available
,in_order
,purchased
.
Event name | Example data | Extra info |
---|---|---|
inventory.changed : any change to inventory for an item. | {"item": "robot", "item_type": "product", "previous": 1, "current": 2, "action": "increased", "type": "stock"} | |
inventory.reached_zero : once an item has zero (0) in inventory. | {"item": "robot", "item_type": "product", "previous": 2, "current": 0, "type": "available"} | |
inventory.reached_minimum : once an item has reached the set minimum stock in inventory. | {"item": "robot", "item_type": "lot", "previous": 200, "current": 100, "minimum": 150, "type": "stock"} | ℹ️ will only trigger for stock |
Inventory transactions
Event name: inventory_transaction.created
Example payload:
{
"id": 1,
"item": {
"number": "shoe-box-1001",
"type": "product",
"totals": {
"value": 377.5,
"quantity": 250,
"cost_price": 1.51
}
},
"location": {
"number": 1000,
// Totals are for item on that location, not for the location alone.
"totals": {
"value": 151.0,
"quantity": 100,
"cost_price": 1.51
}
},
"quantity": 100,
"cost_price": 1.51,
"effective_from": "2019-08-01T11:39:10.958426+00:00"
}
Movements
Event name: movement.booked
Purchasing & Suppliers
Entity | Event name | Extra info |
---|---|---|
Suppliers |
| Supplier API |
Supplier contacts |
| Supplier API |
Supplier invoices |
| Supplier Invoice API |
Purchase orders |
| Purchase Order API |
Purchase receipts |
| Purchase Receipts API |
Sales & Customers
Entity | Event name | Extra info |
---|---|---|
Customers |
| Customer API |
Customer contacts |
| Customer API |
Customer invoices |
| Customer Invoices API |
Orders |
| Orders API |
Shipments |
| Shipments API |
Shipments / Picking |
| Shipments API |
Example payload for order shipment lines:
{
"key": 123, // Line ID
"key_name": "id", // Name of the key in Rackbeat. For shipment lines its "id".
"shipment_id": 1, // The related shipment's ID
}