> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Create a dispute

POST https://api.outpave.com/api/v2/disputes
Content-Type: application/json

Creates a draft dispute, stored encrypted, and reserves the purchase so that no concurrent request can open a second claim on it. Nothing is sent to the issuer until submission. Consent must identify the purchase cardholder and a timestamp within the last 30 days.

Reference: https://developers.outpave.com/v2/api-reference/disputes-api/disputes/create-dispute

## Authentication

- `Authorization` header (bearer token, required) — Access token from `POST /access-token`. Valid for at most 30 minutes.

## Request

### Headers

- `Account-Holder` (string, optional) — The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.
- `X-Request-Id` (string, optional) — Your own correlation ID for this request. It is recorded with the request. The `X-Request-Id` response header is always generated by the server.
- `Idempotency-Key` (string, required) — Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with `Idempotent-Replayed: true`; the same key with a different request is refused with `IDEMPOTENCY_KEY_REUSED`. A key can be used again 30 days after its operation completes.

### Body (application/json)

This endpoint expects a CreateDispute.

- `transactionId` (string, required) — The captured card purchase to dispute.
- `reason` (enum, required) — Dispute reason. It sets which `evidence` fields are allowed and required; see dispute eligibility.
  - Allowed values: `fraudulent`, `no_valid_authorization`, `other`, `not_received`, `merchandise_not_as_described`, `service_not_as_described`, `canceled`, `duplicate`
- `consent` (DisputeConsent, required)
- `amount` (integer, optional) — Amount to dispute, in minor units. Defaults to the full captured amount and cannot exceed it.
- `evidence` (DisputeEvidence, optional) — Evidence fields for the dispute's reason. Timestamps are epoch seconds. Eligibility lists the allowed and required fields; the issuer validates final network rules on submission. File identifiers are never accepted from callers. Where the card's issuer takes the evidence as one text, the fields together, with their names, must fit in 2048 characters; longer evidence returns NOT_ELIGIBLE.

## Response

### 201

Committed resource state.

- `id` (string, required) — Dispute ID.
- `object` ("dispute", required) — Always `dispute`.
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `accountHolderId` (string, required) — Account holder that owns the card.
- `transactionId` (string, required) — The disputed card purchase.
- `status` (enum, required) — `DRAFT`: not sent to the issuer. `INFORMATION_REQUIRED`: the issuer refused the evidence; update it and submit again. `UNDER_REVIEW`: submitted. `CANCELED`: the issuer canceled the submitted dispute, which ended without a decision; the cancellation moves no money. `WON`, `LOST`, `EXPIRED`, `WITHDRAWN` and `CANCELED` are final.
  - Allowed values: `DRAFT`, `INFORMATION_REQUIRED`, `UNDER_REVIEW`, `WON`, `LOST`, `EXPIRED`, `WITHDRAWN`, `CANCELED`
- `reason` (enum, required) — Dispute reason.
  - Allowed values: `fraudulent`, `no_valid_authorization`, `other`, `not_received`, `merchandise_not_as_described`, `service_not_as_described`, `canceled`, `duplicate`
- `amount` (DisputeMoney, required)
- `evidenceUploaded` (boolean, required) — Whether a supporting file is attached.
- `submissionDeadline` (datetime, required) — Submit before this time. Counted from the purchase date by the card issuer's window for the reason: 180 days for every reason, or 110 days, 65 for `no_valid_authorization` and 80 for Mastercard `duplicate` and `no_valid_authorization`. Dispute eligibility reports it. The issuer may allow longer.
- `monetaryTransactions` (list of DisputeMovement, required) — Credits and reversals posted for this dispute. Each is also a transaction; count it once.
- `createdAt` (datetime, required) — When the dispute was created.
- `updatedAt` (datetime, required) — When the dispute last changed.
- `cardProgramId` (string, optional) — Card program of the disputed card. Absent when unknown.
- `submittedAt` (datetime, optional) — When the dispute was sent to the issuer.
- `resolvedAt` (datetime, optional) — When the dispute reached a final status.

