The Disputes API provides the ability to retrieve information about disputes related to transactions in your merchant account. Additionally, you can submit supporting evidence to resolve disputes, helping to ensure fair outcomes and maintain merchant satisfaction.
Disputes are typically initiated by customers through their issuing bank. The API allows you to programmatically handle disputes, upload evidence, and monitor their resolution status.
Quick Links
Sandbox Testing
Triggering a Dispute
- To create a mock dispute in a sandbox account:
- Create a payment for
$8888.88
using theStax.js pay()
method or the Charge a Payment Method API.
Navigate to Stax Pay → Reports → Deposit Report. - Click on Simulate Settlements.
- Verify the dispute appears via:
List Disputes
API.- Stax Pay Sandbox Dashboard → Reports → Chargeback Manager.
Simulating Different Dispute Statuses
In sandbox accounts, disputes default to the PENDING
status (unless they are of type INQUIRY
). You can simulate different dispute statuses by passing the sandbox-only &status=
query parameter when submitting evidence. Use one of the following enum values as the parameter:
PENDING
WON
LOST
EVIDENCE_UPLOADED
UPLOAD_FAILED
Example: Append
?status=WON
to simulate a successful resolution.
Dispute Statuses
Status | Description |
---|---|
INQUIRY | The issuer requests evidence to resolve the dispute before engaging in the chargeback process. |
OPEN | The dispute requires action from the merchant. |
PENDING | A response is pending from either party, with no resolution yet. |
ACCEPTED | The dispute has been accepted by a user of either Stax Pay or Stax Connect, leading the dispute to expire. |
PREARBITRATION | The dispute has been reopened for pre-arbitration. Contact support if arbitration is required. |
WON | Sufficient evidence has been provided, and the dispute was resolved in favor of the merchant. |
LOST | Insufficient evidence was provided, resulting in a resolution favoring the customer. |
EVIDENCE_UPLOADED | Supporting documents have been successfully uploaded. |
UPLOAD_FAILED | An attempt to upload documents failed. |
Example Workflows
Retrieve All Disputes
- Call the List Disputes API to fetch all disputes.
- Filter the response by status to identify unresolved disputes.
Submit Evidence
- Collect necessary evidence (e.g., transaction receipts, signed agreements).
- Call the Submit Evidence API with the required files.
- Monitor the dispute status through the List Disputes API or webhook notifications.