# Disputes now include an evidence_details object for evidence documentation

## What’s new

Updates the `Dispute` object so evidence can be provided as a hash of typed fields rather than a single block of text. Replaces the `evidence_due_by` property with the `evidence_details` hash, which includes `due_by` and `submission_count` for the number of times a dispute has been submitted.

## Impact

Updating the `Dispute` object to accept structured evidence gives you more detailed evidence submission information.

## Changes

#### REST API

| Parameter | Change | Resources or endpoints |
| --- | --- | --- |
| `evidence` | Added | [Dispute#update](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.evidence_details` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

#### Ruby

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `evidence` | Added | [DisputeUpdateParams](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.evidence_details` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

#### Python

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `evidence` | Added | [DisputeModifyParams](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.evidence_details` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

#### PHP

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `evidence` | Added | [Dispute.update().$params](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.evidence_details` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

#### Java

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `evidence` | Added | [DisputeUpdateParams](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.evidenceDetails` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

#### Node.js

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `evidence` | Added | [DisputeUpdateParams](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.evidence` | Changed | `string | null → DisputeEvidence` |
| `Dispute.evidence_details` | Changed | `map(string: string) | null → DisputeEvidenceDetails` |

#### Go

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `Evidence` | Added | [DisputeParams](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.Evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.EvidenceDetails` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

#### .NET

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `Evidence` | Added | [DisputeUpdateOptions](/api/disputes/update?api-version=2024-06-20#update_dispute-evidence) |

| Fields | Change | From → to |
| --- | --- | --- |
| `Dispute.Evidence` | Changed | `nullable(string) → DisputeEvidence` |
| `Dispute.EvidenceDetails` | Changed | `nullable(map(string: string)) → DisputeEvidenceDetails` |

## Upgrade

#### REST API

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
   - If you don’t use an SDK, update your [API requests](https://docs.stripe.com/api/versioning.md) to include `Stripe-Version: 2014-12-08`
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Ruby

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Ruby SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Python

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Python SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### PHP

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your PHP SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Java

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Java SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Node.js

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Node SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Go

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Go SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### .NET

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your .NET SDK to the latest version.
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).
