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"
}
Create a dispute for a usage event. Only one dispute can be created per 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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Dispute created successfully
The response is of type object
.