Automate Production
Integrate production workflows with your systems to track manufacturing operations and maintain real-time visibility.
Capabilities
Section titled “Capabilities”- Track production events as inventory is produced
- Monitor production metrics and yields
- Trigger downstream workflows from production events
Track Production Events
Section titled “Track Production Events”Register a webhook to receive notifications when inventory is produced:
curl -X POST "https://api.tracktile.io/hooks" \ -H "Authorization: Bearer api-YOUR_TOKEN_HERE" \ -H "Content-Type: application/json" \ -d '{ "name": "Production Events", "url": "https://your-system.com/webhooks/production", "on": "inventory.produced" }'Handle Production Webhooks
Section titled “Handle Production Webhooks”app.post('/webhooks/production', (req, res) => { // Verify the webhook signature (see Webhook Security docs) const event = verifyWebhook(req, process.env.WEBHOOK_SECRET);
if (event.kind === 'inventory.produced') { const { entities, flowId, transactionId } = event;
// Process each produced item for (const entity of entities) { recordProduction({ entityId: entity.id, entityName: entity.name, productId: entity.productId, quantity: entity.quantity, producedAt: event.time, }); } }
res.status(200).send('OK');});Related Events
Section titled “Related Events”| Event | Description |
|---|---|
inventory.produced | Inventory created via production/transformation |
inventory.received | Inventory received from external sources |
inventory.modified | Inventory attributes or correlations updated |
inventory.destroyed | Inventory consumed or destroyed |