Skip to main content
POST
/
api
/
v1
/
transactions
/
{threadId}
/
dispute
Dispute a Transaction
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({disputeReason: 'purchase_cancelled_but_no_refund_received'})
};

fetch('https://api.valox.co/api/v1/transactions/{threadId}/dispute', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "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"