# Generate invoice (Flow action) Triggers `POST /api/flow/generate-invoice` on the embedded app. Input: `order_id` (commerce object reference, type `order`). The `runtime_url` placeholder above is replaced by the Shopify CLI with the deployed app URL on `shopify app deploy`. For local dev with `shopify app dev` the CLI overrides it with the current tunnel URL automatically.