Skip to main content
Docs

Templates and presets

Templates#

A template is a versioned blueprint for a mandate: the collections, the stages, the conditions and evidence, the dispute rule and the values to confirm. Create a mandate from a template with template_key (the current published version of that key) or template (a specific tpl_ version).

A template can fix the amount, leave it open for each mandate to fill in, or set shares in percent or basis points. Explicit collections and stages in a create request replace the template's list of the same name, each list independently. overrides can change only the settings paths the tenant allowed, and only inside the tenant's limits (otherwise 422 override_out_of_bounds).

Templates move through draft, published and archived. Publishing a template that changes controls can need a second member through a change request. A template version is immutable once published; to change it, create a new version.

bash
curl https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b/templates/validate \
  -H "Authorization: Bearer $HOLDYN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d @template.json

Presets#

A preset is configuration data written by Holdyn that you can install: a controls profile, a set of settings, or templates for a common flow. Presets are data. Nothing in the product runs preset-specific code, and no preset values are fixed in the application.

Installing is a two-step action:

  1. Preview. POST /presets/:key/install with "dry_run": true returns what would change, with every conflict with your current settings.
  2. Install. Repeat the call with acknowledged_paths listing every conflict you accept. If the preset's values are marked as draft values, send acknowledge_draft_values: true too, then confirm each value with POST /presets/:key/confirm-values.

A preset overwrites only the settings keys it lists; unlisted keys are untouched. Installed templates arrive as drafts: a member reviews them and publishes them. A reason (10 to 1000 characters) is required when the install switches a control off, when you install the minimal profile or when the change weakens a safety check. In live mode an install that applies settings needs two-step verification.

Controls profiles#

At onboarding you choose how strict your own checks start:

  • Recommended controls. A waiting period after a payee's bank account changes, a hold on new payees, a cumulative cap per payee, a second approval above a threshold and a duplicate check.
  • Start minimal. Only the system conditions that can never be switched off.

The choice and every later switch-off is recorded with a reason. See The release gate.

Values are yours#

Preset and template values, such as how many silent days before automatic approval or the waiting after a bank change, are drafts for you to confirm and edit. They are never fixed in the engine.

Templates and presets · Holdyn Business docs