> 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/node/dispute-service/accept.md).

# Accept

## Overview

The `accept` method concedes a dispute and accepts the chargeback loss. Use when evidence is insufficient or cost of defense exceeds dispute amount.

**Business Use Case:** Tracking shows the package was lost in transit. You cannot prove delivery, so you accept the dispute.

## Request Fields

| Field       | Type   | Required | Description                   |
| ----------- | ------ | -------- | ----------------------------- |
| `disputeId` | string | Yes      | The connector's dispute ID    |
| `reason`    | string | No       | Internal reason for accepting |

## Response Fields

| Field           | Type          | Description            |
| --------------- | ------------- | ---------------------- |
| `disputeId`     | string        | Connector's dispute ID |
| `status`        | DisputeStatus | LOST                   |
| `amountDebited` | Money         | Amount charged back    |
| `statusCode`    | number        | HTTP status code       |

## Example

### SDK Setup

```javascript
const { DisputeClient } = require('hyperswitch-prism');

const disputeClient = new DisputeClient({
    connector: 'stripe',
    apiKey: 'YOUR_API_KEY',
    environment: 'SANDBOX'
});
```

### Request

```javascript
const request = {
    disputeId: "dp_xxx",
    reason: "Package lost in transit - no delivery confirmation"
};

const response = await disputeClient.accept(request);
```

### Response

```javascript
{
    disputeId: "dp_xxx",
    status: "LOST",
    amountDebited: {
        minorAmount: 1000,
        currency: "USD"
    },
    statusCode: 200
}
```

## When to Accept

Accept disputes when:

* No proof of delivery exists
* Defense cost exceeds dispute amount
* Customer's claim is valid
* The order was fraudulent

## Next Steps

* Reach out to customer for resolution
* Review processes to prevent similar disputes


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.hyperswitch.io/integrations/prism/node/dispute-service/accept.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
