Collections
A collection is one planned payment in, collected from the payer on your Stripe account. There is no endpoint that marks a collection paid: only Stripe's confirmation moves it. Members can retry a collection within the retry rules; skipping or rescheduling one is an amendment.
A funding charge is a succeeded Stripe charge. It is the unit that releases draw from and that disputes and refunds freeze or reverse. See Collections and bank debits.
The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.
At a glance#
GET /collectionsGET /collections/:idGET /collections/:id/attemptsPOST /collections/:id/retryGET /funding-chargesGET /funding-charges/:id
Objects
Collection and CollectionAttempt
{
"id": "col_6543a1b2c3d4e5f6a7b8cd10",
"object": "collection",
"livemode": false,
"mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
"sequence": 2,
"spec_id": "c2",
"label": "Materials payment",
"amount": 800000,
"currency": "usd",
"origin": "schedule",
"status": "processing",
"trigger": { "type": "before_stage", "date": null, "stage_spec_id": "s2", "stage": "stg_6543a1b2c3d4e5f6a7b8cd01", "anchor": "expected_date", "lead_days": 7, "fires_at": "2026-11-15T08:00:00.000Z" },
"funding_party": "pty_6543a1b2c3d4e5f6a7b8cb01",
"notice": { "sent_at": "2026-11-15T08:00:02.000Z", "debit_on": "2026-11-18", "notification": "ntf_6543a1b2c3d4e5f6a7b8cf10", "status": "delivered" },
"due_date": "2026-11-18",
"triggered_at": "2026-11-15T08:00:00.000Z",
"next_attempt_at": null,
"waiting_for": null,
"attempt_count": 1,
"represented_count": 0,
"retries": { "insufficient_funds": { "used": 0, "limit": 2, "window_ends_at": null }, "card_soft_decline": { "used": 0, "limit": 2 } },
"first_attempt_at": "2026-11-18T08:00:03.000Z",
"last_failure": null,
"payment_method": "ppm_6543a1b2c3d4e5f6a7b8cb10",
"used_backup": false,
"paid_ahead_at": null,
"current_attempt": "catt_6543a1b2c3d4e5f6a7b8cd20",
"stripe_payment_intent_id": "pi_1Qcol2",
"expected_debit_date": "2026-11-20",
"succeeded_at": null,
"counts_from_at": null,
"settled_at": null,
"return_hold_days": 0,
"amounts": { "collected_amount": 0, "refunded_amount": 0, "frozen_amount": 0, "lost_amount": 0 },
"delinquency": { "state": "none", "due_date": "2026-11-18", "late_at": "2026-11-22T07:59:59.999Z", "default_at": "2026-12-13T07:59:59.999Z", "late_since": null, "defaulted_at": null, "cured_at": null },
"paused": { "paused": false, "holds": [], "reason": null },
"attempts": null,
"next_actions": [ { "action": "settle", "actor": "system", "allowed": false, "blocked_reason": null, "due_at": "2026-11-20T00:00:00.000Z" } ],
"created_at": "2026-11-03T09:50:00.000Z",
"updated_at": "2026-11-18T08:00:03.000Z"
}FundingCharge (unit of allocation, freezing and refund)
{
"id": "fch_6543a1b2c3d4e5f6a7b8cd30",
"object": "funding_charge",
"livemode": false,
"mandate": "man_6543a1b2c3d4e5f6a7b8cc00",
"collection": "col_6543a1b2c3d4e5f6a7b8cd09",
"attempt": "catt_6543a1b2c3d4e5f6a7b8cd19",
"stripe_charge_id": "py_1Qdep",
"stripe_payment_intent_id": "pi_1Qdep",
"payment_method_type": "us_bank_account",
"account_holder_type": "individual",
"amount": 100000,
"currency": "usd",
"stripe_fee_amount": 500,
"net_amount": 99500,
"available_on": "2026-11-06T00:00:00.000Z",
"succeeded_at": "2026-11-04T09:00:30.000Z",
"counts_from_at": "2026-11-04T09:00:30.000Z",
"return_hold_basis": { "kind": "individual", "days": 0, "business_days": false, "entity_type": "individual", "account_holder_type": "individual" },
"status": "exhausted",
"allocatable": false,
"refundable": true,
"available_amount": 0,
"in_flight_amount": 0,
"transferred_amount": 100000,
"retained_amount": 0,
"refunded_amount": 0,
"refund_returned_amount": 0,
"lost_amount": 0,
"frozen_amount": 0,
"refunded_outside_amount": 0,
"transferred_outside_amount": 0,
"reversed_outside_amount": 0,
"frozen_target_amount": 0,
"unbacked_transferred_amount": 0,
"lost_after_transfer_amount": 0,
"recovered_amount": 0,
"reservations": [
{ "ref_kind": "allocation", "ref": "rel_6543a1b2c3d4e5f6a7b8ce10:1", "amount": 100000, "state": "applied", "applied_to": "transferred", "at": "2026-11-04T09:01:00.000Z", "settled_at": "2026-11-04T09:01:02.000Z" }
],
"disputed": false,
"ever_disputed": false,
"processor_disputes": [],
"created_at": "2026-11-04T09:00:31.000Z",
"updated_at": "2026-11-05T09:00:00.000Z"
}Endpoints
GET/collections
- Credential
- Member session or API key
- Permission
mandates.read- API key scope
mandates:read- Mode
- scoped
- Pagination
- cursor
Request
mandate, status (multi), origin (multi), delinquency (multi), waiting_for (multi), due_date[gte|lte], next_attempt_at[gte|lte], payment_method, expand[] ∈ attempts, payment_method.
Response
200 ListResponse<Collection>.
GET/collections/:id
- Credential
- Member session or API key
- Permission
mandates.read- API key scope
mandates:read- Mode
- scoped
Request
expand[] ∈ attempts, payment_method. · Response: 200 Collection.
GET/collections/:id/attempts
- Credential
- Member session or API key
- Permission
mandates.read- API key scope
mandates:read- Mode
- scoped
- Pagination
- cursor (newest attempt first)
Response
200 ListResponse<CollectionAttempt>.
POST/collections/:id/retry
- Credential
- Member session
- Permission
collections.retry- Mode
- scoped
- Idempotency
- honoured, recommended
Request
payment_method string optional (ppm_ of the payer, usable for this mandate; default: the collection's method or the payer's primary); note string optional (≤ 500).
Response
200 Collection (processing, or pending when the attempt is queued behind a lease).
Errors
409 retry_not_allowed (+ reason ∈ represent_limit_reached, outside_retry_window, needs_new_authorization, needs_new_payment_method, too_soon, collection_paused, payer_notice_undeliverable; + next_allowed_at), invalid_state_transition (only pending, retry_scheduled, action_required); 422 payment_method_not_usable (+ reason); money-route errors.
Record and events
collection.member_retry_requested, collection.attempt_started (verified before the PaymentIntent is created; attempt kind member_retry) · Events: collection.processing (then webhook-driven collection.succeeded / collection.failed).
Notes
obeys an ACH retry with the SAME bank account after R01/R09 counts as a re-presentment of the original attempt (max 2 within 40 days); a different method does not. debit_not_authorized needs a new authorization from the payer first. A rail_limit failure is never retried automatically; a member may retry once the tenant has resolved the limit with Stripe. The eligibility re-check (mandate state, holds, pauses, brakes, method, notice) runs immediately before the Stripe call.
GET/funding-charges
- Credential
- Member session or API key
- Permission
mandates.read- API key scope
mandates:read- Mode
- scoped
- Pagination
- cursor
Request
mandate, collection, status (multi), disputed boolean, ever_disputed boolean, allocatable boolean.
Response
200 ListResponse<FundingCharge>.
GET/funding-charges/:id
- Credential
- Member session or API key
- Permission
mandates.read- API key scope
mandates:read- Mode
- scoped
