Files
go-cart-actor/pkg/order/flows/fulfill-order.json
T
2026-07-01 10:40:28 +02:00

18 lines
598 B
JSON

{
"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_customer_email", "params": { "template": "fulfillment-shipped" } },
{ "type": "fulfillment_webhook", "params": { "url": "", "method": "POST" }, "continueOnError": true }
]
}
}
]
}