GET
/
api
/
v1
/
dispute-reasons
Get available dispute reasons
const url = 'https://api.gnosispay.com/api/v1/dispute-reasons';
const options = {method: 'GET', body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "result": {
    "purchase_cancelled_but_no_refund_received": "Purchase Cancelled But No Refund Received",
    "problem_with_the_product_chargeback_": "Problem With The Product (chargeback)",
    "problem_with_service_subscription_chargeback": "Problem With Service/Subscription (chargeback)",
    "wrong_installment_number": "Wrong Installment Number",
    "wrong_value": "Wrong Value",
    "charged_more_than_once": "Charged More Than Once",
    "unrecognized_transaction_report_fraudulent": "Unrecognized Transaction - Report Fraudulent"
  }
}

Response

Successfully retrieved dispute reasons

result
object
Example:
{
"purchase_cancelled_but_no_refund_received": "Purchase Cancelled But No Refund Received",
"problem_with_the_product_chargeback_": "Problem With The Product (chargeback)",
"problem_with_service_subscription_chargeback": "Problem With Service/Subscription (chargeback)",
"wrong_installment_number": "Wrong Installment Number",
"wrong_value": "Wrong Value",
"charged_more_than_once": "Charged More Than Once",
"unrecognized_transaction_report_fraudulent": "Unrecognized Transaction - Report Fraudulent"
}