Skip to main content
Docs

Reconciliation

A daily job compares your Stripe account with the mandate ledger and the record and writes down the differences as breaks. Balance coverage compares your available Stripe balance with the money held for mandates. Recovery tasks are proposals the system derives from Stripe; a person confirms them.

The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.

At a glance#

Objects

ReconRun and ReconBreak

ReconRun and ReconBreak (example values)
{ "id": "rrun_6543a1b2c3d4e5f6a7b8cf50", "object": "recon_run", "livemode": true, "connection": "sconn_6543a1b2c3d4e5f6a7b8ca31",
  "run_date": "2026-12-20", "status": "completed",
  "counts": { "mandates": 12, "stripe_objects": 143, "breaks_opened": 1, "breaks_auto_resolved": 0 },
  "started_at": "2026-12-20T06:00:00.000Z", "completed_at": "2026-12-20T06:01:12.000Z", "error": null }

RecoveryTask

RecoveryTask (example values)
{
  "id": "rtask_6543a1b2c3d4e5f6a7b8cf60",
  "object": "recovery_task",
  "livemode": true,
  "kind": "b2b_release_transfer_unrecorded",
  "status": "open",
  "mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
  "object_ref": { "kind": "release", "id": "rel_6543a1b2c3d4e5f6a7b8cd50" },
  "stripe_id": "tr_1Qrel3",
  "details": { "allocation": "rel_6543a1b2c3d4e5f6a7b8cd50:1", "amount": 1400000 },
  "auto_attempts": 3,
  "next_auto_attempt_at": null,
  "proposal": {
    "action": "adopt", "lookup_at": "2026-12-22T10:25:00.000Z", "lookup_calls": ["transfers.list(transfer_group=man_…)"],
    "stripe_state": { "objects": [ { "id": "tr_1Qrel3", "status": "paid", "amount": 1400000, "destination": "acct_1QpayeeX" } ] },
    "computed_at": "2026-12-22T10:25:01.000Z"
  },
  "resolution": null,
  "created_at": "2026-12-22T10:10:00.000Z",
  "updated_at": "2026-12-22T10:25:01.000Z"
}

BalanceCoverage

BalanceCoverage (example values)
{
  "object": "balance_coverage",
  "livemode": true,
  "connection": "sconn_6543a1b2c3d4e5f6a7b8ca31",
  "status": "warning",
  "currency": "usd",
  "available_amount": 1200000,
  "pending_amount": 300000,
  "held_amount": 1500000,
  "required_amount": 1400000,
  "fees_funded_by_tenant_amount": 41000,
  "shortfall_amount": 200000,
  "upcoming_releases_amount": 600000,
  "upcoming_window_days": 7,
  "payout_protection": { "state": "automatic", "interval": "daily", "attested_minimum_amount": null },
  "guidance": { "key": "connection.heldNotLocked", "text": "Money held for your Projects stays in your own Stripe balance. Stripe takes its processing fees from that balance while Providers are paid the full agreed amounts, so keep at least $410.00 of your own money in Stripe. The balance is not locked: Stripe's automatic payouts can send it to your bank, after which releases wait until the balance is restored. Set platform payouts to manual, or a minimum balance of at least $14,000.00, in your Stripe settings." },
  "checked_at": "2026-12-20T12:00:00.000Z"
}

Endpoints

GET/recon/runs

Credential
Member session
Permission
recon.read
Mode
scoped
Pagination
cursor

Request

status (multi), run_date[gte|lte]. · Response: 200 ListResponse<ReconRun>.

GET/recon/runs/:id

Credential
Member session
Permission
recon.read
Mode
scoped

GET/recon/breaks

Credential
Member session
Permission
recon.read
Mode
scoped
Pagination
cursor

Request

status (multi; default open,explained), type (multi), severity (multi), mandate, detected_at[gte|lte].

Response

200 ListResponse<ReconBreak>.

GET/recon/breaks/:id

Credential
Member session
Permission
recon.read
Mode
scoped

POST/recon/breaks/:id/explain

Credential
Member session
Permission
recon.resolve
Mode
scoped
Idempotency
honoured

Request

note string required (10–2000).

Response

200 ReconBreak (explained; the note is appended to explanations).

Errors

409 invalid_state_transition (already resolved). · Records: recon.break_explained (note digest).

POST/recon/breaks/:id/resolve

Credential
Member session
Permission
recon.resolve
Mode
scoped
Step-up
live for a critical break
Idempotency
honoured

Request

note string required (10–2000; : a member note always closes a break); kind string required (explained, corrected_by_entry, false_positive); correction_seq integer (required with corrected_by_entry: the record.correction entry).

Response

200 ReconBreak (resolved).

Errors

409 invalid_state_transition; 400 parameter_invalid (correction_seq not a correction entry of this chain).

Record and events

recon.break_resolved (+ mandate.hold_lifted for a bypass break) · Events: reconciliation.break_resolved.

Notes

resolving an invariant_violation break re-runs the invariant check; the mandate's invariant_breach hold lifts only if it now passes (mandate.invariant_restored). Resolving a bypass break (*_outside_holdyn) lifts its bypass_review hold: the ledger effect was applied at detection, and the resolution records what the tenant did about it; the break stays on the record and in evidence packs.

GET/balance-coverage

Credential
Member session
Permission
connection.read
Mode
scoped

Errors

409 connection_missing.

POST/balance-coverage/refresh

Credential
Member session
Permission
connection.read
Mode
scoped
Idempotency
honoured

Response

200 BalanceCoverage (fresh GET /v1/balance and payout-schedule read; at most once per minute per connection, else 429 rate_limited).

Record and events

connection.balance_shortfall / connection.balance_restored and connection.payout_protection_lost / connection.payout_protection_restored when a status crosses · Events: connection.balance_shortfall, connection.payout_protection_lost / connection.payout_protection_restored.

GET/recovery-tasks

Credential
Member session
Permission
recon.read
Mode
scoped
Pagination
cursor

Request

status (multi; default open), kind (multi), mandate, has_proposal boolean.

Response

200 ListResponse<RecoveryTask>.

GET/recovery-tasks/:id

Credential
Member session
Permission
recon.read
Mode
scoped

POST/recovery-tasks/:id/resolve

Credential
Member session
Permission
recon.resolve
Mode
scoped
Idempotency
honoured

Request

confirm boolean required (true: confirm the system's proposal as shown); proposal_computed_at timestamp required (the proposal.computed_at the member reviewed); note string required (20–2000).

Response

200 RecoveryTask (resolved, resolution.how: confirmed).

Errors

409 invalid_state_transition (not open; current_state: "no_proposal" when the system could not align the records from Stripe lookups — Holdyn support looks and inbox recovery_stuck stays open — and also when no domain applier exists for the proposal (details.reason: "no_applier"); current_state: "proposal_changed" when the proposal was recomputed after the member saw it — review it again).

Record and events

recovery.resolved (how: "confirmed", note digest) plus the aligning transition's own entries. - Notes: a member never writes a free-form alignment; the system fetches Stripe with list endpoints and proposes adopt, mark_not_created (only from a lookup ≥ 15 minutes after the original call), apply_effects or release_reservation. Nothing here creates a money movement or re-sends a money call.

Reconciliation · Holdyn Business docs