Disputes
A dispute follows the rule the parties agreed. Either party flags a stage; the pause starts. It ends when both parties accept the same outcome, when the tenant records an outcome from an outside process (arbitration, mediation, court or settlement) with its documents and a second member confirms it, or when the person who raised it withdraws. Neither Holdyn nor the tenant decides a dispute. See Disputes.
A processor dispute is a card or bank-debit dispute opened with Stripe. It freezes the affected money automatically and is separate from a dispute between the parties.
The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.
At a glance#
GET /disputesGET /disputes/:idGET /disputes/:id/refund-planPOST /disputes/:id/documentsPOST /disputes/:id/external-outcomePOST /disputes/:id/external-outcome/confirmPOST /disputes/:id/external-outcome/rejectPOST /disputes/:id/notesGET /processor-disputesGET /processor-disputes/:id
Objects
Dispute, DisputeProposal and ScheduleChanges
{
"id": "dsp_6543a1b2c3d4e5f6a7b8ce00",
"object": "dispute",
"livemode": false,
"mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
"stage": "stg_6543a1b2c3d4e5f6a7b8cd02",
"raised_by": { "role": "payer", "party": "pty_6543a1b2c3d4e5f6a7b8cb01" },
"reason_code": "work_incomplete",
"description": "Gutters were not reinstalled on the north side.",
"evidence": ["evd_6543a1b2c3d4e5f6a7b8ce10"],
"scope": "stage_and_later",
"pauses_collections": false,
"covered_stages": ["stg_6543a1b2c3d4e5f6a7b8cd02"],
"holds": ["hold_6543a1b2c3d4e5f6a7b8cc30"],
"status": "open",
"resolution": null,
"external_outcome": null,
"execution": null,
"proposals": null,
"notes": [ { "by": { "type": "party", "role": "payee" }, "at": "2026-12-23T09:00:00.000Z", "text": "We will return Thursday.", "visibility": "parties" } ],
"escalation": { "next_reminder_at": "2026-12-29T08:00:00.000Z", "reminders_sent": 0 },
"opened_at": "2026-12-22T18:00:00.000Z",
"resolved_at": null,
"withdrawn_at": null,
"next_actions": [ { "action": "record_external_outcome", "actor": "tenant", "allowed": true, "blocked_reason": null, "due_at": null } ],
"created_at": "2026-12-22T18:00:00.000Z",
"updated_at": "2026-12-23T09:00:00.000Z"
}ProcessorDispute
{
"id": "pdsp_6543a1b2c3d4e5f6a7b8ce30",
"object": "processor_dispute",
"livemode": false,
"mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
"collection": "col_6543a1b2c3d4e5f6a7b8cd10",
"funding_charge": "fch_6543a1b2c3d4e5f6a7b8cd31",
"stripe_dispute_id": "dp_1Qret",
"stripe_charge_id": "py_1Qcol2",
"amount": 800000,
"currency": "usd",
"fee_amount": 1500,
"reason": "insufficient_funds",
"stripe_status": "lost",
"is_ach_return": true,
"is_failure_after_success": true,
"frozen_target_amount": 800000,
"frozen_amount": 300000,
"unbacked_amount": 500000,
"outcome": "lost",
"recon_break": "brk_6543a1b2c3d4e5f6a7b8cf00",
"transfer_reversals": ["trev_6543a1b2c3d4e5f6a7b8cd80"],
"opened_at": "2026-12-18T10:00:00.000Z",
"closed_at": "2026-12-18T10:00:05.000Z",
"created_at": "2026-12-18T10:00:01.000Z",
"updated_at": "2026-12-18T10:00:05.000Z"
}Endpoints
GET/disputes
- Credential
- Member session or API key
- Permission
disputes.read- API key scope
disputes:read- Mode
- scoped
- Pagination
- cursor
Request
mandate, stage, status (multi), raised_by_role, external_outcome_status (multi), expand[] ∈ proposals.
Response
200 ListResponse<Dispute>.
GET/disputes/:id
- Credential
- Member session or API key
- Permission
disputes.read- API key scope
disputes:read- Mode
- scoped
Request
expand[] (default proposals). · Response: 200 Dispute.
GET/disputes/:id/refund-plan
- Credential
- Member session or API key
- Permission
disputes.read- API key scope
disputes:read- Mode
- scoped
Request
type required (proceed, partial_release, refund, end_mandate); release_amount, refund_amount (integers as the type needs); schedule_changes and recollect optional (JSON-encoded ScheduleChanges / [{amount, label}]).
Response
200 RefundPlan (feasibility, stranded amount, fee cost and executable alternatives before recording an outcome; nothing stored).
POST/disputes/:id/documents
- Credential
- Member session
- Permission
disputes.record_external_outcome- Mode
- scoped
- Idempotency
- honoured
Request
multipart/form-data with ONE file; purpose (dispute default, external_outcome for the decision document); type (default document); note optional.
Response
201 Evidence (purpose as sent, dispute set).
Errors
upload errors; 409 invalid_state_transition (dispute not open/resolving). · Records: evidence.uploaded.
POST/disputes/:id/external-outcome
- Credential
- Member session
- Permission
disputes.record_external_outcome- Mode
- scoped
- Step-up
- live
- Idempotency
- honoured, recommended
Request
forum string required (one of the accepted terms' external_forums); decided_on date required (≤ today); summary string required (20–2000); outcome DisputeOutcome required (type, amounts as the type needs, optional schedule_changes, recollect); document string required (evd_ uploaded via /disputes/:id/documents with purpose: external_outcome).
Response
200 Dispute (status stays open; external_outcome.status: awaiting_confirmation; nothing executes yet).
Errors
404 (document); 409 invalid_state_transition (not open), confirmation_pending (an outcome already awaits confirmation or its notice period), outcome_not_feasible (+ alternatives, warnings); 422 forum_not_in_terms (+ allowed_forums).
Record and events
dispute.external_outcome_recorded (forum, decided on, document sha256, recorder) · Events: dispute.external_outcome_recorded.
Notes
copy shown with the form: "Recording this decision does not make {tenant} the decision-maker; it records the outcome of the process named in the terms." An outcome with schedule_changes or recollect carries a dispute_settlement version the payer accepts in the portal (with the debit authorization for a re-collection). Unconfirmed outcomes expire after 7 days (dispute.external_outcome_expired).
POST/disputes/:id/external-outcome/confirm
- Credential
- Member session
- Permission
disputes.confirm_external_outcome(owner, admin, finance; a member other than the recorder; API scope: none)- Mode
- scoped
- Step-up
- live
- Idempotency
- honoured
Request
note string optional (≤ 1000).
Response
200 Dispute (external_outcome.status: confirmed, notice_sent_at, execute_after = now + the terms' external_outcome_notice_hours).
Errors
409 same_member_not_allowed (the recorder), approver_cooling (+ available_at), invalid_state_transition (nothing awaits confirmation, or it expired), outcome_not_feasible.
Record and events
dispute.external_outcome_confirmed · Events: dispute.external_outcome_confirmed. - Notes (P0 for every outcome that releases or refunds money): both parties are emailed (mandatory external_outcome_recorded: forum, decision date, the outcome in plain words, the document's, the date it takes effect) and see it in the portal. At execute_after (or once both parties accept it early in the portal) the dispute moves to resolving and executes in the fixed order of (dispute.outcome_executing, then release.created / refund.planned / collections, dispute.resolved + mandate.hold_lifted when every movement is terminal). It is a notice, not a veto: a party who disagrees goes back to the forum. The recorder and the confirmer are excluded from the C17/C18 approvals of the releases it creates.
POST/disputes/:id/external-outcome/reject
- Credential
- Member session
- Permission
disputes.confirm_external_outcome(a member other than the recorder; API scope: none)- Mode
- scoped
- Step-up
- live
- Idempotency
- honoured
Request
reason string required (10–1000).
Response
200 Dispute (external_outcome.status: rejected; the dispute stays open).
Errors
409 same_member_not_allowed, invalid_state_transition.
Record and events
dispute.external_outcome_rejected · Events: —
POST/disputes/:id/notes
- Credential
- Member session
- Permission
disputes.record_external_outcomeormandates.amend- Mode
- scoped
- Idempotency
- honoured
Request
text string required (1–4000); visibility string optional (internal default, parties).
Response
200 Dispute.
Errors
409 invalid_state_transition (dispute closed). · Records: dispute.note_added (text digest, visibility).
GET/processor-disputes
- Credential
- Member session or API key
- Permission
disputes.read- API key scope
disputes:read- Mode
- scoped
- Pagination
- cursor
Request
mandate, outcome (multi), is_ach_return boolean. · Response: 200 ListResponse<ProcessorDispute>.
GET/processor-disputes/:id
- Credential
- Member session or API key
- Permission
disputes.read- API key scope
disputes:read- Mode
- scoped
Notes
responding to a card dispute happens in Stripe (the tenant's); Holdyn freezes, holds, records and exports the evidence pack.
