{ "name": "fulfill-order", "description": "Create a fulfillment (shipment) for an order and send the shipping notification to the customer.", "steps": [ { "name": "fulfill", "action": "create_fulfillment", "hooks": { "after": [ { "type": "log", "params": { "message": "fulfillment created" } }, { "type": "send_email", "when": "has_order_email_consent", "params": { "template": "fulfillment-shipped" } }, { "type": "fulfillment_webhook", "params": { "url": "", "method": "POST" }, "continueOnError": true } ] } } ] }