## Errors

### 400 Bad Request Error

The request does not match the contract.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 401 Unauthorized Error

The credential is missing or invalid.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 403 Forbidden Error

The credential is valid but cannot perform this operation.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 404 Not Found Error

The resource does not exist, or it is outside the account holder this request acts on.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 409 Conflict Error

The request conflicts with the resource's state, with a unique value, or with another request that used the same `Idempotency-Key`.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 413 Content Too Large Error

The request body is too large.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 415 Unsupported Media Type Error

The request body is not JSON.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 422 Unprocessable Entity Error

The request matches the contract but a business rule refused it.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 429 Too Many Requests Error

The request budget is exhausted.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 500 Internal Server Error

An unexpected error occurred.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 502 Bad Gateway Error

A provider was or may have been asked to act and no definitive answer came back. Retry later with the same Idempotency-Key, never a new one: retries return this response until the outcome is known, then the final response.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

### 503 Service Unavailable Error

A service this request depends on is unavailable.

- `type` (string, required) — Documentation URI for this `code`.
- `title` (string, required) — Short summary, fixed for each `code`.
- `status` (integer, required) — The HTTP status code.
- `detail` (string, required) — Explanation of this occurrence.
- `code` (enum, required) — Stable error code. Clients must accept codes not listed here.
  - Allowed values: `INVALID_REQUEST`, `IDEMPOTENCY_KEY_REQUIRED`, `INVALID_CURSOR`, `ACCOUNT_HOLDER_REQUIRED`, `INVALID_ACCOUNT_HOLDER_CONTEXT`, `INVALID_API_KEY`, `INVALID_ACCESS_TOKEN`, `PERMISSION_DENIED`, `PERMISSION_NOT_ENABLED`, `API_KEY_NOT_ENROLLED`, `ACCOUNT_HOLDER_NOT_ACCESSIBLE`, `RESOURCE_NOT_FOUND`, `METHOD_NOT_ALLOWED`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_IN_PROGRESS`, `IDEMPOTENCY_KEY_REUSED`, `PAYLOAD_TOO_LARGE`, `UNSUPPORTED_MEDIA_TYPE`, `VALIDATION_FAILED`, `RELATED_RESOURCE_NOT_FOUND`, `NOT_ELIGIBLE`, `PROVIDER_REJECTED`, `RATE_LIMIT_EXCEEDED`, `API_ERROR`, `OPERATION_OUTCOME_UNKNOWN`, `SERVICE_UNAVAILABLE`
- `requestId` (string, required) — The `X-Request-Id` of the request that failed.
- `errors` (list of ProblemError, optional) — Individual problems with the request.

## Types

### DisputeConsent

- `accepted` (true, required) — Must be `true`.
- `userId` (string, required) — User ID of the purchase's cardholder.
- `acceptedAt` (datetime, required) — When the cardholder consented. Within the last 30 days and not in the future.

### DisputeEvidence

Evidence fields for the dispute's reason. Timestamps are epoch seconds. Eligibility lists the allowed and required fields; the issuer validates final network rules on submission. File identifiers are never accepted from callers. Where the card's issuer takes the evidence as one text, the fields together, with their names, must fit in 2048 characters; longer evidence returns NOT_ELIGIBLE.

- `explanation` (string, optional) — Why the cardholder disputes the charge. Required for every reason.
- `product_description` (string, optional) — What was purchased.
- `product_type` (string, optional) — `merchandise` or `service`.
- `return_description` (string, optional) — How the cardholder tried to return the product.
- `return_status` (string, optional) — `successful` or `merchant_rejected`.
- `cancellation_reason` (string, optional) — Why the cardholder canceled.
- `expected_at` (integer, optional) — When the cardholder expected the product, in epoch seconds.
- `received_at` (integer, optional) — When the cardholder received the product, in epoch seconds.
- `returned_at` (integer, optional) — When the cardholder returned the product, in epoch seconds.
- `canceled_at` (integer, optional) — When the cardholder canceled, in epoch seconds.
- `cancellation_policy_provided` (boolean, optional) — Whether the merchant gave the cardholder a cancellation policy.

### DisputeMoney

- `value` (integer, required) — Whole minor units, for example cents for USD. Negative for a credit reversal.
- `currency` (string, required) — ISO 4217 currency code, uppercase.

### DisputeMovement

- `id` (string, required) — ID of the posted transaction.
- `url` (string, required) — Path of the transaction in the Transactions API.
- `kind` (enum, required) — `PROVISIONAL_CREDIT` while under review, `FINAL_CREDIT` after a win, `CREDIT_REVERSAL` when a credit is taken back.
  - Allowed values: `PROVISIONAL_CREDIT`, `CREDIT_REVERSAL`, `FINAL_CREDIT`
- `amount` (DisputeMoney, required)
- `effectiveAt` (datetime, required) — When the posting took effect.
- `providerReference` (string, required) — The issuer's ID for the posting.

### ProblemError

One problem with the request. At most one of `pointer`, `parameter` and `header` is present.

- `detail` (string, required) — What is wrong.
- `pointer` (string, optional) — JSON Pointer (RFC 6901) into the request body, written as a URI fragment, for example `#/policy/dailyLimit`.
- `parameter` (string, optional) — Name of the query or path parameter.
- `header` (string, optional) — Name of the request header, in lower case.
- `code` (string, optional) — Machine-readable reason for this item, when one exists.

