first version

This commit is contained in:
Gerhard Scheikl
2026-04-28 21:56:11 +02:00
parent 0f75dbaccb
commit 5b2aa5d62b
50 changed files with 5514 additions and 481 deletions
@@ -0,0 +1,8 @@
# Send invoice email (Flow action)
Triggers `POST /api/flow/send-invoice-email` on the embedded app.
Inputs:
- `order_id` (commerce object reference, type `order`, required)
- `recipient_email_override` (single line text, optional)
If no invoice exists yet for the order, the endpoint generates one first.
@@ -0,0 +1,25 @@
api_version = "2026-01"
uid = "755ff6f6-8f68-10df-5f23-2244a5eed905c7b67bc4"
[[extensions]]
name = "Send invoice email"
type = "flow_action"
handle = "flow-send-invoice-email"
description = "Sends the generated PDF invoice via email to the order's customer (or an override address)."
runtime_url = "https://example.com/api/flow/send-invoice-email"
[extensions.settings]
[[extensions.settings.fields]]
type = "single_line_text_field"
key = "order_id"
name = "Order ID"
description = "The order's GID (use Liquid: {{order.id}} when configuring the workflow)."
required = true
[[extensions.settings.fields]]
type = "single_line_text_field"
key = "recipient_email_override"
name = "Recipient email (optional)"
description = "If set, sends to this address instead of the customer's email on the order."
required = false