View as Markdown

Authorize · API reference

Evidence packs

A chargeback evidence pack for an approved agent order: signed, offline-verifiable, and yours to send.

Related guide: Chargeback evidence

The evidence pack object

Attributes

objectenumRequired
Always export. One of export.
idstringRequired
The export's ID (exp_…).
statusenumRequired
Always ready. One of ready.
sourceobjectRequired
What the pack proves.
Show child attributes
checkout_approval_idstring | null
The approved cart approval.
assessment_idstring | null
The assessment of the same cart.
manifest_hashstringRequired
SHA-256 over the canonical manifest; evidence.jwt signs it.
timestampobjectRequired
The RFC 3161 timestamp over the manifest hash: timestamped, or not_configured / error (marked absent, never made up).
file_countintegerRequired
Files in the zip.
filesarray of stringsRequired
The files the manifest lists (summary.pdf, receipt.jws, intent_token.jws, binding.json, signals.json, …).
download_urlstringRequired
GET it with your key or console session.
expires_attimestampRequired
When the download expires.
dispute_textobject
The text to paste into a processor's dispute form by hand: the factual paragraph and the dated activity log our automatic responses write.
Show child attributes
uncategorized_textstring
The paragraph (Stripe's uncategorized_text, Shopify's additional information).
access_activity_logstring
The dated event list (the activity log field).

The evidence pack object

{
  "object": "export",
  "id": "exp_01M7ZPSZ4KNMJKS4YX8KRM308M",
  "status": "ready",
  "source": {
    "checkout_approval_id": null,
    "assessment_id": "cas_01M7ZPSZ3YD6ZFYS9290S9ZYFC"
  },
  "manifest_hash": "a12079bb12d24564f80197f8410c1a5fd27790c64c2c62cc507bf10f2018c6f1",
  "timestamp": {
    "status": "not_configured",
    "reason": "TSA_URL is not set on this deployment"
  },
  "file_count": 11,
  "files": [
    "assessment.json",
    "binding.json",
    "jwks.json",
    "… 6 more"
  ],
  "download_url": "/v1/exports/exp_01M7ZPSZ4KNMJKS4YX8KRM308M/download",
  "expires_at": "2026-11-22T18:44:55.059Z",
  "dispute_text": {
    "uncategorized_text": "Provenance approval record: This order (order ord_8814, USD 38.00, store https://harborbean.example) was placed under a token or standing permission the agent presented (assessment reason: token_covers_cart), recorded at 2026-11-21T18:44:55.038Z. The signed receipt and how to check it are in the attached PDF and in evidence pack exp_01M7ZPSZ4KNMJKS4YX8KRM308M; the receipt can be checked at http://localhost:8080/v1/verify without a key.",
    "access_activity_log": "Provenance approval record (UTC):\n2026-11-21T18:44:55.038Z token presented at checkout, order decision frictionless (cas_01M7ZPSZ3YD6ZFYS9290S9ZYFC)"
  }
}

Retrieve the 3DS Requestor data of an approval

GET/v1/authorize/checkout_approvals/{id}/threeds_requestor_data

The approval as the 3DS Requestor fields a payment provider's 3-D Secure server can put in an EMV 3DS authentication request: the FIDO data in the FIDO Alliance's format (method 06, or our signed JWS with 07), the signed receipt beside it and the person's browser fields. 503 threeds_bridge_not_configured until a payment-provider partner is integrated. See the bank check guide.

Parameters

idstringpathRequired
The approved cart approval (coap_…).
message_versionenumquery
The EMV 3DS message version (default 2.2.0). One of 2.2.0, 2.3.1.
auth_methodenumquery
06 (default): the FIDO data as a JSON string. 07: the FIDO data signed by Provenance as a compact JWS (typ fido-assurance+jws, jku our JWKS); send it only where your provider takes signed data. One of 06, 07.

Returns

The 3DS Requestor fields.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/checkout_approvals/coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM/threeds_requestor_data" \
  -H "Authorization: Bearer $PROVENANCE_KEY"

Response 200

