POST
/
api
/
v1
/
transactions
/
{threadId}
/
dispute
Dispute a Transaction
const url = 'https://api.gnosispay.com/api/v1/transactions/{threadId}/dispute';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"disputeReason":"purchase_cancelled_but_no_refund_received"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "message": "Dispute submitted for review"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

threadId
string
required

The thread ID of the transaction to dispute

Body

application/json
disputeReason
enum<string>
required

The reason for disputing the transaction

Available options:
purchase_cancelled_but_no_refund_received,
problem_with_the_product_chargeback_,
problem_with_service_subscription_chargeback,
wrong_installment_number,
wrong_value,
charged_more_than_once,
unrecognized_transaction_report_fraudulent
Example:

"purchase_cancelled_but_no_refund_received"

Response

Dispute submitted for review

message
string
Example:

"Dispute submitted for review"