Briefe im Stapel versenden
order_send_batchVersendet mehrere Briefe in einem Stapel. Jeder Eintrag wird einzeln geprüft, bepreist und versendet; ein fehlerhafter Eintrag lässt den Rest des Stapels weiterlaufen (mit stopOnError hält der Stapel dort an). Der ganze Stapel wird als EINE einzige Freigabe für alle Empfänger zusammen eingereicht: der Mensch sieht die Empfängerliste, die Anzahl und die Gesamtkosten und entscheidet mit einem approval_decide über alles. Bei Freigabe gehen alle Einträge raus, bei Ablehnung wird die gesamte Reservierung zurückgebucht. Mit dryRun bleibt es bei der Probe: kostenfrei, und die Briefe bleiben liegen. EN: Sends several letters in one batch. Each entry is checked, priced and sent individually; a failing entry lets the rest of the batch continue (with stopOnError the batch stops there). The whole batch is submitted as ONE single approval covering every recipient: the human sees the recipient list, the count and the total cost and decides on all of it with a single approval_decide. On approval every entry goes out, on rejection the entire reservation is refunded. With dryRun it stays a rehearsal: free of charge, and the letters stay put.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Liste der Briefe im Stapel. Jeder Eintrag traegt seinen eigenen clientOrderId und genau eine Quelle: eine letterId ODER einen inline Brief. EN: List of letters in the batch. Each entry carries its own clientOrderId and exactly one source: a letterId OR an inline letter. | |
| dryRun | No | Simuliert den ganzen Stapel: prueft jeden Eintrag, berechnet aber nichts und versendet nichts. EN: Simulates the whole batch: validates each entry but charges nothing and sends nothing. | |
| presetName | No | Optionales Preset fuer den ganzen Stapel; pro Eintrag ueberschreibbar ist nicht vorgesehen. EN: Optional preset for the whole batch; per-entry override is not supported. | |
| stopOnError | No | Bricht den Stapel beim ersten Fehler ab. Standard false. EN: Aborts the batch on the first error. Default false. |