{
  "object": "threeds_requestor_data",
  "checkout_approval_id": "coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM",
  "messageVersion": "2.2.0",
  "status": "awaiting_partner",
  "threeDSRequestorAuthenticationInfo": {
    "threeDSReqAuthMethod": "06",
    "threeDSReqAuthTimestamp": "202611041502",
    "threeDSReqAuthData": "{\"authTime\":\"2026-11-04T15:02:11Z\",\"FIDOAuthenticatorReferences\":[{\"publicKey\":\"BJDLvkKkuXRpn3bWh_hiJQb8lJNd9kTXEmQgEwoHezkNI_VPGd3vrjrWyZTfgxVDl9_TpixrVjmEAEmegmfL2WI\",\"aaguid\":\"ea9b8d66-4d01-1d21-3ce4-b6b48cb575d4\",\"usedForThisTransaction\":true,\"up\":true,\"uv\":true}],\"rpId\":\"provenanceauth.com\"}"
  },
  "fidoAssuranceData": {
    "authTime": "2026-11-04T15:02:11Z",
    "FIDOAuthenticatorReferences": [
      {
        "publicKey": "BJDLvkKkuXRpn3bWh_hiJQb8lJNd9kTXEmQgEwoHezkNI_VPGd3vrjrWyZTfgxVDl9_TpixrVjmEAEmegmfL2WI",
        "aaguid": "ea9b8d66-4d01-1d21-3ce4-b6b48cb575d4",
        "usedForThisTransaction": true,
        "up": true,
        "uv": true
      }
    ],
    "rpId": "provenanceauth.com"
  },
  "provenanceReceipt": {
    "receipt": "eyJhbGciOiJFUzI1NiIsInR5cCI6InByb3ZlbmFuY2UtcmVjZWlwdCtqd3QiLCJraWQiOiJrMSJ9.eyJyZWNlaXB0X2lkIjoicmNwdF80ZjFjOWEwZDZiMmU0ZjdhOGM1ZDFlOWIwYTdmNmMzZCJ9.c2ln",
    "receiptId": "rcpt_4f1c9a0d6b2e4f7a8c5d1e9b0a7f6c3d"
  },
  "browser": {
    "browserIP": "203.0.113.7",
    "browserUserAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X)",
    "browserLanguage": "en-US",
    "browserTZ": "300"
  },
  "open_questions": [
    "deviceChannel for an agent-initiated purchase: the browser fields describe the person's approving device, not the agent's client"
  ]
}

Build an evidence pack from an assessment

POST/v1/authorize/checkout_assessments/{id}/evidence_packs

Builds a chargeback evidence pack for an allowed assessment, or one whose challenge the person approved: the receipt, the cart as bound, the signals, our public keys, a signed manifest and an offline verifier. Growth and above; one evidence_export each.

Parameters

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired
The assessment's ID (cas_…).
referencesarray of objects
Your own fulfillment references, labelled as yours in the pack (references.json).
Show child attributes
kindenumRequired
What the reference is. One of tracking, delivery_photo, login, note.
valuestringRequired
The reference (a tracking number, a photo URL, a login record, a note).

Returns

The pack, ready to download. See the evidence pack object.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
  -H "Authorization: Bearer prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Checkout at harborbean.example: order ord_8814, USD 38.00",
    "action_payload": {
      "order_id": "ord_8814",
      "total": 3800,
      "currency": "usd",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    },
    "agent_session_id": "sess_reference_evidence",
    "device_id": "dev_00000000000000000000000000000001",
    "biometric_present": true,
    "audience": "https://harborbean.example"
  }' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"cart\": {
      \"order_id\": \"ord_8814\",
      \"total\": 3800,
      \"currency\": \"USD\",
      \"merchant_id\": \"harborbean\",
      \"origin\": \"https://harborbean.example\",
      \"items\": [
        {
          \"sku\": \"mug-sage\",
          \"name\": \"Stoneware mug\",
          \"quantity\": 2,
          \"unit_amount\": 1900
        }
      ]
    },
    \"intent_token\": \"$INTENT_TOKEN\"
  }" > step.json
export ASSESSMENT_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments/$ASSESSMENT_ID/evidence_packs" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "references": [
      {
        "kind": "tracking",
        "value": "1Z999AA10123456784"
      },
      {
        "kind": "note",
        "value": "Delivered to the front door."
      }
    ]
  }'

Response 201

{
  "object": "export",
  "id": "exp_01M7ZPSZ4KNMJKS4YX8KRM308M",
  "status": "ready",
  "source": {
    "checkout_approval_id": null,
    "assessment_id": "cas_01M7ZPSZ3YD6ZFYS9290S9ZYFC"
  },
  "manifest_hash": "a12079bb12d24564f80197f8410c1a5fd27790c64c2c62cc507bf10f2018c6f1",
  "timestamp": {
    "status": "not_configured",
    "reason": "TSA_URL is not set on this deployment"
  },
  "file_count": 11,
  "files": [
    "assessment.json",
    "binding.json",
    "jwks.json",
    "… 6 more"
  ],
  "download_url": "/v1/exports/exp_01M7ZPSZ4KNMJKS4YX8KRM308M/download",
  "expires_at": "2026-11-22T18:44:55.059Z",
  "dispute_text": {
    "uncategorized_text": "Provenance approval record: This order (order ord_8814, USD 38.00, store https://harborbean.example) was placed under a token or standing permission the agent presented (assessment reason: token_covers_cart), recorded at 2026-11-21T18:44:55.038Z. The signed receipt and how to check it are in the attached PDF and in evidence pack exp_01M7ZPSZ4KNMJKS4YX8KRM308M; the receipt can be checked at http://localhost:8080/v1/verify without a key.",
    "access_activity_log": "Provenance approval record (UTC):\n2026-11-21T18:44:55.038Z token presented at checkout, order decision frictionless (cas_01M7ZPSZ3YD6ZFYS9290S9ZYFC)"
  }
}

