# Chargebacks

Disputes on your connected Stripe account, answered with your approval record: matched to one of your decisions, staged at once and submitted before the deadline, with the outcome.

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

## Endpoints

- `POST /v1/authorize/chargebacks/{id}/references`: [Add your references to a chargeback](#post-v1-authorize-chargebacks-id-references)
- `GET /v1/authorize/chargebacks/{id}`: [Retrieve a chargeback](#get-v1-authorize-chargebacks-id)
- `GET /v1/authorize/chargebacks/{id}/dispute_text`: [Get the text to paste into a dispute](#get-v1-authorize-chargebacks-id-dispute-text)
- `GET /v1/authorize/chargeback_protection`: [Get the Chargeback protection summary](#get-v1-authorize-chargeback-protection)
- `GET /v1/authorize/chargebacks`: [List chargebacks](#get-v1-authorize-chargebacks)
- `GET /v1/authorize/chargeback_protection/orders`: [List one Chargeback protection tab](#get-v1-authorize-chargeback-protection-orders)
- `POST /v1/authorize/chargebacks/{id}/respond`: [Send a chargeback response now](#post-v1-authorize-chargebacks-id-respond)
- `POST /v1/authorize/chargebacks/{id}/dismiss`: [Dismiss a chargeback](#post-v1-authorize-chargebacks-id-dismiss)
- `POST /v1/authorize/chargeback_batches`: [Respond to or dismiss several chargebacks](#post-v1-authorize-chargeback-batches)

## The chargeback object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Unique identifier for the object (`chb_`). |
| `object` | enum | yes | The type of object. One of `chargeback`. |
| `platform` | enum | yes | The payment platform. One of `stripe`, `shopify`. |
| `payment_connection_id` | string | yes | The connection the dispute came through. |
| `platform_dispute_id` | string | yes | The platform's dispute ID (`du_…` on Stripe). |
| `platform_url` | string \| null | no | The dispute in the platform's dashboard. |
| `platform_status` | string | no | The platform's own status, for example `needs_response` or `under_review`. |
| `case_type` | string | no | `chargeback` or `inquiry` (a `compliance` case is never answered). |
| `reason` | string | no | The platform's reason, for example `fraudulent`. |
| `reason_family` | enum | no | `fraud` (fraud and unrecognized), `consumer` (the customer reasons) or `other`. One of `fraud`, `consumer`, `other`. |
| `network_reason_code` | string \| null | no | The card network's reason code, as the platform reports it. |
| `amount` | integer | yes | The disputed amount, in the currency's minor units. |
| `currency` | string | yes | Three-letter currency code, lowercase. |
| `due_by` | timestamp \| null | no | The response deadline. |
| `state` | enum | yes | What Provenance did. `staged`: our evidence is on the dispute, not yet sent. `staged_text_only`: text only (the file slot was taken, or the page limit). `submitted`: Provenance sent the response. `merchant_submitted`: you or Smart Disputes sent it. `failed` with a `next_action` is retrying. One of `received`, `not_eligible`, `unmatched`, `matched`, `staged`, `staged_text_only`, `submitted`, `merchant_submitted`, `failed`, `missed`, `dismissed`. |
| `state_reason` | string \| null | no | Why, for `not_eligible`, `unmatched`, `failed`, `missed` and `merchant_submitted`. |
| `response_mode` | enum | no | `auto`: Provenance submits before the deadline. `review`: staged for you to submit. `stage_only`: staged, and the platform sends it (Stripe Smart Disputes, or Shopify on the due date). `paste`: Shopify with read-only dispute access; nothing is written, and you paste the text from `GET /v1/authorize/chargebacks/{id}/dispute_text` into the dispute in the Shopify admin. One of `auto`, `review`, `stage_only`, `paste`. |
| `review_reason` | string \| null | no | Why a dispute went to review: `setting`, `standing_permission` (no passkey approval of this exact order), `not_me_reported`; or `smart_disputes`. |
| `smart_disputes` | boolean | no | Whether Stripe Smart Disputes handles this dispute. |
| `checkout_approval_id` | string \| null | no | The cart approval the dispute matched, if any. |
| `assessment_id` | string \| null | no | The checkout assessment the dispute matched, if any. |
| `matched_by` | string \| null | no | How the dispute found the decision: a metadata key, `payment_reference` or the order ID. |
| `not_me_reported_at` | timestamp \| null | no | When the person reported the order as not recognized. |
| `references` | array of objects | no | Your references, at most 10. |
| `evidence` | object \| null | no | What Provenance wrote on the dispute; null before anything was staged. |
| `evidence.fields` | array of strings | no | The evidence fields Provenance wrote (its text goes after yours). |
| `evidence.text_sha256` | string \| null | no | sha256 of the text Provenance wrote. |
| `evidence.pdf_sha256` | string \| null | no | sha256 of the PDF Provenance uploaded, when it uploaded one. |
| `evidence.pdf_pages` | integer \| null | no | The PDF's page count (at most 3). |
| `evidence.platform_file_id` | string \| null | no | The platform's ID for the uploaded PDF. |
| `evidence.evidence_pack_id` | string \| null | no | The evidence pack behind the response (`exp_`), kept until 120 days after the outcome. |
| `evidence.evidence_pack_url` | string \| null | no | Download the evidence pack (the account's key or console session). |
| `evidence.staged_at` | timestamp \| null | no | When Provenance first staged its evidence. |
| `evidence.submitted_at` | timestamp \| null | no | When the response was sent. |
| `evidence.submitted_by` | enum | no | Who sent the response. One of `provenance`, `merchant`, `smart_disputes`, `platform`. |
| `evidence.evidence_included` | boolean \| null | no | At the outcome: whether Provenance's evidence was part of the response the platform sent. |
| `next_action` | enum | no | What Provenance does next: retry, submit at the lead time, or remind you. One of `retry`, `submit`, `remind`. |
| `next_action_at` | timestamp \| null | no | When the next action runs. |
| `last_error_code` | string \| null | no | The platform's error code on a failure (never its message). |
| `outcome` | enum | no | How the dispute closed. One of `won`, `lost`, `accepted`, `closed`. |
| `outcome_at` | timestamp \| null | no | When the outcome arrived. |
| `success_fee` | object \| null | no | On a win: 10% of the amount won when Provenance's evidence was part of the response. |
| `success_fee.amount` | integer \| null | no | The amount, in the currency's minor units. |
| `success_fee.currency` | string | no | Three-letter currency code, lowercase. |
| `success_fee.status` | enum | no | The status. One of `billed`, `not_answered`, `not_billed_currency`, `not_billed_plan`, `not_billed_unconfigured`, `not_billed_guaranteed`. |
| `success_fee.rate_pct` | number | no | The success fee's rate, in percent. |
| `created_at` | timestamp | yes | When the object was created. |
| `updated_at` | timestamp | yes | When the object last changed. |

### Example

```json
{
  "object": "chargeback",
  "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
  "platform": "stripe",
  "payment_connection_id": "pyc_01M7ZC3V8N2Q5S7U9W1Y3A5C7E",
  "platform_dispute_id": "du_1QxYz1Hq2vN8xK4t",
  "platform_url": "https://dashboard.stripe.com/test/disputes/du_1QxYz1Hq2vN8xK4t",
  "platform_status": "needs_response",
  "case_type": "chargeback",
  "reason": "fraudulent",
  "reason_family": "fraud",
  "network_reason_code": "10.4",
  "amount": 4250,
  "currency": "usd",
  "due_by": "2026-12-01T23:59:59.000Z",
  "state": "staged",
  "state_reason": null,
  "response_mode": "auto",
  "review_reason": null,
  "smart_disputes": false,
  "checkout_approval_id": "coap_01M7V7QYS8H2SM4X31ME688ZWN",
  "assessment_id": "cas_01M7V7QYS1A2B3C4D5E6F7G8H9",
  "matched_by": "metadata.provenance_checkout_approval",
  "not_me_reported_at": null,
  "references": [],
  "evidence": {
    "fields": [
      "uncategorized_text",
      "access_activity_log",
      "uncategorized_file"
    ],
    "text_sha256": "3b5e8f1c0a9d7e6b4c2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c",
    "pdf_sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e",
    "pdf_pages": 2,
    "platform_file_id": "file_1QxYz3Hq2vN8xK4t",
    "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
    "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download",
    "staged_at": "2026-11-21T16:02:11.204Z",
    "submitted_at": null,
    "submitted_by": null,
    "evidence_included": null
  },
  "next_action": "submit",
  "next_action_at": "2026-11-29T23:59:59.000Z",
  "last_error_code": null,
  "outcome": null,
  "outcome_at": null,
  "success_fee": null,
  "created_at": "2026-11-21T16:02:10.881Z",
  "updated_at": "2026-11-21T16:02:11.204Z"
}
```

## Events

Sent to your [webhook endpoints](https://provenanceauth.com/docs/integrate/webhooks.md) when they subscribe:

- `authorize.chargeback.received`
- `authorize.chargeback.responded`
- `authorize.chargeback.failed`
- `authorize.chargeback.closed`

## Add your references to a chargeback

`POST /v1/authorize/chargebacks/{id}/references`

Your own references for a customer-reason dispute (not received, not as described): tracking, a delivery photo note, a login or a note, at most 10. They are labelled as yours on the PDF's last page, and a staged response is staged again with them.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The chargeback's ID (`chb_`). |
| `references` | body | array of objects | yes | Your references, at most 10. |
| `references.kind` | body | enum | yes | What the reference is. One of `tracking`, `delivery_photo`, `login`, `note`. |
| `references.value` | body | string | yes | The reference itself, as you hold it. |

### Returns

The chargeback. See [the chargeback object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`chargeback_state_invalid`](https://provenanceauth.com/docs/platform/errors.md#chargeback_state_invalid)
- [`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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/references" \
  -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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/references`, {
  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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/references", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "references": [
        {
            "kind": "tracking",
            "value": "1Z999AA10123456784"
        }
    ]
}).json()
```

### Response 200

```json
{
  "object": "chargeback",
  "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
  "platform": "stripe",
  "payment_connection_id": "pyc_01M7ZC3V8N2Q5S7U9W1Y3A5C7E",
  "platform_dispute_id": "du_1QxYz1Hq2vN8xK4t",
  "platform_url": "https://dashboard.stripe.com/test/disputes/du_1QxYz1Hq2vN8xK4t",
  "platform_status": "needs_response",
  "case_type": "chargeback",
  "reason": "product_not_received",
  "reason_family": "consumer",
  "network_reason_code": "13.1",
  "amount": 4250,
  "currency": "usd",
  "due_by": "2026-12-01T23:59:59.000Z",
  "state": "staged",
  "state_reason": null,
  "response_mode": "auto",
  "review_reason": null,
  "smart_disputes": false,
  "checkout_approval_id": "coap_01M7V7QYS8H2SM4X31ME688ZWN",
  "assessment_id": "cas_01M7V7QYS1A2B3C4D5E6F7G8H9",
  "matched_by": "metadata.provenance_checkout_approval",
  "not_me_reported_at": null,
  "references": [
    {
      "kind": "tracking",
      "value": "1Z999AA10123456784"
    }
  ],
  "evidence": {
    "fields": [
      "uncategorized_text",
      "uncategorized_file"
    ],
    "text_sha256": "3b5e8f1c0a9d7e6b4c2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c",
    "pdf_sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e",
    "pdf_pages": 3,
    "platform_file_id": "file_1QxYz3Hq2vN8xK4t",
    "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
    "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download",
    "staged_at": "2026-11-21T16:02:11.204Z",
    "submitted_at": null,
    "submitted_by": null,
    "evidence_included": null
  },
  "next_action": "submit",
  "next_action_at": "2026-11-29T23:59:59.000Z",
  "last_error_code": null,
  "outcome": null,
  "outcome_at": null,
  "success_fee": null,
  "created_at": "2026-11-21T16:02:10.881Z",
  "updated_at": "2026-11-21T16:12:00.640Z"
}
```

## Retrieve a chargeback

`GET /v1/authorize/chargebacks/{id}`

Returns one chargeback: the platform's status, reason, amount and deadline; the decision it matched and how; what Provenance wrote (field names, hashes and the evidence pack, never the text itself); and the outcome with any success fee.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The chargeback's ID (`chb_`). |

### Returns

The chargeback. See [the chargeback 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)
- [`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 "$PROVENANCE_API/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J`, {
  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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "chargeback",
  "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
  "platform": "stripe",
  "payment_connection_id": "pyc_01M7ZC3V8N2Q5S7U9W1Y3A5C7E",
  "platform_dispute_id": "du_1QxYz1Hq2vN8xK4t",
  "platform_url": "https://dashboard.stripe.com/test/disputes/du_1QxYz1Hq2vN8xK4t",
  "platform_status": "needs_response",
  "case_type": "chargeback",
  "reason": "fraudulent",
  "reason_family": "fraud",
  "network_reason_code": "10.4",
  "amount": 4250,
  "currency": "usd",
  "due_by": "2026-12-01T23:59:59.000Z",
  "state": "staged",
  "state_reason": null,
  "response_mode": "auto",
  "review_reason": null,
  "smart_disputes": false,
  "checkout_approval_id": "coap_01M7V7QYS8H2SM4X31ME688ZWN",
  "assessment_id": "cas_01M7V7QYS1A2B3C4D5E6F7G8H9",
  "matched_by": "metadata.provenance_checkout_approval",
  "not_me_reported_at": null,
  "references": [],
  "evidence": {
    "fields": [
      "uncategorized_text",
      "access_activity_log",
      "uncategorized_file"
    ],
    "text_sha256": "3b5e8f1c0a9d7e6b4c2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c",
    "pdf_sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e",
    "pdf_pages": 2,
    "platform_file_id": "file_1QxYz3Hq2vN8xK4t",
    "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
    "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download",
    "staged_at": "2026-11-21T16:02:11.204Z",
    "submitted_at": null,
    "submitted_by": null,
    "evidence_included": null
  },
  "next_action": "submit",
  "next_action_at": "2026-11-29T23:59:59.000Z",
  "last_error_code": null,
  "outcome": null,
  "outcome_at": null,
  "success_fee": null,
  "created_at": "2026-11-21T16:02:10.881Z",
  "updated_at": "2026-11-21T16:02:11.204Z"
}
```

## Get the text to paste into a dispute

`GET /v1/authorize/chargebacks/{id}/dispute_text`

The paragraph and dated activity log Provenance writes into a dispute's evidence, for a chargeback matched to one of your decisions, to paste into the platform's dispute form yourself (Shopify with read-only dispute access, `response_mode: paste`). Names the evidence pack whose PDF you can attach. Free. 409 `chargeback_state_invalid` when nothing matched.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The chargeback's ID (`chb_`). |

### Returns

The text to paste.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`chargeback_state_invalid`](https://provenanceauth.com/docs/platform/errors.md#chargeback_state_invalid)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`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 "$PROVENANCE_API/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/dispute_text" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/dispute_text`, {
  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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/dispute_text", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "chargeback_dispute_text",
  "chargeback_id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
  "platform": "shopify",
  "uncategorized_text": "Provenance approval record: Before this order was placed, a person approved this exact cart (order 5301, USD 42.50, store https://saltmarsh.example) with a passkey and user verification at 2026-11-20T15:02:11.204Z. The signed receipt and how to check it are in the attached PDF and in evidence pack exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S; the receipt can be checked at https://api.provenanceauth.com/v1/verify without a key.",
  "access_activity_log": "Provenance approval record (UTC):\n2026-11-20T15:01:40.118Z cart bound (coap_01M7V7QYS8H2SM4X31ME688ZWN, binding 3b5e8f1c0a9d7e6b...)\n2026-11-20T15:01:40.118Z approval asked\n2026-11-20T15:02:11.204Z passkey approval with user verification (coap_01M7V7QYS8H2SM4X31ME688ZWN)",
  "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
  "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download"
}
```

## Get the Chargeback protection summary

`GET /v1/authorize/chargeback_protection`

Returns whether your account has a Chargeback protection program, the protection limit used over the last 180 days of the limit, the month, how many orders are on each tab and how many disputes had proof sent. An account with no program gets `on: false` and zeros. Read only; it states your records, not the program's terms. Pro and above.

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

### Parameters

No parameters.

### Returns

The summary.

### 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)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

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

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargeback_protection`, {
  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/chargeback_protection", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "chargeback_protection",
  "on": false,
  "program_ids": [],
  "month": "2026-12",
  "window_days": 180,
  "protection_used": 0,
  "protection_limit": 0,
  "currency": "usd",
  "counts": {
    "protected": 0,
    "disputed": 0,
    "not_protected": 5
  },
  "proof": {
    "sent": 0,
    "disputes": 0
  }
}
```

## List chargebacks

`GET /v1/authorize/chargebacks`

Returns the disputes on your connected payment accounts, newest first, with what Provenance did about each: matched to one of your decisions, staged or submitted, or why not. Filter by `state`, `platform`, `outcome` or `since`. Pro and above.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `state` | query | enum | no | Only chargebacks in this state. One of `received`, `not_eligible`, `unmatched`, `matched`, `staged`, `staged_text_only`, `submitted`, `merchant_submitted`, `failed`, `missed`, `dismissed`. |
| `platform` | query | enum | no | Only this platform's. One of `stripe`, `shopify`. |
| `outcome` | query | enum | no | Only chargebacks closed with this outcome. One of `won`, `lost`, `accepted`, `closed`. |
| `since` | query | timestamp | no | Only chargebacks received at or after this time. |
| `sort` | query | enum | no | The order of the list: `due`, `amount`, `created`, with `-` in front for descending. Newest first when omitted. A chargeback with no due date sorts last. A `next_cursor` carries its order; pass it back with the same `sort`. One of `due`, `-due`, `amount`, `-amount`, `created`, `-created`. |
| `limit` | query | integer | no | Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid. |
| `cursor` | query | string | no | Opaque; pass a response's `next_cursor` back to get the next page. |

### Returns

A page of chargebacks.

### 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)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/chargebacks?state=staged" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks?state=staged`, {
  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/chargebacks?state=staged", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [
    {
      "object": "chargeback",
      "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
      "platform": "stripe",
      "payment_connection_id": "pyc_01M7ZC3V8N2Q5S7U9W1Y3A5C7E",
      "platform_dispute_id": "du_1QxYz1Hq2vN8xK4t",
      "platform_url": "https://dashboard.stripe.com/test/disputes/du_1QxYz1Hq2vN8xK4t",
      "platform_status": "needs_response",
      "case_type": "chargeback",
      "reason": "fraudulent",
      "reason_family": "fraud",
      "network_reason_code": "10.4",
      "amount": 4250,
      "currency": "usd",
      "due_by": "2026-12-01T23:59:59.000Z",
      "state": "staged",
      "state_reason": null,
      "response_mode": "auto",
      "review_reason": null,
      "smart_disputes": false,
      "checkout_approval_id": "coap_01M7V7QYS8H2SM4X31ME688ZWN",
      "assessment_id": "cas_01M7V7QYS1A2B3C4D5E6F7G8H9",
      "matched_by": "metadata.provenance_checkout_approval",
      "not_me_reported_at": null,
      "references": [],
      "evidence": {
        "fields": [
          "uncategorized_text",
          "access_activity_log",
          "uncategorized_file"
        ],
        "text_sha256": "3b5e8f1c0a9d7e6b4c2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c",
        "pdf_sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e",
        "pdf_pages": 2,
        "platform_file_id": "file_1QxYz3Hq2vN8xK4t",
        "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
        "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download",
        "staged_at": "2026-11-21T16:02:11.204Z",
        "submitted_at": null,
        "submitted_by": null,
        "evidence_included": null
      },
      "next_action": "submit",
      "next_action_at": "2026-11-29T23:59:59.000Z",
      "last_error_code": null,
      "outcome": null,
      "outcome_at": null,
      "success_fee": null,
      "created_at": "2026-11-21T16:02:10.881Z",
      "updated_at": "2026-11-21T16:02:11.204Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

## List one Chargeback protection tab

`GET /v1/authorize/chargeback_protection/orders`

Returns one tab of the Chargeback protection view, decided within the last 180 days, newest first: `protected`, `disputed` (whatever the protection) or `not_protected` (with the reason). Each order carries its status, why, and its trail. With no program, `not_protected` lists the account's orders that would not qualify (`program_id` null). Pro and above.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `tab` | query | enum | no | The tab. One of `protected`, `disputed`, `not_protected`. |
| `limit` | query | integer | no | Page size, 1–100 (default 20). Outside the range → 400 parameter_invalid. |
| `cursor` | query | string | no | Opaque; pass a response's `next_cursor` back to get the next page. |

### Returns

A page of orders.

### 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)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl "$PROVENANCE_API/v1/authorize/chargeback_protection/orders?tab=disputed" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargeback_protection/orders?tab=disputed`, {
  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/chargeback_protection/orders?tab=disputed", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "list",
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```

## Send a chargeback response now

`POST /v1/authorize/chargebacks/{id}/respond`

Merges your latest evidence with ours and submits the response staged on Stripe now, for example one waiting for your review. A response can be sent only once; answers 409 `chargeback_state_invalid` unless a response is staged and not yet sent.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The chargeback's ID (`chb_`). |

### Returns

The chargeback. See [the chargeback object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`chargeback_state_invalid`](https://provenanceauth.com/docs/platform/errors.md#chargeback_state_invalid)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/respond" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/respond`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/respond", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "chargeback",
  "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
  "platform": "stripe",
  "payment_connection_id": "pyc_01M7ZC3V8N2Q5S7U9W1Y3A5C7E",
  "platform_dispute_id": "du_1QxYz1Hq2vN8xK4t",
  "platform_url": "https://dashboard.stripe.com/test/disputes/du_1QxYz1Hq2vN8xK4t",
  "platform_status": "needs_response",
  "case_type": "chargeback",
  "reason": "fraudulent",
  "reason_family": "fraud",
  "network_reason_code": "10.4",
  "amount": 4250,
  "currency": "usd",
  "due_by": "2026-12-01T23:59:59.000Z",
  "state": "submitted",
  "state_reason": null,
  "response_mode": "auto",
  "review_reason": null,
  "smart_disputes": false,
  "checkout_approval_id": "coap_01M7V7QYS8H2SM4X31ME688ZWN",
  "assessment_id": "cas_01M7V7QYS1A2B3C4D5E6F7G8H9",
  "matched_by": "metadata.provenance_checkout_approval",
  "not_me_reported_at": null,
  "references": [],
  "evidence": {
    "fields": [
      "uncategorized_text",
      "access_activity_log",
      "uncategorized_file"
    ],
    "text_sha256": "3b5e8f1c0a9d7e6b4c2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c",
    "pdf_sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e",
    "pdf_pages": 2,
    "platform_file_id": "file_1QxYz3Hq2vN8xK4t",
    "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
    "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download",
    "staged_at": "2026-11-21T16:02:11.204Z",
    "submitted_at": "2026-11-21T16:30:05.002Z",
    "submitted_by": "provenance",
    "evidence_included": null
  },
  "next_action": null,
  "next_action_at": null,
  "last_error_code": null,
  "outcome": null,
  "outcome_at": null,
  "success_fee": null,
  "created_at": "2026-11-21T16:02:10.881Z",
  "updated_at": "2026-11-21T16:30:05.002Z"
}
```

## Dismiss a chargeback

`POST /v1/authorize/chargebacks/{id}/dismiss`

Provenance stages nothing more on this dispute. What is already staged stays on the platform until you change it there; Provenance never accepts or closes a dispute.

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The chargeback's ID (`chb_`). |

### Returns

The chargeback. See [the chargeback object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`chargeback_state_invalid`](https://provenanceauth.com/docs/platform/errors.md#chargeback_state_invalid)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`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/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/dismiss" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/dismiss`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/chargebacks/chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J/dismiss", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}).json()
```

### Response 200

```json
{
  "object": "chargeback",
  "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
  "platform": "stripe",
  "payment_connection_id": "pyc_01M7ZC3V8N2Q5S7U9W1Y3A5C7E",
  "platform_dispute_id": "du_1QxYz1Hq2vN8xK4t",
  "platform_url": "https://dashboard.stripe.com/test/disputes/du_1QxYz1Hq2vN8xK4t",
  "platform_status": "needs_response",
  "case_type": "chargeback",
  "reason": "fraudulent",
  "reason_family": "fraud",
  "network_reason_code": "10.4",
  "amount": 4250,
  "currency": "usd",
  "due_by": "2026-12-01T23:59:59.000Z",
  "state": "dismissed",
  "state_reason": "chargeback_dismissed",
  "response_mode": "auto",
  "review_reason": null,
  "smart_disputes": false,
  "checkout_approval_id": "coap_01M7V7QYS8H2SM4X31ME688ZWN",
  "assessment_id": "cas_01M7V7QYS1A2B3C4D5E6F7G8H9",
  "matched_by": "metadata.provenance_checkout_approval",
  "not_me_reported_at": null,
  "references": [],
  "evidence": {
    "fields": [
      "uncategorized_text",
      "access_activity_log",
      "uncategorized_file"
    ],
    "text_sha256": "3b5e8f1c0a9d7e6b4c2a1f0e9d8c7b6a5f4e3d2c1b0a9f8e7d6c5b4a3f2e1d0c",
    "pdf_sha256": "9f2c4e6a8b0d1f3e5a7c9b1d3f5e7a9c1b3d5f7e9a1c3b5d7f9e1a3c5b7d9f1e",
    "pdf_pages": 2,
    "platform_file_id": "file_1QxYz3Hq2vN8xK4t",
    "evidence_pack_id": "exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S",
    "evidence_pack_url": "/v1/exports/exp_01M7ZC4K3A5C7E9G1J3L5N7Q9S/download",
    "staged_at": "2026-11-21T16:02:11.204Z",
    "submitted_at": null,
    "submitted_by": null,
    "evidence_included": null
  },
  "next_action": null,
  "next_action_at": null,
  "last_error_code": null,
  "outcome": null,
  "outcome_at": null,
  "success_fee": null,
  "created_at": "2026-11-21T16:02:10.881Z",
  "updated_at": "2026-11-21T16:31:40.118Z"
}
```

## Respond to or dismiss several chargebacks

`POST /v1/authorize/chargeback_batches`

Runs one action on up to 100 chargebacks: `respond` sends a response staged on Stripe now, and `dismiss` stops Provenance preparing one. Each ID answers on its own, so a response that can't be sent does not stop the ones that can; a sent response can't be changed. The permission and plan are the single routes' (Pro and above).

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

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `action` | body | enum | yes | What to do with each chargeback. One of `respond`, `dismiss`. |
| `ids` | body | array of strings | yes | The chargebacks' IDs (`chb_`). |

### Returns

One answer per ID.

### 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)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x
curl -X POST "$PROVENANCE_API/v1/authorize/chargeback_batches" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "respond",
    "ids": [
      "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
      "chb_01M7ZC4K9P3V6X8Z0B2D4F6H8K"
    ]
  }'
```

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/chargeback_batches`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "action": "respond",
    "ids": [
      "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
      "chb_01M7ZC4K9P3V6X8Z0B2D4F6H8K"
    ]
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/authorize/chargeback_batches", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
    "action": "respond",
    "ids": [
        "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
        "chb_01M7ZC4K9P3V6X8Z0B2D4F6H8K"
    ]
}).json()
```

### Response 200

```json
{
  "object": "chargeback_batch",
  "succeeded": 1,
  "failed": 1,
  "results": [
    {
      "id": "chb_01M7ZC4K2R8T5W1Y3B6D9F0H2J",
      "status": "ok",
      "state": "submitted"
    },
    {
      "id": "chb_01M7ZC4K9P3V6X8Z0B2D4F6H8K",
      "status": "failed",
      "error": {
        "type": "invalid_request_error",
        "code": "chargeback_state_invalid",
        "message": "This chargeback is submitted, so there is nothing to respond to."
      }
    }
  ]
}
```
