Skip to main content
POST
/
v1
/
exceptions
/
{exceptionId}
/
disputes
Open a dispute
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/exceptions/{exceptionId}/disputes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "category": "AMOUNT_MISMATCH",
  "description": "Transaction amount differs from invoice"
}
'
{
  "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

exceptionId
string
required

Exception ID

Body

application/json

Open dispute payload

Open dispute request payload

category
string
required

Category of the dispute

Maximum string length: 255
Example:

"AMOUNT_MISMATCH"

description
string
required

Detailed description of the dispute

Maximum string length: 5000
Example:

"Transaction amount differs from invoice"

Response

Indicates that the resource was successfully created.

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"