View as Markdown

Authorize · Guide

Build chargeback evidence

Available on Growth and Enterprise

When a charge for an agent's order is disputed as "I didn't authorize this", build an evidence pack and attach it to your response. The pack shows what was approved, who approved it and how, when and from where, and lets anyone check it offline.

Before you begin: the order needs an approved cart approval, or an approved (frictionless) assessment. Each pack is one evidence export on your bill.

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x

1. Build the pack

Call POST /v1/authorize/checkout_approvals/{id}/evidence_packs for a cart approval, or POST /v1/authorize/checkout_assessments/{id}/evidence_packs for an assessment. Add up to 10 of your own fulfillment references; they're labelled as yours in the pack.

curl -s -X POST $PROVENANCE_API/v1/authorize/checkout_approvals/$CHECKOUT_APPROVAL_ID/evidence_packs \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "references": [{ "kind": "tracking", "value": "1Z999AA10123456784" }] }'
{
  "object": "export",
  "id": "exp_01M6KH2Q4V9TBN3W7XYZ5A8C6D",
  "status": "ready",
  "source": { "checkout_approval_id": "coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM", "assessment_id": null },
  "manifest_hash": "3f1c9a0d6b2e4f7a8c5d1e9b0a7f6c3d2e1b4a5c6d7e8f9a0b1c2d3e4f5a6b7c",
  "timestamp": { "status": "not_configured" },
  "file_count": 11,
  "download_url": "/v1/exports/exp_01M6KH2Q4V9TBN3W7XYZ5A8C6D/download",
  "expires_at": "2026-11-05T15:00:00.000Z"
}

2. Download it

GET the download_url with the same key within 24 hours. The zip holds:

FileWhat it is
summary.pdfOne page for a reviewer: the cart, who approved, when, from where, the agent, and how to verify
receipt.jwsThe signed receipt of the decision
intent_token.jwsThe cart-bound token the person's approval minted
binding.jsonThe cart exactly as bound; its SHA-256 is the token's payload_hash
signals.jsonHow the person approved (approval signals), with the IP only as ip_commitment
assessment.jsonThe assessment, when one exists
threeds.jsonThe bank check's 3-D Secure outcome, when one completed: your provider, the transaction status, ECI and authentication id, as you reported them
references.jsonYour references, labelled as yours and not checked by us
jwks.jsonOur public keys at export time
manifest.json, evidence.jwtEvery file's hash, and our ES256 signature over the manifest
verify-bundle.mjs, VERIFY.txtThe offline verifier, and the same steps for any JOSE library

The summary shows the approving device's IP while we still hold it; after its retention it says "held by the store", with the commitment. The pack is a document: we send nothing to any card network or acquirer.

Several orders in one zip

POST /v1/authorize/evidence_pack_batches builds one zip for up to 100 orders: checkout assessments, cart approvals and chargebacks together. Each order gets its own folder holding the same files as a single pack, so every folder verifies on its own. index.json at the top lists the folders and anything that could not be included. It bills one evidence_export per folder.

curl -s -X POST $PROVENANCE_API/v1/authorize/evidence_pack_batches \
  -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" \
  -d '{"checkout_assessment_ids":["cas_01M81CTCDNA4K8YYRSRJ6AS7CR"],"chargeback_ids":["chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J"]}'

The answer carries the export to download and one result per ID. An order with nothing to prove, or a chargeback no decision matched, is a failed result with the reason. In the console, tick rows on Orders or Chargebacks and choose Download evidence.

3. Check it yourself

Anyone can run the verifier with Node 18 or later, with no network and no key:

node verify-bundle.mjs --ip 203.0.113.7 --nonce xY3k9QpL2vN8tB4mW7sYdA

It checks every file against the manifest, our signature over the manifest in evidence.jwt, and the receipt and token signatures against jwks.json. It also checks that the token binds binding.json.

With --ip and --nonce it also checks the IP you hold against the commitment. Any change to any file makes it exit 1.

When the deployment has a timestamp authority configured, the manifest carries an RFC 3161 timestamp; otherwise timestamp says not_configured.

Errors you might see

SymptomCauseFix
parameter_invalid (400) on idThe cart approval isn't approved, or the assessment isn't approved (frictionless)Build the pack once the person has approved.
parameter_invalid (400) on id: "no person approved it"Your own Approve rule let the cart through with nothing covering it (policy_rule_approved, covered: none)There is no person's approval to prove; the assessment's receipt records that your rule approved it.
plan_required (402)Evidence packs are on Growth and aboveUpgrade.
resource_missing (404) on the downloadThe download is past its 24 hours, or belongs to another accountBuild a new pack.

See also