# Evidence packs

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

Related guide: [Chargeback evidence](https://provenanceauth.com/docs/authorize/guides/chargeback-evidence.md)

## Endpoints

- `GET /v1/authorize/checkout_approvals/{id}/threeds_requestor_data`: [Retrieve the 3DS Requestor data of an approval](#get-v1-authorize-checkout-approvals-id-threeds-requestor-data)
- `POST /v1/authorize/checkout_assessments/{id}/evidence_packs`: [Build an evidence pack from an assessment](#post-v1-authorize-checkout-assessments-id-evidence-packs)
- `POST /v1/authorize/checkout_approvals/{id}/evidence_packs`: [Build an evidence pack from a cart approval](#post-v1-authorize-checkout-approvals-id-evidence-packs)
- `POST /v1/authorize/evidence_pack_batches`: [Build evidence packs for several orders](#post-v1-authorize-evidence-pack-batches)

## The evidence pack object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | enum | yes | Always `export`. One of `export`. |
| `id` | string | yes | The export's ID (`exp_…`). |
| `status` | enum | yes | Always `ready`. One of `ready`. |
| `source` | object | yes | What the pack proves. |
| `source.checkout_approval_id` | string \| null | no | The approved cart approval. |
| `source.assessment_id` | string \| null | no | The assessment of the same cart. |
| `manifest_hash` | string | yes | SHA-256 over the canonical manifest; `evidence.jwt` signs it. |
| `timestamp` | object | yes | The RFC 3161 timestamp over the manifest hash: `timestamped`, or `not_configured` / `error` (marked absent, never made up). |
| `file_count` | integer | yes | Files in the zip. |
| `files` | array of strings | yes | The files the manifest lists (summary.pdf, receipt.jws, intent_token.jws, binding.json, signals.json, …). |
| `download_url` | string | yes | `GET` it with your key or console session. |
| `expires_at` | timestamp | yes | When the download expires. |
| `dispute_text` | object | no | The text to paste into a processor's dispute form by hand: the factual paragraph and the dated activity log our automatic responses write. |
| `dispute_text.uncategorized_text` | string | no | The paragraph (Stripe's `uncategorized_text`, Shopify's additional information). |
| `dispute_text.access_activity_log` | string | no | The dated event list (the activity log field). |

### Example

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The approved cart approval (`coap_…`). |
| `message_version` | query | enum | no | The EMV 3DS message version (default 2.2.0). One of `2.2.0`, `2.3.1`. |
| `auth_method` | query | enum | no | `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

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`threeds_bridge_not_configured`](https://provenanceauth.com/docs/platform/errors.md#threeds_bridge_not_configured)

### Request

**curl**

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

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_approvals/coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM/threeds_requestor_data`, {
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/authorize/checkout_approvals/coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM/threeds_requestor_data", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `id` | path | string | yes | The assessment's ID (`cas_…`). |
| `references` | body | array of objects | no | Your own fulfillment references, labelled as yours in the pack (`references.json`). |
| `references.kind` | body | enum | yes | What the reference is. One of `tracking`, `delivery_photo`, `login`, `note`. |
| `references.value` | body | string | yes | The reference (a tracking number, a photo URL, a login record, a note). |

### Returns

The pack, ready to download. See [the evidence pack object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
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."
      }
    ]
  }'
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "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"
  }),
})).json();
const intentToken = step1.intent_token;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "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": intentToken
  }),
})).json();
const assessmentId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments/${assessmentId}/evidence_packs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "references": [
      {
        "kind": "tracking",
        "value": "1Z999AA10123456784"
      },
      {
        "kind": "note",
        "value": "Delivered to the front door."
      }
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "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"
}).json()
intent_token = step1["intent_token"]
step2 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "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
}).json()
assessment_id = step2["id"]
data = httpx.post(f"{api}/v1/authorize/checkout_assessments/{assessment_id}/evidence_packs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "references": [
        {
            "kind": "tracking",
            "value": "1Z999AA10123456784"
        },
        {
            "kind": "note",
            "value": "Delivered to the front door."
        }
    ]
}).json()
```

### Response 201

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string | no | Retry a create safely: the same key + request returns the stored response (24 h, per caller). |
| `id` | path | string | yes | The cart approval's ID (`coap_…`). |
| `references` | body | array of objects | no | Your own fulfillment references, labelled as yours in the pack (`references.json`). |
| `references.kind` | body | enum | yes | What the reference is. One of `tracking`, `delivery_photo`, `login`, `note`. |
| `references.value` | body | string | yes | The reference (a tracking number, a photo URL, a login record, a note). |

### Returns

The pack, ready to download. See [the evidence pack object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`invalid_json`](https://provenanceauth.com/docs/platform/errors.md#invalid_json)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)

### Request

**curl**

```bash
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"
      }
    ]
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_approvals/coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM/evidence_packs`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "references": [
      {
        "kind": "tracking",
        "value": "1Z999AA10123456784"
      }
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/checkout_approvals/coap_01M5WX3K8Q2V7N4T6YBA9RJ5DM/evidence_packs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "references": [
        {
            "kind": "tracking",
            "value": "1Z999AA10123456784"
        }
    ]
}).json()
```

### Response 201

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `checkout_assessment_ids` | body | array of strings | no | Checkout assessments (`cas_`). |
| `checkout_approval_ids` | body | array of strings | no | Cart approvals (`coap_`). |
| `chargeback_ids` | body | array of strings | no | Chargebacks (`chb_`): the pack is the matched decision's. |

### Returns

No order could be packed; each ID says why.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)

### Request

**curl**

```bash
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\"] }"
```

**Node**

```ts
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/intents`, {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.PROVENANCE_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "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"
  }),
})).json();
const intentToken = step1.intent_token;
const step2 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/checkout_assessments`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "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": intentToken
  }),
})).json();
const assessmentId = step2.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/evidence_pack_batches`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({ "checkout_assessment_ids": [assessmentId] }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/intents", headers={"Authorization": f"Bearer {os.environ['PROVENANCE_KEY']}"}, json={
    "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"
}).json()
intent_token = step1["intent_token"]
step2 = httpx.post(f"{api}/v1/authorize/checkout_assessments", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "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
}).json()
assessment_id = step2["id"]
data = httpx.post(f"{api}/v1/authorize/evidence_pack_batches", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "checkout_assessment_ids": [
        assessment_id
    ]
}).json()
```

### Response 200

```json
{
  "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."
      }
    }
  ]
}
```
