Commit staged payment batch with dual control
commit_payment_batchCommit an authorized staged payment batch using dual-control verification, transitioning it from staged to committed and optionally writing the verified ISO 20022 XML to a file.
Instructions
Commit an authorized staged payment batch with dual-control authorization.
Verifies the stage ID and validates the secondary confirmation token
using constant-time cryptographic comparison (preventing timing attacks).
Transitions the order status from 'staged' to 'committed'. Optionally
writes the verified XML payload to the specified destination path.
Args:
stage_id: Staging identifier from stage_payment_batch.
confirmation_token: Secondary secret confirmation token.
output_file_path: Optional path to write the committed XML document.
Returns:
CommitPaymentBatchResult with commit timestamp and fingerprint,
or {"error": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage_id | Yes | The staging identifier returned by stage_payment_batch. | |
| output_file_path | No | Optional local filesystem destination path to write the committed XML document. | |
| confirmation_token | Yes | Secondary authorization token required to execute the dual-control commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | No | ||
| stage_id | No | ||
| committed_at | No | ||
| output_file_path | No | ||
| sha256_fingerprint | No | ||
| total_transactions | No |