PATCH
/
disputes
/
{id}
Accept or decline a dispute
curl --request PATCH \
  --url https://api.paygentic.io/v0/disputes/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "accepted",
  "message": "<string>"
}'
{
  "id": "<string>",
  "object": "dispute",
  "usageEventId": "<string>",
  "customerId": "<string>",
  "merchantId": "<string>",
  "customerMessage": "<string>",
  "merchantMessage": "<string>",
  "status": "pending",
  "disputedAmount": "<string>",
  "resolvedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for a dispute

Body

application/json

Response

200
application/json

Dispute updated successfully

The response is of type object.