Skip to main content
Docs

Releases

A release is one attempt to pay a stage to the payee. Each release is checked by the gate and stores an immutable snapshot of the result. A member can add the operator or second approval the controls ask for, request an override with a reason and a second person, retry a failed release, or close it partially. An approval request returns once the decision is recorded, not after the transfers.

There is no "release now" call and no way to skip the gate. A condition that is allowed to be overridden can be, only through the override routes, which need two different members. System conditions can never be overridden. See The release gate and Approvals and overrides.

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

At a glance#

Objects

Release

Release (example values)
{
  "id": "rel_6543a1b2c3d4e5f6a7b8cd50",
  "object": "release",
  "livemode": false,
  "mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
  "stage": "stg_6543a1b2c3d4e5f6a7b8cd02",
  "payee": "pty_6543a1b2c3d4e5f6a7b8cb00",
  "sequence": 3,
  "kind": "stage",
  "amount": 1400000,
  "retained_amount": 0,
  "transfer_amount": 1400000,
  "executed_amount": 0,
  "remaining_amount": 1400000,
  "currency": "usd",
  "status": "awaiting_second_approval",
  "status_reason": "awaiting_second_approval",
  "status_changed_at": "2026-12-22T10:00:00.000Z",
  "authority": {
    "kind": "payer_approval", "ref": "stg_6543a1b2c3d4e5f6a7b8cd02", "dispute": null,
    "terms_hash": "a3f9…64 hex", "controls_hash": "7be2…64 hex", "at": "2026-12-22T09:59:00.000Z",
    "channel": "holdyn_emailed_link", "grant": "grant_6543a1b2c3d4e5f6a7b8cb44", "otp_verified": true, "notice_ids": []
  },
  "gate": {
    "evaluation_no": 2,
    "evaluated_at": "2026-12-22T10:00:00.000Z",
    "outcome": "pending",
    "ruleset_version": "gate-2026-11-01",
    "terms_version_no": 1,
    "terms_hash": "a3f9…64 hex",
    "controls_version_no": 1,
    "controls_hash": "7be2…64 hex",
    "conditions": [ { "...": "ConditionResult" } ],
    "inputs_hash": "…64 hex",
    "snapshot_hash": "…64 hex",
    "record_seq": 311,
    "next_check_at": null
  },
  "approvals": {
    "required": [ { "kind": "second", "roles": ["owner", "admin", "finance"], "satisfied": false, "excluded_members": [] } ],
    "given": []
  },
  "overrides": [],
  "cap_reservations": [],
  "allocations": [],
  "execution_record": null,
  "attempt_count": 0,
  "failure": null,
  "risk_flags": ["flag_6543a1b2c3d4e5f6a7b8cd60"],
  "succeeded_at": null,
  "cancelled_at": null,
  "cancel_reason": null,
  "closed_partial_at": null,
  "close_note": null,
  "restarted_from": null,
  "restarted_as": null,
  "next_actions": [ { "action": "approve_second", "actor": "tenant", "allowed": true, "blocked_reason": null, "due_at": null } ],
  "created_at": "2026-12-22T09:59:01.000Z",
  "updated_at": "2026-12-22T10:00:00.000Z"
}

Override

Override (example values)
{
  "id": "ovr_6543a1b2c3d4e5f6a7b8cd70",
  "object": "override",
  "livemode": false,
  "mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
  "release": "rel_6543a1b2c3d4e5f6a7b8cd50",
  "conditions": [ { "id": "payee_bank_cooling", "result_snapshot": { "...": "ConditionResult" }, "inputs_hash": "…64 hex" } ],
  "reason_code": "verified_out_of_band",
  "reason": "Called Ridge Services on their listed number; Dana confirmed the new Wells Fargo account.",
  "status": "requested",
  "initiated_by": { "member": "mem_6543a1b2c3d4e5f6a7b8c9d3", "role": "finance", "at": "2026-12-22T10:05:00.000Z", "mfa": true },
  "decided_by": null,
  "decision_note": null,
  "expires_at": "2026-12-23T10:05:00.000Z",
  "gate_snapshot_hash": "…64 hex",
  "invalidated_reason": null,
  "created_at": "2026-12-22T10:05:00.000Z",
  "updated_at": "2026-12-22T10:05:00.000Z"
}

TransferReversal