## Examples

### committed

**Response**

```json
{
  "id": "23456789-2345-4345-8345-234567890123",
  "object": "dispute",
  "livemode": false,
  "accountHolderId": "12345678-1234-4234-8234-123456789012",
  "transactionId": "34567890-3456-4456-8456-345678901234",
  "status": "DRAFT",
  "reason": "fraudulent",
  "amount": {
    "value": 1250,
    "currency": "USD"
  },
  "evidenceUploaded": false,
  "submissionDeadline": "2027-01-31T00:00:00.000Z",
  "monetaryTransactions": [],
  "createdAt": "2026-10-17T20:00:00.000Z",
  "updatedAt": "2026-10-17T20:00:00.000Z"
}
```

**SDK Code**

```python committed
import requests

url = "https://api.outpave.com/api/v2/disputes"

headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript committed
const url = 'https://api.outpave.com/api/v2/disputes';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go committed
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/disputes"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby committed
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/disputes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java committed
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/disputes")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php committed
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/disputes', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp committed
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/disputes");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift committed
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/disputes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Fraud dispute for the full amount

**Request**

```json
{
  "transactionId": "34567890-3456-4456-8456-345678901234",
  "reason": "fraudulent",
  "consent": {
    "accepted": true,
    "userId": "45678901-4567-4567-8567-456789012345",
    "acceptedAt": "2026-10-17T19:55:00.000Z"
  },
  "evidence": {
    "explanation": "The cardholder did not make this purchase and still has the card."
  }
}
```

**Response**

```json
{
  "id": "23456789-2345-4345-8345-234567890123",
  "object": "dispute",
  "livemode": false,
  "accountHolderId": "12345678-1234-4234-8234-123456789012",
  "transactionId": "34567890-3456-4456-8456-345678901234",
  "status": "DRAFT",
  "reason": "fraudulent",
  "amount": {
    "value": 1250,
    "currency": "USD"
  },
  "evidenceUploaded": false,
  "submissionDeadline": "2027-01-31T00:00:00.000Z",
  "monetaryTransactions": [],
  "createdAt": "2026-10-17T20:00:00.000Z",
  "updatedAt": "2026-10-17T20:00:00.000Z"
}
```

**SDK Code**

```python Fraud dispute for the full amount
import requests

url = "https://api.outpave.com/api/v2/disputes"