Build an evidence pack from a cart approval

POST/v1/authorize/checkout_approvals/{id}/evidence_packs

Builds a chargeback evidence pack for a cart approval the person approved: the summary, the receipt, the cart-bound token, the cart as bound, the approval signals, our public keys, a signed manifest and an offline verifier. Growth and above; one evidence_export each.

Parameters

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired
The cart approval's ID (coap_…).
referencesarray of objects
Your own fulfillment references, labelled as yours in the pack (references.json).
Show child attributes
kindenumRequired
What the reference is. One of tracking, delivery_photo, login, note.
valuestringRequired
The reference (a tracking number, a photo URL, a login record, a note).

Returns

The pack, ready to download. See the evidence pack object.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/authorize/checkout_approvals/coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM/evidence_packs" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "references": [
      {
        "kind": "tracking",
        "value": "1Z999AA10123456784"
      }
    ]
  }'

Response 201

{
  "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,
  "files": [
    "VERIFY.txt",
    "binding.json",
    "intent_token.jws",
    "… 6 more"
  ],
  "download_url": "/v1/exports/exp_01M6KH2Q4V9TBN3W7XYZ5A8C6D/download",
  "expires_at": "2026-11-05T15:00:00.000Z"
}

Build evidence packs for several orders

POST/v1/authorize/evidence_pack_batches

Builds one zip with a folder per order, for up to 100 IDs in all: checkout assessments, cart approvals and chargebacks. Each folder is that order's evidence pack and verifies on its own. Answers 201 with the export, or 200 with export: null when no order could be packed. Growth and above.

Parameters

checkout_assessment_idsarray of strings
Checkout assessments (cas_).
checkout_approval_idsarray of strings
Cart approvals (coap_).
chargeback_idsarray of strings
Chargebacks (chb_): the pack is the matched decision's.

Returns

No order could be packed; each ID says why.

Errors

export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -s -X POST "$PROVENANCE_API/v1/mandate/intents" \
  -H "Authorization: Bearer prv_test_full_K7mN3xQp9RbT2vWm8sYd4cFjLhXn6gAe" \
  -H "Content-Type: application/json" \
  -d '{
    "action_description": "Checkout at harborbean.example: order ord_8815, USD 38.00",
    "action_payload": {
      "order_id": "ord_8815",
      "total": 3800,
      "currency": "usd",
      "merchant_id": "harborbean",
      "origin": "https://harborbean.example",
      "items": [
        {
          "sku": "mug-sage",
          "name": "Stoneware mug",
          "quantity": 2,
          "unit_amount": 1900
        }
      ]
    },
    "agent_session_id": "sess_reference_evidence_batch",
    "device_id": "dev_00000000000000000000000000000001",
    "biometric_present": true,
    "audience": "https://harborbean.example"
  }' > step.json
export INTENT_TOKEN=$(jq -r '.intent_token' step.json)
curl -s -X POST "$PROVENANCE_API/v1/authorize/checkout_assessments" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"cart\": {
      \"order_id\": \"ord_8815\",
      \"total\": 3800,
      \"currency\": \"USD\",
      \"merchant_id\": \"harborbean\",
      \"origin\": \"https://harborbean.example\",
      \"items\": [
        {
          \"sku\": \"mug-sage\",
          \"name\": \"Stoneware mug\",
          \"quantity\": 2,
          \"unit_amount\": 1900
        }
      ]
    },
    \"intent_token\": \"$INTENT_TOKEN\"
  }" > step.json
export ASSESSMENT_ID=$(jq -r '.id' step.json)
curl -X POST "$PROVENANCE_API/v1/authorize/evidence_pack_batches" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d "{ \"checkout_assessment_ids\": [\"$ASSESSMENT_ID\"] }"

Response 200

{
  "object": "evidence_pack_batch",
  "export": null,
  "succeeded": 0,
  "failed": 1,
  "results": [
    {
      "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
      "kind": "chargeback",
      "status": "failed",
      "error": {
        "type": "invalid_request_error",
        "code": "resource_missing",
        "message": "No such chargeback."
      }
    }
  ]
}

Was this page helpful? Send us feedback

LLM? Read llms.txt.