TransferReversal (example values)
{
  "id": "trev_6543a1b2c3d4e5f6a7b8cd80",
  "object": "transfer_reversal",
  "livemode": false,
  "mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
  "release": "rel_6543a1b2c3d4e5f6a7b8cd50",
  "stripe_transfer_id": "tr_1Qrel3",
  "amount": 200000,
  "currency": "usd",
  "basis": "processor_dispute_lost",
  "basis_ref": { "kind": "processor_dispute", "id": "pdsp_6543a1b2c3d4e5f6a7b8ce30" },
  "max_amount": 500000,
  "note": null,
  "status": "proposed",
  "proposed_by": { "type": "system", "id": null },
  "initiated_by": null,
  "approved_by": null,
  "rejected_by": null,
  "try_no": 0,
  "stripe_reversal_id": null,
  "failure": null,
  "shortfall_amount": 0,
  "payee_notified": { "proposed_at": "2026-12-20T10:00:03.000Z", "executed_at": null },
  "created_at": "2026-12-20T10:00:00.000Z",
  "updated_at": "2026-12-20T10:00:00.000Z"
}

RiskFlag

RiskFlag (example values)
{
  "id": "flag_6543a1b2c3d4e5f6a7b8cd60",
  "object": "risk_flag",
  "livemode": false,
  "mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
  "subject": { "kind": "release", "id": "rel_6543a1b2c3d4e5f6a7b8cd50" },
  "code": "payee_bank_changed_recently",
  "severity": "high",
  "label": "Provider bank details changed 2 days ago (fraud indicator).",
  "inputs": { "days_since_change": 2, "late_detection": false },
  "matches": [],
  "status": "active",
  "cleared": null,
  "compute_version": "flags-2026-11-01",
  "created_at": "2026-12-22T10:00:00.000Z",
  "updated_at": "2026-12-22T10:00:00.000Z"
}

Endpoints

GET/releases

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped
Pagination
cursor

Request

mandate, stage, payee, status (multi), kind (multi), needs_member_action boolean (awaiting_approval, awaiting_second_approval, blocked with an overridable failure, partially_failed), created[gte|lte], expand[] ∈ stage, payee, risk_flags, overrides.

Response

200 ListResponse<Release>.

GET/releases/:id

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped

Request

expand[] (as list). · Response: 200 Release.

GET/releases/:id/gate-evaluations

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped
Pagination
cursor (`rec_` ids, newest first)

Response

200 ListResponse<GateEvaluation>: {"object": "gate_evaluation", "release": "rel_…", "evaluation_no": 2, "evaluated_at", "outcome", "ruleset_version", "terms_version_no", "terms_hash", "controls_version_no", "controls_hash", "conditions": [ConditionResult], "inputs_hash", "snapshot_hash", "final": false, "record": {"chain", "seq", "hash"}} (one per recorded evaluation; final: true for the pre-execution evaluation).

POST/releases/:id/evaluate

Credential
Member session
Permission
releases.retry
Mode
scoped
Idempotency
honoured

Request

none.

Response

200 Release (a fresh evaluation now; may move between blocked, awaiting_*, ready).

Errors

409 invalid_state_transition (executing or terminal); 429 rate_limited (one evaluation per release per 10 s).

Record and events

release.gate_evaluated (only when the outcome or the failing/pending set changed) · Events: release.blocked, release.awaiting_approval, release.awaiting_funds (when that is the new status).

POST/releases/:id/approve

Credential
Member session
Permission
releases.approve or releases.approve_second (by kind)
Mode
scoped
Step-up
live

Request

kind string required (operator, second); note string optional (≤ 1000).

Response

200 Release (re-evaluated; may now be ready; execution is enqueued, not awaited).

Errors