payload = {
    "transactionId": "34567890-3456-4456-8456-345678901234",
    "reason": "fraudulent",
    "consent": {
        "accepted": True,
        "userId": "45678901-4567-4567-8567-456789012345",
        "acceptedAt": "2026-10-17T19:55:00.000Z"
    },
    "evidence": { "explanation": "The cardholder did not make this purchase and still has the card." }
}
headers = {
    "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Fraud dispute for the full amount
const url = 'https://api.outpave.com/api/v2/disputes';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"transactionId":"34567890-3456-4456-8456-345678901234","reason":"fraudulent","consent":{"accepted":true,"userId":"45678901-4567-4567-8567-456789012345","acceptedAt":"2026-10-17T19:55:00.000Z"},"evidence":{"explanation":"The cardholder did not make this purchase and still has the card."}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Fraud dispute for the full amount
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v2/disputes"

	payload := strings.NewReader("{\n  \"transactionId\": \"34567890-3456-4456-8456-345678901234\",\n  \"reason\": \"fraudulent\",\n  \"consent\": {\n    \"accepted\": true,\n    \"userId\": \"45678901-4567-4567-8567-456789012345\",\n    \"acceptedAt\": \"2026-10-17T19:55:00.000Z\"\n  },\n  \"evidence\": {\n    \"explanation\": \"The cardholder did not make this purchase and still has the card.\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Fraud dispute for the full amount
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v2/disputes")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"transactionId\": \"34567890-3456-4456-8456-345678901234\",\n  \"reason\": \"fraudulent\",\n  \"consent\": {\n    \"accepted\": true,\n    \"userId\": \"45678901-4567-4567-8567-456789012345\",\n    \"acceptedAt\": \"2026-10-17T19:55:00.000Z\"\n  },\n  \"evidence\": {\n    \"explanation\": \"The cardholder did not make this purchase and still has the card.\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Fraud dispute for the full amount
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v2/disputes")
  .header("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"transactionId\": \"34567890-3456-4456-8456-345678901234\",\n  \"reason\": \"fraudulent\",\n  \"consent\": {\n    \"accepted\": true,\n    \"userId\": \"45678901-4567-4567-8567-456789012345\",\n    \"acceptedAt\": \"2026-10-17T19:55:00.000Z\"\n  },\n  \"evidence\": {\n    \"explanation\": \"The cardholder did not make this purchase and still has the card.\"\n  }\n}")
  .asString();
```

```php Fraud dispute for the full amount
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v2/disputes', [
  'body' => '{
  "transactionId": "34567890-3456-4456-8456-345678901234",
  "reason": "fraudulent",
  "consent": {
    "accepted": true,
    "userId": "45678901-4567-4567-8567-456789012345",
    "acceptedAt": "2026-10-17T19:55:00.000Z"
  },
  "evidence": {
    "explanation": "The cardholder did not make this purchase and still has the card."
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => '5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10',
  ],
]);

echo $response->getBody();
```

```csharp Fraud dispute for the full amount
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v2/disputes");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"transactionId\": \"34567890-3456-4456-8456-345678901234\",\n  \"reason\": \"fraudulent\",\n  \"consent\": {\n    \"accepted\": true,\n    \"userId\": \"45678901-4567-4567-8567-456789012345\",\n    \"acceptedAt\": \"2026-10-17T19:55:00.000Z\"\n  },\n  \"evidence\": {\n    \"explanation\": \"The cardholder did not make this purchase and still has the card.\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Fraud dispute for the full amount
import Foundation

let headers = [
  "Idempotency-Key": "5f1c7a8e-2b0d-4f43-9e36-1a7c2d9b4e10",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "transactionId": "34567890-3456-4456-8456-345678901234",
  "reason": "fraudulent",
  "consent": [
    "accepted": true,
    "userId": "45678901-4567-4567-8567-456789012345",
    "acceptedAt": "2026-10-17T19:55:00.000Z"
  ],
  "evidence": ["explanation": "The cardholder did not make this purchase and still has the card."]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v2/disputes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```