Parties
A party is a payer or a payee known to your account, reusable across mandates. Parties are not dashboard users. A payer has a Stripe customer on your account and one or more payment methods. A payee has a connected account on your Stripe platform, created and onboarded through Stripe; Holdyn never approves a payee's identity checks.
Posting a party with the same kind and email as an existing one returns the existing party with deduplicated: true. A party's contact email stays unverified until the party opens an emailed link or passes a code in the portal.
Access links (grants) let a party open the portal for one mandate. Holdyn emails them by default; in live mode the tenant can deliver them itself only if an owner turned that on, and then every payment action through such a link needs an emailed code. See Party links and email codes.
The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.
At a glance#
POST /partiesGET /partiesGET /parties/:idPATCH /parties/:idPOST /parties/:id/contact-change/cancelPOST /parties/:id/archivePOST /parties/:id/erasePOST /parties/:id/payee-accountPOST /parties/:id/payee-account/syncPOST /parties/:id/link-customerGET /parties/:id/bank-eventsGET /payment-methodsGET /payment-methods/:idPOST /mandates/:id/grantsGET /mandates/:id/grantsDELETE /grants/:id
Objects
Party
{
"id": "pty_6543a1b2c3d4e5f6a7b8cb00",
"object": "party",
"livemode": false,
"kind": "payee",
"entity_type": "business",
"country": "US",
"display_name": "Ridge Services LLC",
"contact": {
"name": "Dana Ridge", "email": "dana@ridgeservices.example", "phone": "+15105550111",
"email_verified_at": "2026-11-03T18:00:00.000Z", "email_verified_via": "holdyn_grant_exchange",
"email_status": "ok", "email_status_at": null,
"pending_email": null, "pending_email_requested_at": null, "pending_email_requested_by": null
},
"external_reference": "provider-881",
"status": "active",
"first_seen_at": "2026-11-03T10:00:00.000Z",
"payer": null,
"payee": {
"stripe_account_id": "acct_1QpayeeX",
"stripe_verified_name": "Ridge Services LLC",
"link_mode": "created",
"dashboard_type": "express",
"readiness": {
"ready": false, "ready_for_on_behalf_of": false,
"transfers": "pending", "card_payments": "inactive", "ach_payments": "inactive",
"charges_enabled": false, "payouts_enabled": false, "details_submitted": false,
"currently_due": ["external_account", "tos_acceptance.date"], "past_due": [], "eventually_due": ["external_account"],
"disabled_reason": "requirements.past_due", "current_deadline": null, "synced_at": "2026-11-03T10:05:00.000Z", "source": "webhook"
},
"payout_interval": "daily",
"payout_delay_days": 2,
"first_ready_at": null,
"account_created_at": "2026-11-03T10:01:00.000Z",
"bank": null
},
"erasure": null,
"metadata": { "crm_id": "881" },
"erased_at": null,
"created_at": "2026-11-03T10:00:00.000Z",
"updated_at": "2026-11-03T10:05:00.000Z"
}PaymentMethod and PaymentMethodImpact
{
"id": "ppm_6543a1b2c3d4e5f6a7b8cb10",
"object": "payment_method",
"livemode": false,
"party": "pty_6543a1b2c3d4e5f6a7b8cb01",
"type": "us_bank_account",
"role": "primary",
"status": "active",
"display": { "bank_name": "Chase", "last4": "6789", "account_type": "checking", "account_holder_type": "individual", "brand": null, "exp_month": null, "exp_year": null },
"scope_mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
"on_behalf_of_account": "acct_1QpayeeX",
"stripe_payment_method_id": "pm_1Qxyz",
"stripe_setup_intent_id": "seti_1Qxyz",
"stripe_mandate_id": "mandate_1Qxyz",
"mandate_status": "active",
"verification": { "method": "instant", "microdeposit_deadline": null, "hosted_verification_url": null, "reminders_sent": 0 },
"backup_consents": [],
"replaces": null,
"replaced_by": null,
"failure_code": null,
"revoked_at": null,
"revoked_reason": null,
"last_used_at": "2026-11-04T15:00:00.000Z",
"created_at": "2026-11-03T12:00:00.000Z",
"updated_at": "2026-11-04T15:00:00.000Z"
}Grant (portal access link)
{
"id": "grant_6543a1b2c3d4e5f6a7b8cb30",
"object": "grant",
"livemode": false,
"mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
"party": "pty_6543a1b2c3d4e5f6a7b8cb01",
"role": "payer",
"permissions": ["view", "accept_terms", "setup_payment", "pay", "approve", "request_changes", "dispute", "propose_outcome", "view_receipts"],
"purpose": "invitation",
"delivery": "holdyn_email",
"otp_required": false,
"template_id": null,
"next_path": null,
"expires_at": "2026-11-10T10:00:00.000Z",
"revoked_at": null,
"revoked_reason": null,
"exchange_count": 3,
"first_exchanged_at": "2026-11-03T18:00:00.000Z",
"last_exchanged_at": "2026-11-05T08:30:00.000Z",
"devices_count": 1,
"delivered_to_hint": "j***@example.com",
"created_by": { "type": "member", "id": "mem_6543a1b2c3d4e5f6a7b8c9d1" },
"created_at": "2026-11-03T10:00:00.000Z"
}Endpoints
POST/parties
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Idempotency
- honoured, recommended
Request
kind string required (payer, payee; funder ⇒ 422 feature_not_available); entity_type string required (individual, business); display_name string required (1–200); contact object required: name (1–120), email (valid), phone optional (≤ 40); country string optional ( default the tenant's country; payees must be US at launch); external_reference string optional (≤ 200, unique per tenant+mode+kind); metadata optional.
Response
201 Party + "deduplicated": false; or 200 Party + "deduplicated": true when a party of the same tenant, mode, kind and email exists.
Errors
409 external_reference_in_use (+ party); 422 feature_not_available, payee_country_unsupported (+ country).
Record and events
party.created (contact values as party-salted digests) · Events: party.created.
Notes
the contact email is unverified until the party exchanges a Holdyn-emailed link or passes a portal code.
GET/parties
- Credential
- Member session or API key
- Permission
parties.read- API key scope
parties:read- Mode
- scoped
- Pagination
- cursor
Request
kind (multi), status (multi; default active), email (exact), external_reference, search (2–100 characters, anchored case-insensitive prefix of display name or email; regex-escaped), created[gte|lte], payee_ready boolean, email_status (multi: ok, bounced, complained, suppressed).
Response
200 ListResponse<Party>.
GET/parties/:id
- Credential
- Member session or API key
- Permission
parties.read- API key scope
parties:read- Mode
- scoped
PATCH/parties/:id
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Step-up
- live, when
contact.emailchanges on a party with a sent non-terminal mandate - Idempotency
- honoured
Request
display_name; contact (name, email, phone; partial merge); country; external_reference; metadata (merge, null deletes).
Response
200 Party + "contact_change": null | {"status": "applied"|"pending_confirmation", "pending_email_hint": "d***@example.com", "requested_at": "…"} (PartyUpdateResult).
Errors
409 invalid_state_transition (erased or restricted party), external_reference_in_use, contact_change_pending; 422 payee_country_unsupported.
Record and events
party.updated (changed values as digests) or party.contact_change_requested · Events: party.updated. - Notes : on a party with no sent non-terminal mandate a new email applies at once. Otherwise it becomes contact.pending_email: Holdyn emails a confirmation link to the NEW address (contact_change_confirm, {PORTAL}/p/{slug}/confirm-email#t=…, 72 h) and a notice to the OLD verified address (contact_change_notice); only the party's confirmation swaps the address (party.contact_changed, email_verified_at set, every active grant delivered to the old address revoked contact_changed); the tenant then resends links (POST /mandates/:id/resend-invitations). While pending, mandatory notices, codes and links keep going to the verified address and auto-approval for this party is blocked. Display names already frozen in sent terms do not change; a payer's Stripe Customer email is updated on the next payment setup.
POST/parties/:id/contact-change/cancel
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Idempotency
- honoured
Request
reason string optional (≤ 500).
Response
200 Party (contact.pending_email: null; the confirmation link stops working).
Errors
409 invalid_state_transition (no pending change).
Record and events
party.updated (data.contactChangeCancelled: true).
POST/parties/:id/archive
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Idempotency
- honoured
Response
200 Party (status: archived; hidden from default lists, cannot be used for new mandates).
Errors
409 party_has_open_mandates. · Records: party.archived · Events: party.updated.
POST/parties/:id/erase
- Credential
- Member session
- Permission
parties.erase(owner, admin)- Mode
- scoped
- Idempotency
- honoured
Request
reason string required (10–500, e.g. the data-subject request reference).
Response
200 Party (status: restricted at once, erased when the purge completed; erasure filled).
Errors
409 party_has_open_mandates.
Record and events
party.erasure_scheduled (with the acceptance-proof retention basis), then party.erased · Events: party.updated. - Notes : immediate restriction (no further processing or mail); deletion of contact data, AI artifacts, event snapshots, webhook delivery payloads and evidence-pack files naming the party; piiSalt deleted (crypto-shredding the chain digests; every hash still verifies). The acceptance proof (typed name, IP, user agent) is kept until erasure.acceptance_proof_retain_until (2 years after the last debit, Nacha, or a legal hold) and then deleted. Stripe objects are untouched (the tenant manages its Stripe data).
POST/parties/:id/payee-account
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Idempotency
- honoured, recommended
Request
exactly one of account_id string (acct_…, link an existing connected account of the tenant's platform) or create: true.
Response
200 Party (payee.link_mode set, readiness and stripe_verified_name mirrored).
Errors
400 parameter_invalid (party not a payee; both/neither fields); 409 payee_account_exists, payee_account_in_terms (the current account is named in an accepted terms version: changing the destination needs an amendment); 422 payee_account_not_connected, payee_country_unsupported, connect_platform_not_ready (+ guidance_url); money-route errors.
Record and events
payee.account_created or payee.account_linked, payee.readiness_changed · Events: payee.readiness_changed.
Notes
creation per (controller.stripe_dashboard.type: express, losses.payments: application, capabilities transfers (+ card_payments, us_bank_account_ach_payments when a mandate uses on_behalf_of), idempotency acct:<partyId>). Usually automatic at mandate send. Holdyn never approves KYC; onboarding happens on Stripe through the portal.
POST/parties/:id/payee-account/sync
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Idempotency
- honoured
Response
200 Party (re-fetched account + external accounts).
Errors
409 invalid_state_transition (no connected account); money-route errors.
Record and events
payee.readiness_changed and/or payee.bank_account_changed only when something changed · Events: same names.
POST/parties/:id/link-customer
- Credential
- Member session or API key
- Permission
parties.manage- API key scope
parties:write- Mode
- scoped
- Idempotency
- honoured
Request
customer_id string required (cus_… on the tenant's Stripe account).
Response
200 Party (payer.stripe_customer_id set; the Customer is adopted, never deleted).
Errors
400 parameter_invalid (party not a payer; Stripe has no such customer); 409 invalid_state_transition (a customer is already set).
Record and events
payer.customer_created with data.via: "linked".
GET/parties/:id/bank-events
- Credential
- Member session or API key
- Permission
parties.read- API key scope
parties:read- Mode
- scoped
- Pagination
- cursor (newest first)
Response
200 ListResponse<PayeeBankEvent>.
GET/payment-methods
- Credential
- Member session or API key
- Permission
parties.read- API key scope
parties:read- Mode
- scoped
- Pagination
- cursor
Request
party (pty_), status (multi), type, role, mandate (methods usable for that mandate).
Response
200 ListResponse<PaymentMethod>. Payment methods are created, replaced and removed only by the payer in the portal.
GET/payment-methods/:id
- Credential
- Member session or API key
- Permission
parties.read- API key scope
parties:read- Mode
- scoped
POST/mandates/:id/grants
- Credential
- Member session or API key
- Permission
grants.issue_link(owner, admin; API scope:grants:write)- Mode
- scoped
- Step-up
- live
Request
role string required (payer, payee); expires_in_days integer optional (1–30, default settings.portal.link_ttl_days); revoke_existing boolean optional (default false: revoke this role's other tenant-delivered grants).
Response
201 IssuedGrant (url with the raw token in the fragment, shown once; purpose: tenant_delivered, delivery: tenant; otp_required: true in live).
Errors
403 tenant_delivered_links_disabled (live while settings.portal.tenant_delivers_links is off); 409 invalid_state_transition (mandate in draft).
Record and events
grant.issued ({purpose: "tenant_delivered", delivery: "tenant"}) (+ grant.revoked per revoked grant). - Notes: test mode always allows it. In live, the party is emailed (at most once a day per mandate, party_link_issued_to_tenant) that a link to the mandate was issued to the tenant, and every money-moving action through the grant needs a fresh emailed code to the party's verified address; releases approved that way carry authority.channel: tenant_delivered_link_otp. Operators and mandates:write keys can only trigger Holdyn-emailed links (resend-invitations). Permissions are the role defaults; terminal mandates get view, view_receipts only.
GET/mandates/:id/grants
- Credential
- Member session or API key
- Permission
mandates.read- API key scope
mandates:read- Mode
- scoped
- Pagination
- cursor
Request
role, purpose (multi), include_revoked boolean (default false).
Response
200 ListResponse<Grant> (never raw tokens; devices_count per grant for the Access tab).
DELETE/grants/:id
- Credential
- Member session or API key
- Permission
mandates.send- API key scope
mandates:write- Mode
- scoped
- Idempotency
- honoured - Request (JSON body, optional):
reasonstring (≤ 500).
Response
200 Grant (revoked_at set, revoked_reason: member; any portal session minted from it stops at its next request: 401 portal_session_revoked).
Record and events
grant.revoked.
