Corgi BankDocumentation
OpenAPI

Fetch a processing date's clearing files from the configured source

POST/cards/clearing/fetches

Verified staff on the card clearing desk's narrow scopes only: cards:clearing:read for reads, cards:clearing:write with a step-up within five minutes for writes; cards:write does not reach these routes and no service token or API key does. The file formats are bank-defined approximations of the proprietary Visa BASE II, Mastercard IPM and Discover clearing specifications (services/cards/clearing/README.md); a file from the card clearing simulator is simulated, not network traffic. Pulls a nonfuture processing date's files for a network from the configured source (CARD_CLEARING_SOURCE: the card clearing simulator locally, or a directory a transfer agent fills) and retains each as an upload would; a file already retained replays. 409 conflict when no source is configured. The source is not network connectivity.

Headers

Idempotency-KeystringOptional

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

networkstringRequired
processing_datestring · dateRequired

A business date, YYYY-MM-DD

Returns

200 OK

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close