409 invalid_state_transition (status not awaiting that approval kind), same_member_not_allowed (+ excluded_reason: already approved this release, initiated an override on it, is the C17 approver giving the second approval, or is in excluded_members), approver_cooling (+ available_at; when another member's approval already counts).

Record and events

release.member_approved (kind, member, role, mfa, bindingHash, device digests), release.gate_evaluated (+ risk_flag.raised dual_control_same_device when both approvals came from one device within 30 minutes) · Events: release.approved (+ the resulting status event).

Notes

the approval binds to {amount, transfer_amount, payee acct, bank fingerprint digest, stage}; any change clears approvals (release.approvals_invalidated). A second approval confirms the payment-safety checks only (amount, the payee's bank unchanged, duplicates, limits): the payer already approved the work and members are never asked to judge it. When no active member can give a required approval the release shows status_reason: no_eligible_decider (inbox no_eligible_decider).

POST/releases/:id/overrides

Credential
Member session
Permission
releases.override_initiate
Mode
scoped
Step-up
live
Idempotency
honoured, recommended

Request

conditions string[] required (1+ condition ids, each ticked individually; no "override all"); reason_code string required (documented_exception, verified_out_of_band, duplicate_reviewed, timing_agreed_by_parties, other); reason string required (20–1000).

Response

201 Override (requested, expires after settings.gate.override_expiry_hours).

Errors

409 condition_not_overridable (+ condition; system conditions, approval conditions, overridable: false in the terms or controls), condition_not_failing (+ condition), override_pending (+ override), invalid_state_transition (release not blocked).

Record and events

release.override_requested · Events: release.override_requested (inbox override_requested for releases.override_approve holders other than the initiator).

Notes

a soft duplicate (duplicate_check reporting warn + flag duplicate_amount) needs no override: one member clears the flag (POST /risk-flags/:id/clear). Overrides have no sole-approver fallback.

GET/overrides

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped
Pagination
cursor

Request

release, mandate, status (multi). · Response: 200 ListResponse<Override>.

GET/overrides/:id

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped

POST/overrides/:id/approve

Credential
Member session
Permission
releases.override_approve
Mode
scoped
Step-up
live
Idempotency
honoured

Request

note string optional (≤ 1000).

Response

200 Override (approved; the release is re-evaluated: the overridden condition counts as pass_overridden only while its inputs_hash is unchanged).

Errors

409 same_member_not_allowed (the initiator, or a member who approved this release), approver_cooling (+ available_at), invalid_state_transition (not requested, expired).

Record and events

release.override_approved (initiator, approver, roles, reason code, reason text hash, failed values), release.gate_evaluated · Events: release.override_approved.

POST/overrides/:id/reject

Credential
Member session
Permission
releases.override_approve
Mode
scoped
Idempotency
honoured

Request

reason string required (10–1000).

Response

200 Override (rejected). · Errors: 409 same_member_not_allowed (the initiator: use withdraw), invalid_state_transition.

Record and events

release.override_rejected · Events: release.override_rejected.

POST/overrides/:id/withdraw

Credential
Member session
Permission
releases.override_initiate and the caller is the initiator (else 403)
Mode
scoped
Idempotency
honoured

Response

200 Override (withdrawn). · Errors: 409 invalid_state_transition. · Records: release.override_withdrawn.

POST/releases/:id/retry

Credential
Member session
Permission
releases.retry
Mode
scoped
Idempotency
honoured

Request

note string optional (≤ 500).

Response

200 Release (failed → fresh evaluation of the full amount; partially_failed → fresh evaluation of remaining_amount only; new allocations with new ids and idempotency keys).

Errors

409 invalid_state_transition (not failed/partially_failed).

Record and events

release.retry_requested, release.gate_evaluated.

POST/releases/:id/cancel

Credential
Member session
Permission
releases.cancel
Mode
scoped
Step-up
live
Idempotency
honoured

Request

reason string required (10–1000).

Response

200 {"object": "release_restart_result", "cancelled_release": Release (cancelled, restarted_as set), "release": Release (the fresh release for the stage remaining, first evaluation run)}.

Errors

409 invalid_state_transition (only failed, i.e. nothing executed; a blocked or approved release cannot be parked (it re-evaluates on every input change), and partially_failed uses retry or close-partial).

Record and events

release.cancelled, release.restarted, release.created, release.gate_evaluated · Events: release.cancelled, release.created. - Notes: this is a restart, never a discretionary hold: the money stays allocated to the stage and the new release follows the same gate.

POST/releases/:id/close-partial

Credential
Member session
Permission
releases.close_partial
Mode
scoped
Step-up
live
Idempotency
honoured

Request

reason string required (10–1000).

Response

200 Release (closed_partial; the executed part stays booked to the stage; the stage stays approved with the remainder held).

Errors

409 invalid_state_transition (not partially_failed, or the failure is not payee-permanent: account rejected or closed, transfers not allowed).

Record and events

release.closed_partial · Events: release.closed_partial.

Notes

both parties get the mandatory notice release_part_unpaid. Once the payee's account is fixed, a member creates a new release for the remainder (POST /stages/:id/releases), or the parties agree another outcome.

POST/releases/:id/reversals

Credential
Member session
Permission
transfer_reversals.initiate
Mode
scoped
Step-up
live
Idempotency
honoured, recommended

Request

amount integer required (≥ 1, ≤ transferred − already reversed for this release, and ≤ what the basis allows); basis string required (processor_dispute_lost, refund_after_release_agreed, error_correction); basis_ref object required {kind: "processor_dispute"|"dispute_proposal"|"cancellation_version"|"external_outcome"|"recon_break", id}; note string required (20–1000).

Response

201 TransferReversal (proposed, initiated_by = caller; a different member must approve).

Errors

400 parameter_invalid (amount); 409 invalid_state_transition (release not succeeded/closed_partial); 422 reversal_basis_required (+ basis, max_amount: the reference does not exist, is not of that kind, does not concern this release's charges, or allows less).

Record and events

transfer_reversal.proposed · Events: transfer_reversal.proposed.

Notes

the payee is told at proposal and execution (transfer_reversal_proposed, transfer_reversal_succeeded, mandatory, naming the basis); the payee accepted the reversal_rule in the terms.

GET/transfer-reversals

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped
Pagination
cursor

Request

release, mandate, status (multi), basis (multi). · Response: 200 ListResponse<TransferReversal>.

GET/transfer-reversals/:id

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped

POST/transfer-reversals/:id/adopt

Credential
Member session
Permission
transfer_reversals.initiate
Mode
scoped
Step-up
live
Idempotency
honoured

Request

note string required (20–1000).

Response

200 TransferReversal (a system proposal now has an initiating member).

Errors

409 invalid_state_transition (not a system proposal, or not proposed). · Records: transfer_reversal.adopted.

POST/transfer-reversals/:id/approve

Credential
Member session
Permission
transfer_reversals.approve
Mode
scoped
Step-up
live
Idempotency
honoured, recommended

Request

note string optional (≤ 1000).

Response

200 TransferReversal (approved, then executing → succeeded/failed asynchronously; record-before-execute).

Errors

409 same_member_not_allowed (the initiator), approver_cooling (+ available_at), invalid_state_transition (not proposed, or a system proposal not yet adopted); 422 reversal_basis_required (the basis no longer allows the amount); money-route errors.

Record and events

transfer_reversal.approved, transfer_reversal.executing, then transfer_reversal.succeeded or transfer_reversal.failed (with shortfallMinor) · Events: transfer_reversal.succeeded / transfer_reversal.failed.

Notes

a failure (payee balance too low) is never retried silently; the shortfall is the tenant's recovery matter. Effects by basis: refund_after_release_agreed reserves the money for the agreed refund (never allocatable); processor_dispute_lost adds to recovered_amount (never available); error_correction returns the over-release to the source charge.

POST/transfer-reversals/:id/reject

Credential
Member session
Permission
transfer_reversals.approve
Mode
scoped
Idempotency
honoured

Request

reason string required (10–1000). · Response: 200 TransferReversal (rejected).

Errors

409 invalid_state_transition. · Records: transfer_reversal.rejected.

GET/risk-flags

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped
Pagination
cursor

Request

mandate, subject (any public id), status (multi; default active), code (multi), severity (multi).

Response

200 ListResponse<RiskFlag>.

GET/risk-flags/:id

Credential
Member session or API key
Permission
releases.read
API key scope
mandates:read
Mode
scoped

POST/risk-flags/:id/clear

Credential
Member session
Permission
releases.approve
Mode
scoped
Idempotency
honoured

Request

note string required (10–1000).

Response

200 RiskFlag (cleared). For a soft duplicate_amount flag this is "Clear as reviewed": the release's C15 warning is satisfied for the matched releases. Clearing never passes a hard-failing condition (use an override where the condition allows it).

Errors

409 invalid_state_transition (not active). · Records: risk_flag.cleared (note digest, matched ids).

POST/releases/:id/ai-summaryNot available yet

This route answers 422 feature_not_available until it ships.

Credential
Member session
Permission
ai.use
Mode
scoped
Idempotency
honoured

Errors

503 ai_unavailable; 429 ai_budget_exceeded; 422 ai_refused, feature_not_available. · Records: ai.summary_generated.

Releases · Holdyn Business docs