> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Close dispute

> Close a Stripe dispute and accept it as lost.

Use `stripe.closeDispute` only when you intend to stop contesting a dispute. Closing is irreversible.

```ts automations/stripe-close-dispute.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { stripe } from "automate.ax/stripe"

export default automation("Close dispute", () => {
  onDashboardRun({ title: "Close dispute" })
  stripe.closeDispute({ disputeId: "du_123" })
})
```

## Inputs

`disputeId` is required. `idempotencyKey` is optional.

## Output

Returns the closed dispute with its resulting status.
