Skip to main content
Docs

Evidence and evidence packs

Evidence#

Evidence is a file with typed details, attached to a stage. The payee, or your backend through the API, uploads it; the payer or a member reviews it, as the terms say.

  • One file per request, PDF or an image (JPEG, PNG, WebP, HEIC, HEIF), up to 20 MB. The type, the name and the first bytes of the file are checked.
  • Fingerprinted. The SHA-256 of the file is computed on the server before it is stored. The file never changes. A newer upload can supersede an earlier one of the same stage, and the old one is kept with its status.
  • Typed details. type comes from the evidence vocabulary. You can add document_reference, invoice_number, invoice_date, amount and a note.
  • Duplicates. The same hash, invoice number or document reference used elsewhere for your tenant raises duplicate_of and a risk flag, and the duplicate_check condition can block the release. An exact file you already uploaded to the stage answers 409 duplicate_file.
  • Downloads are presigned links valid for 300 seconds, never direct file URLs.
bash
curl https://holdyn-fb2e34c7cbae.herokuapp.com/api/v1/b2b/stages/stg_…/evidence \
  -H "Authorization: Bearer $HOLDYN_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F type=delivery_note -F document_reference=DN-1142 -F file=@delivery-note.pdf

Status#

An evidence item is submitted, then accepted or rejected, superseded by a newer item, or withdrawn. A review records who reviewed it and by which route: the payer, a member, the automatic-approval rule or an agreement. A member never reviews evidence they uploaded. Uploading to a stage that was already submitted restarts its automatic-approval window.

Contract and other documents#

A mandate can carry documents that are not tied to a stage: the signed contract (purpose: contract), a compliance exemption document, a cancellation document, or the decision document of an outside outcome. Contract documents are part of the accepted terms: they are listed with their hashes in version 1 and offered for download before the parties consent.

Evidence packs#

An evidence pack is an export of one mandate for auditors, insurers or your own records.

  1. POST /mandates/:id/evidence-packs with { "format": "json" } or "csv", and optionally as_of_seq, the record entry the pack is as of. The default is the current head.
  2. You get 202 with status: queued. Poll GET /evidence-packs/:id every few seconds while it is queued or building.
  3. When it is ready, the response carries a fresh download link and the pack's sha256.

Packs are deterministic: the same mandate, format and as_of_seq give identical bytes, so you can compare two packs. A pack contains:

  • a statement of what it proves and does not prove,
  • each terms version with its hash, proposer and acceptances,
  • each controls version,
  • every gate evaluation with its conditions, inputs and results,
  • approvals with the actor, role, time and whether two-step verification was used,
  • the notices that were sent and whether they arrived,
  • overrides, evidence (id, stage, type, hash, uploader, review),
  • all money movements with Stripe ids,
  • disputes, holds, reconciliation breaks and interventions,
  • assistant output, clearly labelled as analysis and not evidence,
  • the mandate's record entries, the covering checkpoints and the public keys.

Spreadsheet cells that start with =, +, -, @, a tab or a carriage return are prefixed with an apostrophe in CSV packs, so opening one in a spreadsheet can never run a formula.

What a pack proves#

It proves that the entries existed in this order and are unchanged since the covering signed checkpoint, and it shows each step's recorded actor and authority. It does not prove that work was performed (evidence is what the parties supplied), who a person is beyond the access they used, actions taken directly in Stripe unless they were detected, or legal compliance. To verify a pack, recompute the hashes, check the signatures with the published keys and fetch the Stripe objects again by the ids listed.

Reference: Evidence, Evidence packs.

Evidence and evidence packs · Holdyn Business docs