Skip to main content
Docs

Public verification and health

These routes need no credential. Receipt verification and the record public keys power the public verification page. Branding and the logo serve the participant portal. Inbound webhook routes receive Stripe and email-provider events and are listed so you know they exist; they are not part of your integration.

Public routes are limited to 60 requests a minute per IP address (300 for the logo).

The base is https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b. Every endpoint below lists who may call it.

At a glance#

Endpoints

GET/health

Credential
None
Idempotency
n/a

Response

200 {"object": "health", "service": "holdyn-b2b", "status": "ok", "version": "v1", "api_version": "2026-11-01", "engine": "enabled", "indexes": "ok", "missing": [], "timestamp": "…"}. status: "degraded" with missing (env var NAMES only, never values) when a B2B feature is unconfigured, engine: "disabled" while B2B_ENGINE_ENABLED=false, indexes: "missing" when a money-critical unique index is absent. Answers even when the engine router failed to load (the legacy API and /health keep working).

GET/openapi.jsonNot available yet

This route answers 422 feature_not_available until it ships.

Credential
None
Mode
n/a

GET/public/tenants/:slug/branding

Credential
None

Errors

404 not_found (unknown, not yet approved, rejected or offboarded tenant: a pending self-signup never gets a public branded page). Used by the portal before the session exchange and by the request-link page.

GET/public/record/keys

Credential
None

GET/public/receipts/:verifyToken

Credential
None
Idempotency
n/a

Request

:verifyToken must match ^[A-Za-z0-9_-]{22}$ (checked before any lookup; anything else answers the same 404). Query: cursor optional (opaque) continues record.segment (≤ 2,000 rows per page; the next page's cursor is record.next_cursor).

Response

200 PublicReceipt (no party names; record = the receipt's entry, its link segment to the covering checkpoint and that checkpoint; test_mode: true renders "Test record").

Errors

404 not_found; 400 parameter_unknown (any query key other than cursor); 400 parameter_invalid (malformed cursor).

Notes

P0 (receipts link to it, {PORTAL}/verify/{token}); the page verifies the links from body_hash values and the checkpoint signature with the published key.

GET/public/record/verifyNot available yet

This route answers 422 feature_not_available until it ships.

Credential
None
Pagination
`cursor` (opaque) for long segments

Request

tenant=<slug>&mode=live|test&seq=<n>&hash=<64 hex>.

Errors

400 parameter_missing, parameter_invalid; 404 not_found (unknown tenant or seq, or a hash that does not equal the entry at seq: the endpoint answers only for a hash the caller already holds, so nobody can walk a chain to read a tenant's volume).

Notes

returns hashes, sequence numbers and checkpoint signatures only; never personal data.

POST/tenant-webhooks/stripe/:connectionId/:scope

Credential
Stripe signature
Mode
the connection's
Idempotency
dedupe by (connection, Stripe event id)

Request

:connectionId = sconn_…; :scope = account or connect; body = Stripe event JSON. - Responses (always fast, < 300 ms; processing is asynchronous):; 200 {"received": true} — a relevant event stored as a new B2bStripeEvent and queued; 200 {"received": true, "duplicate": true} — same (connection, event id) already stored; 200 {"received": true, "ignored": "mode_mismatch" | "scope_mismatch" | "other_deployment" | "not_holdyn"} — nothing is written for irrelevant events; 400 invalid_signature — for EVERY cheap-check or signature failure: no Stripe-Signature, Content-Length > 1 MB, body not raw, malformed or unknown connection id, unknown scope, bad signature (one answer, so the route reveals nothing about which connections exist); 500 raw_body_missing (mount-order regression, alert); 503 b2b_secrets_unconfigured (Stripe retries for 3 days).

Notes

subscribed events per (account: payment intents, charges, refunds, disputes, setup intents, payment methods, mandates, transfers, balance, platform payouts, Radar, Financial Connections; connect: accounts, capabilities, external accounts, payee payouts, persons). Every handler re-fetches the object before acting (the event is a hint). A connection's status matters only AFTER a valid signature: disconnecting and disconnected connections keep their secrets (30 days) and their events are mirrored into the record from the payload (source: event_only). Events stamped with another holdyn_deployment are ignored. The legacy POST /api/v1/b2b/webhook/stripe stays for the legacy API only.

POST/tenant-webhooks/email/resend

Credential
Email provider signature
Mode
n/a (notifications carry their own mode)
Idempotency
dedupe by svix-id

Request

body = Resend event JSON (email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained).

Record and events

notification.delivered, notification.bounced, notification.complained (+ inbox party_email_undeliverable for a party with a non-terminal mandate) · Events: notification.bounced (party notices only). - Notes : a SECOND Resend endpoint (the consumer receiver is untouched). Matching by the provider email id stored on the notification; bounces and complaints also apply at address level (every notification to the same recipient digest in the last 72 h). Hard bounce ⇒ global suppression and party email_status: bounced; complaint ⇒ tenant-scoped suppression. Every notice-dependent automation for that party (auto-approval, event-triggered debits) is blocked until the contact is fixed.

Public verification and health · Holdyn Business docs