Skip to main content
Docs

Legacy transactions API

The /transactions API from earlier versions keeps working for accounts that already use it. It is deprecated: responses carry Deprecation: true and a Link header with rel="successor-version" that points to Mandates. Build new integrations on mandates.

What remains#

RoutePurpose
POST /transactions, GET /transactions, GET /transactions/:idCreate, list and read a transaction.
POST /transactions/:id/cancelCancel a transaction that is not in a final state.
POST /transactions/:id/releaseRelease a funded transaction.
POST /transactions/:id/access-tokens, DELETE /access-tokens/:idIssue and revoke a participant access link.
GET /transactions/:id/eventsThe event log of a transaction.
GET /portal/transaction, POST /portal/fund, POST /portal/approveThe older participant portal.

Legacy routes keep their own shapes: the b2btxn_, b2bev_ and b2bat_ ids, the list shape { "data": [], "has_more": false }, the error envelope { "error": { "code", "message" } } without a type, and the Idempotent-Replayed: 1 header. They gain a 28-second timeout and answer 504 request_timeout in the legacy envelope.

Credentials are API keys with the legacy scopes transactions:read, transactions:write and access_tokens:write. Signed-in members map to the same actions: reading needs mandates.read, creating needs mandates.create and releasing needs releases.approve.

Moving to mandates#

LegacyMandates API
A transaction holding one amount until a conditionA mandate with collections (money in) and stages (money out)
condition_type, release_methodConditions in the gate: payer approval, evidence, dates, limits and your controls
payer and beneficiary objects inside the transactionParties (pty_…) created once and reused
An access token in the link pathA grant; the token travels after #
POST /transactions/:id/releaseNo manual release. Approving a stage creates a release, and the gate decides whether it proceeds
Money through Holdyn's own Stripe accountMoney on your own Stripe account
One API key per accountMembers with roles, and API keys per mode with scopes
  1. Connect your own Stripe account for test mode and install a template. See Quickstart.
  2. Create parties and a mandate for each new job instead of a transaction.
  3. Replace polling with webhooks.
  4. Run old and new side by side until your last legacy transaction is final, then ask for the legacy API to be switched off.

New accounts, and any account that connects its own Stripe account, can't use the legacy routes at all.

Legacy transactions API · Holdyn Business docs