Skip to main content
POST
/
v1
/
transactions
/
{transactionId}
/
disputes
Create dispute
curl --request POST \
  --url https://api.ledger.so/v1/transactions/{transactionId}/disputes \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "textEvidence": "<string>"
}
'
{
  "id": "<string>",
  "transactionId": "<string>",
  "cardId": "<string>",
  "userId": "<string>",
  "rainDisputeId": "<string>",
  "status": "pending",
  "createdAt": 123,
  "updatedAt": 123,
  "object": "dispute",
  "textEvidence": "<string>",
  "resolvedAt": 123
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

transactionId
string
required

The transaction ID

Body

application/json
textEvidence
string

Text evidence describing the dispute

Maximum string length: 65535

Response

Dispute created

id
string
required

Internal dispute ID

transactionId
string
required

ID of the disputed transaction

cardId
string
required
userId
string
required
rainDisputeId
string
required

External dispute ID from Rain

status
enum<string>
required

pending=dispute filed, inReview=under investigation, accepted=chargeback won, rejected=chargeback denied, canceled=dispute withdrawn

Available options:
pending,
inReview,
accepted,
rejected,
canceled
createdAt
integer
required
updatedAt
integer
required
object
string
Example:

"dispute"

textEvidence
string

Text evidence provided for the dispute

resolvedAt
integer

Unix timestamp when dispute was resolved