Participant portal API
These routes serve the participant portal that payers and payees use. They authenticate with a portal session obtained from a one-time access token, not with API keys. They are listed for completeness; an integration normally sends parties to the portal rather than calling them. Every handler is scoped to the party's own mandate: another mandate or the other party's objects answer 404 resource_missing.
Money-moving actions are marked "Emailed code: required". When the programme or the link requires it, they answer 403 otp_required until the party enters a code emailed to their verified address. Protective actions (raise a dispute, ask for changes, decline, upload evidence) are never gated by a code.
The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.
At a glance#
POST /portal/sessionPOST /portal/session/refreshPOST /portal/request-linkPOST /portal/contact-change/confirmPOST /portal/otp/sendPOST /portal/otp/verifyGET /portal/mandateGET /portal/mandate/versions/:versionIdGET /portal/mandate/versions/:versionId/canonicalGET /portal/timeline(not available yet)POST /portal/acceptPOST /portal/declinePOST /portal/amendments/:versionId/acceptPOST /portal/amendments/:versionId/rejectGET /portal/payment-configGET /portal/payment-methodsPOST /portal/payment-methods/setup-intentPOST /portal/payment-methods/replaceGET /portal/payment-methods/:id/impactPOST /portal/payment-methods/:id/refreshPOST /portal/payment-methods/:id/verify-microdepositsPOST /portal/payment-methods/:id/backup-consentPOST /portal/payment-methods/:id/backup-consent/withdrawPOST /portal/payment-methods/:id/make-primaryPOST /portal/payment-methods/:id/removePOST /portal/collections/:id/pay-nowPOST /portal/collections/:id/refreshPOST /portal/payee/onboarding-linkPOST /portal/payee/syncPOST /portal/payee/dashboard-linkGET /portal/stages/:idPOST /portal/stages/:id/evidenceGET /portal/evidence/:id/downloadPOST /portal/evidence/:id/withdrawPOST /portal/evidence/:id/acceptPOST /portal/evidence/:id/rejectPOST /portal/stages/:id/submitPOST /portal/stages/:id/approvePOST /portal/stages/:id/request-changesPOST /portal/stages/:id/dispute-attachmentsPOST /portal/stages/:id/disputeGET /portal/disputes/:idGET /portal/disputes/:id/refund-planPOST /portal/disputes/:id/documentsPOST /portal/disputes/:id/proposalsPOST /portal/disputes/:id/proposals/:proposalId/acceptPOST /portal/disputes/:id/proposals/:proposalId/rejectPOST /portal/disputes/:id/proposals/:proposalId/withdrawPOST /portal/disputes/:id/external-outcome/acceptPOST /portal/disputes/:id/withdrawPOST /portal/disputes/:id/notesGET /portal/receiptsGET /portal/receipts/:id
Endpoints
POST/portal/session
- Credential
- Access link token
- Mode
- grant
- Idempotency
- not stored (each exchange mints a session)
- Emailed code
- never
Request
no body.
Response
200 PortalSession (kind: "mandate", with grant.next_path for notification links); legacy transaction grants keep the legacy body with kind: "transaction".
Errors
401 missing_access_token, invalid_access_token, expired_access_token, revoked_access_token (the last two carry request_link_available: true); legacy grants only: 401 device_mismatch, exhausted_access_token.
Record and events
grant.first_exchanged (first exchange only), grant.exchanged_new_device (a device digest not seen before) · Notes: exchange_count + 1. Exchanging a Holdyn-emailed grant verifies the party's address (contact.email_verified_at). Mandate grants are multi-use until expires_at and carry no IP/UA binding. Frontend contract: read #t= (and next=) from the fragment, strip it with history.replaceState before any SDK initialises, exchange, keep the raw token only in sessionStorage for re-exchange after a 30-minute expiry, never in a URL or log.
POST/portal/session/refresh
- Credential
- Participant session
- Permission
view- Idempotency
- not stored
- Emailed code
- never
Response
200 PortalSession (new 30-minute token; a still-valid code window carries over).
Errors
401 portal_session_expired (re-exchange the grant token), portal_session_revoked.
POST/portal/request-link
- Credential
- None
- Mode
- n/a
- Idempotency
- not stored
- Emailed code
- never
Request
tenant_slug string required; then EITHER email string (P0) OR expired_access_token string (P1, the raw token of an expired or used link, so the expired-link screen offers one tap without typing). Both or neither: 400 parameter_invalid. Before P1 ships, expired_access_token answers 422 feature_not_available.
Response
202 Accepted ({"object": "accepted", "status": "accepted", "message"}), always and in constant time (no enumeration; the email is enqueued). - expired_access_token resolution: the token's digest must match a grant of that tenant that is expired or used (never revoked: a revoked grant, e.g. after a contact change or party removal, sends nothing); the mail goes to the party's VERIFIED address on file, never to an address the link was once sent to; no match sends nothing. Same limits as email (keyed on the grant's party digest).
Record and events
grant.link_requested_by_party, grant.issued (purpose: party_requested) per mandate listed. - Notes : when a party of that tenant with that VERIFIED email has non-terminal mandates (or ones that ended in the last 90 days), ONE tenant-branded email party_new_link lists them with a fresh link each. Limits: 5 per hour per IP+email, 30 per hour per IP, one per party per 20 minutes, 3 per hour and 10 per day per target address. Revision 4: the new link supersedes the party's earlier party_requested links of that mandate (revoked_reason: superseded). P1: a party-scoped home link listing all of the party's mandates.
POST/portal/contact-change/confirm
- Credential
- None
- Mode
- n/a
- Idempotency
- not stored
- Emailed code
- never
Request
token string required (from {PORTAL}/p/{slug}/confirm-email#t=…, 72 h).
Response
200 ContactChangeConfirmation.
Errors
400 token_invalid, token_expired.
Record and events
party.contact_changed · Events: party.contact_changed. - Notes: swaps the party's address to the new one (verified), revokes every active grant delivered to the old address (contact_changed), clears a bounced email status and unblocks auto-approval for this party.
POST/portal/otp/send
- Credential
- Participant session
- Permission
view- Idempotency
- honoured
- Emailed code
- never
Request
action string optional (the money-moving action about to be taken, for the email copy).
Response
200 PortalOtpChallenge (6-digit code emailed to the party's VERIFIED address — before any verification, to the address on file, which passing the code verifies; 10 minutes; 5 attempts; a new challenge supersedes the previous one).
Errors
403 otp_locked (+ locked_until); 429 rate_limited (≤ 5 per hour and 20 per day per grant).
Record and events
— (code sends are notifications: notification.sent with template portal_otp).
POST/portal/otp/verify
- Credential
- Participant session
- Permission
view- Idempotency
- not stored
- Emailed code
- never
Request
challenge_id string required (hotp_…); code string required (6 digits).
Response
200 PortalSession (new token with otp.verified_until = now + 15 min).
Errors
400 otp_invalid (+ attempts_remaining), token_expired, token_invalid (superseded or used challenge); 403 otp_locked.
Record and events
portal.otp_verified / portal.otp_failed (portal.otp_locked on the 10th failure in 24 h for this party and mandate: the party is emailed party_otp_locked, the tenant gets an inbox item).
GET/portal/mandate
- Credential
- Participant session
- Permission
view
GET/portal/mandate/versions/:versionId
- Credential
- Participant session
- Permission
view
Response
200 PortalTermsVersion: {"object": "portal_terms_version", "id": "mver_…", "version_no": 2, "kind": "amendment", "status": "proposed", "acceptance_mode": "typed_name", "terms_hash": "…", "terms": <terms document, individuals' names rendered>, "in_words": TermsInWords, "changes": ["…plain-words changes…"], "refund_plan": RefundPlan|null, "settlement_releases": [{"stage_label", "amount"}], "contract_documents": [{"id", "label", "original_name", "sha256", "size_bytes"}], "required_consents": [PortalConsent], "proposed_at": "…", "effective_at": null} (required_consents for the caller's role; [] when nothing awaits acceptance).
GET/portal/mandate/versions/:versionId/canonical
- Credential
- Participant session
- Permission
view
GET/portal/timelineNot available yet
This route answers 422 feature_not_available until it ships.
- Credential
- Participant session
- Permission
view- Pagination
- cursor (`order` default `asc`)
Response
200 ListResponse<PortalTimelineItem> (party-safe summaries; member identities never shown, only the tenant's display name). Contract documents (PortalMandate.contract_documents) are evidence rows of the mandate and download through GET /portal/evidence/:id/download.
POST/portal/accept
- Credential
- Participant session
- Permission
accept_terms- Idempotency
- honoured, recommended
- Emailed code
- required
Request
terms_hash string required (the hash the party saw); typed_name string required (2–120; not required to match the party name, both are stored); consents array required: [{"id": "terms", "text_version": "v3"}, …] covering the role's required set.
Response
200 PortalMandate.
Errors
409 nothing_to_accept (no initial version awaits this role; other versions use the amendments routes), terms_changed (+ terms_hash); 422 consent_missing (+ missing_consents).
Record and events
mandate.party_accepted (role, version, termsHash, typed-name/IP/UA digests, consent ids+versions, grant channel; raw values in B2bAcceptance), then mandate.accepted (both parties), mandate.activated + collection.triggered (prerequisites met) · Events: mandate.party_accepted, mandate.accepted, mandate.activated.
Notes
confirmation email acceptance_confirmation with the terms summary and hash (mandatory). IP from req.ip (trust proxy 1). Contract documents are offered for download above the consents.
POST/portal/decline
- Credential
- Participant session
- Permission
accept_terms- Idempotency
- honoured
- Emailed code
- never
Request
reason string optional (≤ 1000; party content, its digest goes on the record).
Response
200 PortalMandate (status unchanged: the tenant amends or cancels).
Errors
409 nothing_to_accept.
Record and events
mandate.party_declined · Events: mandate.party_declined (tenant inbox party_declined).
POST/portal/amendments/:versionId/accept
- Credential
- Participant session
- Permission
accept_terms- Idempotency
- honoured, recommended
- Emailed code
- required
Request
terms_hash string required; for acceptance_mode: typed_name (amendments, cancellations, dispute settlements): typed_name and consents as POST /portal/accept; for acceptance_mode: confirm (reschedules, payer only): confirm: true and consents: [{"id": "reschedule_ack", "text_version": "v1"}].
Response
200 PortalMandate.
Errors
409 nothing_to_accept, terms_changed; 422 consent_missing.
Record and events
mandate.amendment_accepted_by_party; when every required party accepted: mandate.amendment_effective (or mandate.amendment_stale when the live state moved, or mandate.cancelling for a cancellation version) · Events: mandate.amendment_accepted, mandate.amendment_effective.
POST/portal/amendments/:versionId/reject
- Credential
- Participant session
- Permission
accept_terms- Idempotency
- honoured
- Emailed code
- never
Request
reason string optional (≤ 1000). · Response: 200 PortalMandate.
Errors
409 nothing_to_accept. · Records: mandate.amendment_rejected · Events: mandate.amendment_rejected.
GET/portal/payment-config
- Credential
- Participant session
- Permission
view
Response
200 {"object": "portal_payment_config", "publishable_key": "pk_test_51Qabc…", "stripe_account": null, "allowed_types": ["us_bank_account"], "card_backup_allowed": true, "return_url": "https://pay.holdyn.io/p/acme/payment/return", "available": true, "unavailable_reason": null} (initialise Stripe.js early, e.g. on the card-authentication return page; unavailable_reason: publishable_key_unverified · connection_unhealthy · connection_missing · awaiting_payee_onboarding).
GET/portal/payment-methods
- Credential
- Participant session
- Permission
view(payer only)- Pagination
- none
POST/portal/payment-methods/setup-intent
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured, recommended
- Emailed code
- required
Request
type string required (us_bank_account, card); role string optional (primary default, backup).
Response
201 SetupIntentSession (client_secret for stripe.collectBankAccountForSetup + confirmUsBankAccountSetup, or the Payment Element; Stripe renders and records the Nacha mandate).
Errors
409 awaiting_payee_onboarding (the mandate uses on_behalf_of and the payee is not ready yet: "You can link your bank once {payee} finishes setting up payments; we'll email you"), publishable_key_unverified, connection_missing, connection_unhealthy, invalid_state_transition (terminal mandate); 422 payment_method_not_usable (reason: type_not_allowed: not in primary_method_types, or a card backup the terms do not allow); money-route errors.
Record and events
payer.customer_created (first time, idempotency cus:<partyId>), payer.payment_method_setup_started.
Notes
SetupIntent per (usage: off_session, FC permissions from settings, on_behalf_of + method scoped to this mandate when the mandate uses on_behalf_of). The final state arrives by webhook; poll GET /portal/payment-methods or call refresh.
POST/portal/payment-methods/replace
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured, recommended
- Emailed code
- required
Request
payment_method string required (ppm_ being replaced); type string required (us_bank_account, card).
Response
201 SetupIntentSession (replaces set). The old method keeps serving every payment until the new one is active; it is then detached and becomes replaced.
Errors
as setup-intent; 409 invalid_state_transition (the old method is not active, or a replacement is already in progress).
Record and events
payer.payment_method_setup_started, then payer.payment_method_ready + payer.payment_method_replaced.
GET/portal/payment-methods/:id/impact
- Credential
- Participant session
- Permission
setup_payment- Emailed code
- never
Response
200 PaymentMethodImpact : the payments that would lose their method, with debit dates and the grace and default dates under the accepted terms; the portal shows it before any removal and offers "Replace bank account" instead.
POST/portal/payment-methods/:id/refresh
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured
- Emailed code
- never
Response
200 PortalPaymentMethod (SetupIntent re-fetched and applied through the same handler as the webhook).
Record and events
payer.payment_method_ready / payer.payment_method_failed when the state changed.
POST/portal/payment-methods/:id/verify-microdeposits
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured
- Emailed code
- never
Request
exactly one of amounts (two integers, cents) or descriptor_code (string SM…).
Response
200 PortalPaymentMethod.
Errors
400 microdeposits_mismatch (+ attempts_remaining); 409 microdeposits_failed (attempts exceeded or the 10-day timeout), invalid_state_transition (not requires_verification).
Record and events
payer.payment_method_ready (via the webhook/refresh path) or payer.payment_method_failed.
POST/portal/payment-methods/:id/backup-consent
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured
- Emailed code
- required
Request
consent_text_version string required; consent_text_hash string required (from PortalMandate.rules.card_backup.consent).
Response
200 PortalPaymentMethod (backup_consent.given: true for this mandate).
Errors
409 terms_changed (stale consent text); 422 payment_method_not_usable (not an active card, or card_backup.allowed is false).
Record and events
payer.backup_consent_given (text version + hash, IP digest).
POST/portal/payment-methods/:id/backup-consent/withdraw
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured
- Emailed code
- never
Response
200 PortalPaymentMethod. · Records: payer.backup_consent_withdrawn (a scheduled backup attempt is cancelled).
POST/portal/payment-methods/:id/make-primary
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured
- Emailed code
- required
Response
200 PortalPaymentMethod.
Errors
422 payment_method_not_usable. · Records: payer.payment_method_primary_changed.
Notes
collections in action_required because of a missing method move back to pending and are attempted now.
POST/portal/payment-methods/:id/remove
- Credential
- Participant session
- Permission
setup_payment- Idempotency
- honoured
- Emailed code
- never
Request
acknowledge_impact boolean required (true: the party saw GET …/impact).
Response
200 PortalPaymentMethod (revoked, detached on Stripe).
Errors
400 parameter_missing (acknowledge_impact); 409 payment_method_in_use (+ collection: a collection is processing with it).
Record and events
payer.payment_method_revoked (removed_by_payer) · Events: payment_method.revoked.
POST/portal/collections/:id/pay-now
- Credential
- Participant session
- Permission
pay- Idempotency
- honoured, recommended (double clicks are also safe: lease + CAS)
- Emailed code
- required
Request
payment_method string optional (ppm_ of the grant's party, usable for this mandate; default the primary method).
Response
200 PayNowResult (kind: pay_now, or pay_ahead on a scheduled collection when the terms allow paying ahead). ACH: status: processing. Card: succeeded, or requires_action with client_secret → the portal calls stripe.handleNextAction({clientSecret}) with the tenant key, returning to {PORTAL}/p/{slug}/payment/return.
Errors
409 retry_not_allowed (+ reason, next_allowed_at), invalid_state_transition (allowed in pending for manual triggers, retry_scheduled, action_required, delinquent collections during default, and scheduled with pay_ahead_allowed; current_state + blocked_reason: pay_ahead_not_allowed otherwise), automation_paused; 422 payment_method_not_usable; money-route errors.
Record and events
collection.pay_now_requested (or collection.paid_ahead), collection.attempt_started · Events: collection.processing (+ collection.paid_ahead).
Notes
when the current attempt is requires_action (card authentication on an off-session attempt), no new attempt is created: the response returns that PaymentIntent's client_secret for on-session confirmation. A paid-ahead collection's later trigger is a no-op. An ACH pay-now with the same bank after R01/R09 counts as a re-presentment.
POST/portal/collections/:id/refresh
- Credential
- Participant session
- Permission
view- Idempotency
- honoured
- Emailed code
- never
Response
200 PortalCollection (the current attempt's PaymentIntent re-fetched and applied through the webhook handler).
POST/portal/payee/onboarding-link
- Credential
- Participant session
- Permission
onboard- Idempotency
- not stored (each link is single-use)
- Emailed code
- required once the payee is onboarded (`readiness.details_submitted`: the link then UPDATES the payout details;); never for the first onboarding
Response
200 OnboardingLink (minted on click, collection_options.fields: eventually_due; the page redirects at once; never emailed).
Errors
422 connect_platform_not_ready; money-route errors (the connected account is created first if it is missing).
Record and events
payee.onboarding_link_issued (+ payee.account_created).
Notes
the refresh URL page calls this endpoint again; the return page calls POST /portal/payee/sync.
POST/portal/payee/sync
- Credential
- Participant session
- Permission
onboard- Idempotency
- honoured
- Emailed code
- never
Response
200 {"object": "payee_status", "state": "in_progress", "ready": false, "ready_for_on_behalf_of": false, "currently_due_count": 1, "past_due_count": 0, "disabled_reason": null, "message": "Stripe still needs your bank account details."} (state: PayeeOnboardingState).
Record and events
payee.readiness_changed when changed · Events: payee.readiness_changed.
POST/portal/payee/dashboard-link
- Credential
- Participant session
- Permission
onboard(payee)- Idempotency
- not stored (each link is single-use)
- Emailed code
- required (the Express dashboard manages the payout bank)
Response
200 PayeeDashboardLink ("Open your Stripe payouts": an Express login link minted on click, never emailed).
Errors
409 dashboard_link_unavailable (+ reason: login_links_permission_missing · not_express · not_onboarded).
Record and events
payee.dashboard_link_issued.
GET/portal/stages/:id
- Credential
- Participant session
- Permission
view
POST/portal/stages/:id/evidence
- Credential
- Participant session
- Permission
upload_evidence- Idempotency
- honoured (the file digest is hashed)
- Emailed code
- never
Request
as POST /stages/:id/evidence : ONE file, type, optional typed fields, supersedes.
Response
201 PortalEvidence.
Errors
upload errors ( 20 uploads per hour per grant); 409 duplicate_file, invalid_state_transition. · Records: evidence.uploaded · Events: evidence.uploaded.
GET/portal/evidence/:id/download
- Credential
- Participant session
- Permission
view(evidence of this mandate only)
POST/portal/evidence/:id/withdraw
- Credential
- Participant session
- Permission
upload_evidence(own, unreviewed uploads)- Idempotency
- honoured
- Emailed code
- never
Response
200 PortalEvidence. · Errors: 409 invalid_state_transition. · Records: evidence.withdrawn.
POST/portal/evidence/:id/accept
- Credential
- Participant session
- Permission
approve(payer, where the requirement's reviewer is the payer)- Idempotency
- honoured
- Emailed code
- never (accepting an item approves nothing; approving the stage is the money-moving step)
Response
200 PortalEvidence. · Errors: 409 invalid_state_transition. · Records: evidence.accepted (via: payer) · Events: evidence.accepted.
POST/portal/evidence/:id/reject
- Credential
- Participant session
- Permission
request_changes(payer reviewer)- Idempotency
- honoured
- Emailed code
- never
Request
reason string required (10–1000).
Response
200 PortalEvidence (a required item rejected while the stage is submitted reopens it and counts as a change request).
Errors
409 invalid_state_transition, change_request_limit_reached (+ limit).
Record and events
evidence.rejected (+ stage.changes_requested) · Events: evidence.rejected.
POST/portal/stages/:id/submit
- Credential
- Participant session
- Permission
submit_stage(payee)- Idempotency
- honoured
- Emailed code
- never
Request
note string optional (≤ 1000; accepted and validated but not stored until the stage engine stores a submit note).
Response
200 PortalStage (submitted; auto_approve_at set once the approval request reaches the payer's verified address, when the accepted terms include auto-approval).
Errors
422 evidence_incomplete (+ missing); 409 invalid_state_transition (not open).
Record and events
stage.submitted · Events: stage.submitted · Notes: mandatory email approval_requested to the payer, showing the auto-approval date and what approving starts (the next debit).
POST/portal/stages/:id/approve
- Credential
- Participant session
- Permission
approve(payer)- Idempotency
- honoured, recommended
- Emailed code
- required
Request
confirm boolean required (true; one deliberate step, after the dialog showed on_approval_triggers).
Response
200 PortalStage (approved; release summary present; the release executes asynchronously).
Errors
400 parameter_missing (confirm); 409 invalid_state_transition (not submitted, or open with evidence still required), dispute_already_open (+ dispute: propose proceed or withdraw instead).
Record and events
stage.approved (via: payer, channel, evidence ids + hashes, termsHash), release.created, release.gate_evaluated, plus collection.triggered for on_stage_approval collections · Events: stage.approved, release.created.
Notes
approving accepts every submitted evidence of the stage (approval.evidence).
POST/portal/stages/:id/request-changes
- Credential
- Participant session
- Permission
request_changes(payer)- Idempotency
- honoured
- Emailed code
- never
Request
reason string required (10–1000).
Response
200 PortalStage (open; auto-approval cleared; change_requests.used + 1).
Errors
409 invalid_state_transition, change_request_limit_reached (+ limit: the payer can now only approve or raise a dispute).
Record and events
stage.changes_requested · Events: stage.changes_requested.
POST/portal/stages/:id/dispute-attachments
- Credential
- Participant session
- Permission
dispute- Idempotency
- honoured (the file digest is hashed)
- Emailed code
- never
Request
multipart/form-data with ONE file, type (default document), note optional.
Response
201 PortalEvidence (purpose: dispute, on this stage, not yet attached to a dispute; reference it in POST /portal/stages/:id/dispute → evidence). Upload errors as
Record and events
evidence.uploaded.
POST/portal/stages/:id/dispute
- Credential
- Participant session
- Permission
dispute- Idempotency
- honoured, recommended
- Emailed code
- never (protective: works even when email is slow)
Request
reason_code string required; description string required (20–4000); evidence string[] optional (evd_ of this mandate, typically uploaded with dispute-attachments).
Response
201 PortalDispute.
Errors
409 dispute_already_open (+ dispute), invalid_state_transition (stage closed, or released with a scope that covers nothing later); 404 (evidence of another mandate).
Record and events
dispute.opened (role, reason code, description digest, scope, collections pause), mandate.hold_placed, release.gate_evaluated (covered releases) · Events: dispute.opened, mandate.hold_placed.
Notes
the scope and collections pause come from the accepted terms, never from the raiser; the covered stages, the dispute and the hold are written before the response; auto-approval stops. Payer, payee and tenant are notified (mandatory).
GET/portal/disputes/:id
- Credential
- Participant session
- Permission
view
GET/portal/disputes/:id/refund-plan
- Credential
- Participant session
- Permission
view
Request
type required; release_amount, refund_amount as needed; schedule_changes, recollect optional (JSON-encoded).
Response
200 RefundPlan (shown before proposing or accepting, with fee costs and executable alternatives).
POST/portal/disputes/:id/documents
- Credential
- Participant session
- Permission
dispute- Idempotency
- honoured
- Emailed code
- never
Request
multipart/form-data with ONE file, type, note. · Response: 201 PortalEvidence.
Errors
409 invalid_state_transition (dispute closed). · Records: evidence.uploaded.
POST/portal/disputes/:id/proposals
- Credential
- Participant session
- Permission
propose_outcome- Idempotency
- honoured, recommended
- Emailed code
- required when the proposal moves money (release, refund or re-collection; `proceed` counts, because it lets the stage's release run — the engine's `MONEY_MOVING` set), else never
Request
type string required (proceed, partial_release, refund, end_mandate); release_amount, refund_amount integers as the type needs (partial_release: 0 < release < remaining); schedule_changes ScheduleChanges optional (reduce, void or re-date uncollected collections and later stages); recollect optional [{amount, label}].
Response
201 PortalProposal (the proposer's acceptance is implied; their older open proposal is superseded; a dispute_settlement version is attached when schedule_changes or recollect are present).
Errors
409 outcome_not_feasible (+ alternatives, warnings), invalid_state_transition (dispute not open).
Record and events
dispute.proposal_created (+ dispute.proposal_superseded, mandate.version_created for a settlement version) · Events: dispute.proposal_created.
POST/portal/disputes/:id/proposals/:proposalId/accept
- Credential
- Participant session
- Permission
propose_outcome(the OTHER party)- Idempotency
- honoured, recommended
- Emailed code
- required
Request
confirm boolean required (true); with a settlement version: terms_hash, typed_name and consents (incl. ach_debit_authorization for a re-collection) as POST /portal/accept.
Response
200 PortalDispute (resolving; the outcome executes in the fixed order: re-collections settle first, then the planned refunds are reserved, schedule changes applied, the outcome release created, refunds last).
Errors
409 outcome_not_feasible (re-checked at acceptance), terms_changed, invalid_state_transition (current_state: "awaiting_counterparty" when accepting one's own proposal; proposal not open); 422 consent_missing.
Record and events
dispute.proposal_accepted (+ mandate.amendment_accepted_by_party for a settlement version), dispute.outcome_executing, then release.created / refund.planned / collection.triggered, dispute.resolved, mandate.hold_lifted · Events: dispute.proposal_accepted, dispute.resolved, mandate.hold_lifted.
POST/portal/disputes/:id/proposals/:proposalId/reject
- Credential
- Participant session
- Permission
propose_outcome(the other party)- Idempotency
- honoured
- Emailed code
- never
Request
reason string optional (≤ 1000). · Response: 200 PortalDispute.
Errors
409 invalid_state_transition. · Records: dispute.proposal_rejected.
POST/portal/disputes/:id/proposals/:proposalId/withdraw
- Credential
- Participant session
- Permission
propose_outcome(the proposer)- Idempotency
- honoured
- Emailed code
- never
Response
200 PortalDispute. · Errors: 409 invalid_state_transition. · Records: dispute.proposal_withdrawn.
POST/portal/disputes/:id/external-outcome/accept
- Credential
- Participant session
- Permission
propose_outcome- Idempotency
- honoured
- Emailed code
- required
Request
confirm boolean required (true); with a settlement version: terms_hash, typed_name, consents (payer).
Response
200 PortalDispute (external_outcome.accepted_by_you: true; when both parties accepted, it executes now instead of at execute_after).
Errors
409 invalid_state_transition (no confirmed external outcome awaiting its notice period), terms_changed; 422 consent_missing.
Record and events
dispute.external_outcome_accepted_by_party (then dispute.outcome_executing when both accepted).
Notes
accepting early is optional; a party who disagrees goes back to the forum named in the terms (the notice is not a veto).
POST/portal/disputes/:id/withdraw
- Credential
- Participant session
- Permission
dispute(the raiser only; others get 403insufficient_permission)- Idempotency
- honoured
- Emailed code
- required (withdrawing lifts the holds)
Request
reason string optional (≤ 1000).
Response
200 PortalDispute (withdrawn; holds lifted; a submitted stage gets a fresh auto-approval window).
Errors
409 invalid_state_transition (not open).
Record and events
dispute.withdrawn, mandate.hold_lifted · Events: dispute.withdrawn, mandate.hold_lifted.
POST/portal/disputes/:id/notes
- Credential
- Participant session
- Permission
dispute- Idempotency
- honoured
- Emailed code
- never
Request
text string required (1–4000). · Response: 200 PortalDispute.
Errors
409 invalid_state_transition (closed). · Records: dispute.note_added (text digest).
GET/portal/receipts
- Credential
- Participant session
- Permission
view_receipts- Pagination
- cursor
Response
200 ListResponse<Receipt> (receipts addressed to this party: payer — collections, releases, refunds; payee — releases).
GET/portal/receipts/:id
- Credential
- Participant session
- Permission
view_receipts
