Skip to main content
POST
/
v1
/
disputes
/
{disputeId}
/
close
Close a dispute
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/disputes/{disputeId}/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "resolution": "Counterparty acknowledged the error and issued correction",
  "won": true
}
'
{
  "category": "BANK_FEE_ERROR",
  "createdAt": "2025-01-15T10:30:00.000Z",
  "description": "Transaction amount differs from expected",
  "evidence": [
    {
      "comment": "Bank statement attached",
      "disputeId": "550e8400-e29b-41d4-a716-446655440001",
      "fileUrl": "https://storage.example.com/evidence/doc123.pdf",
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "submittedAt": "2025-01-15T10:30:00.000Z",
      "submittedBy": "[email protected]"
    }
  ],
  "exceptionId": "550e8400-e29b-41d4-a716-446655440001",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "openedBy": "[email protected]",
  "reopenReason": "New evidence discovered",
  "resolution": "Counterparty confirmed error",
  "state": "OPEN",
  "updatedAt": "2025-01-15T10:30:00.000Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Headers

X-Request-Id
string

A unique identifier for tracing the request across services.

X-Idempotency-Key
string

A unique key to ensure safe retries of the request.

Path Parameters

disputeId
string
required

Dispute ID

Body

application/json

Close dispute payload

Close dispute request payload

resolution
string
required

Resolution description

Maximum string length: 5000
Example:

"Counterparty acknowledged the error and issued correction"

won
boolean

Whether the dispute was won

Example:

true

Response

Indicates that the request was successful and the response contains the expected data.

Dispute details

category
enum<string>

Category of the dispute

Available options:
BANK_FEE_ERROR,
UNRECOGNIZED_CHARGE,
DUPLICATE_TRANSACTION,
OTHER
Example:

"BANK_FEE_ERROR"

createdAt
string

Creation timestamp in RFC3339 format

Example:

"2025-01-15T10:30:00.000Z"

description
string

Description of the dispute

Example:

"Transaction amount differs from expected"

evidence
object[]

Evidence submitted for this dispute

exceptionId
string

Exception ID this dispute is for

Example:

"550e8400-e29b-41d4-a716-446655440001"

id
string

Unique identifier for the dispute

Example:

"550e8400-e29b-41d4-a716-446655440000"

openedBy
string

User who opened the dispute

reopenReason
string

Reason for reopening if reopened

Example:

"New evidence discovered"

resolution
string

Resolution description when closed

Example:

"Counterparty confirmed error"

state
enum<string>

Current state

Available options:
DRAFT,
OPEN,
PENDING_EVIDENCE,
WON,
LOST
Example:

"OPEN"

updatedAt
string

Last update timestamp in RFC3339 format

Example:

"2025-01-15T10:30:00.000Z"