> For the complete documentation index, see [llms.txt](https://docs.hyperswitch.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyperswitch.io/integrations/prism/java/dispute-service.md).

# Dispute Service Overview

## Overview

The Dispute Service helps you manage chargeback disputes across payment processors using the Java SDK. When customers dispute transactions with their banks, this service enables you to track dispute status, submit evidence, and make informed decisions.

**Business Use Cases:**

* **E-commerce fraud defense** - Submit delivery proof and receipts to contest illegitimate chargebacks
* **Service businesses** - Provide service documentation and customer communication records
* **Subscription disputes** - Submit recurring transaction agreements and cancellation policies
* **Revenue recovery** - Defend valid transactions to minimize chargeback losses

## Operations

| Operation                                                                       | Description                                                                                                      | Use When                                                         |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [`submitEvidence`](/integrations/prism/java/dispute-service/submit-evidence.md) | Upload evidence to dispute customer chargeback. Provides documentation to contest fraudulent transaction claims. | You have proof of delivery, service, or customer acceptance      |
| [`get`](/integrations/prism/java/dispute-service/get.md)                        | Retrieve dispute status and evidence submission state. Tracks dispute progress through bank review process.      | Check dispute status, review evidence deadlines                  |
| [`defend`](/integrations/prism/java/dispute-service/defend.md)                  | Submit defense with reason code for dispute. Presents formal argument against customer's chargeback claim.       | Contesting the dispute with formal defense                       |
| [`accept`](/integrations/prism/java/dispute-service/accept.md)                  | Concede dispute and accepts chargeback loss. Acknowledges liability when evidence is insufficient.               | Evidence is insufficient, cost of defense exceeds dispute amount |

## SDK Setup

```java
import com.hyperswitch.prism.DisputeClient;

DisputeClient disputeClient = DisputeClient.builder()
    .connector("stripe")
    .apiKey("YOUR_API_KEY")
    .environment("SANDBOX")
    .build();
```

## Next Steps

* [Payment Service](/integrations/prism/java/payment-service.md) - Review original payment details
* [Refund Service](/integrations/prism/java/refund-service.md) - Process voluntary refunds to avoid disputes
* [Event Service](/integrations/prism/java/event-service.md) - Handle dispute webhook notifications


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hyperswitch.io/integrations/prism/java/dispute-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
