POST
/
disputes
Create a dispute for a usage event
curl --request POST \
  --url https://api.paygentic.io/v0/disputes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "usageEventId": "<string>",
  "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.

Body

application/json

Response

201
application/json

Dispute created successfully

The response is of type object.