Simulate clearing network execution
simulate_clearingSimulate settlement and clearing for a staged payment batch across EPC-SEPA, FedNow, US-ACH, SWIFT-MX, CHAPS, or BACS to verify eligibility, routing, cut-offs, and settlement windows.
Instructions
Simulate settlement and clearing network execution for a staged batch.
Evaluates network-specific rulebooks and clearing constraints:
- EPC-SEPA: EUR currency mandate, SEPA-zone IBAN prefixes, SLEV charge bearer.
- FedNow: USD instant gross settlement eligibility.
- US-ACH: USD next-day clearing cycle routing.
- SWIFT-MX: Cross-border correspondent banking BIC routing.
- CHAPS: Same-day RTGS high-value GBP clearing.
- BACS: Three-day GBP direct credit clearing.
Args:
stage_id: Staging identifier from stage_payment_batch.
clearing_system: Clearing rail profile to simulate.
Returns:
SimulateClearingResult with verdict (ACCEPTED / REJECTED), detailed
checks, and estimated settlement window, or {"error": ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage_id | Yes | The staging identifier returned by stage_payment_batch. | |
| clearing_system | No | Target clearing system simulation profile to evaluate settlement eligibility, cut-off windows, and routing constraints. | EPC-SEPA |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| checks | No | ||
| stage_id | No | ||
| clearing_status | No | ||
| clearing_system | No | ||
| settlement_window | No |