Skip to main content
You can use the Defend Disputes API, or Disputes API in short, to automate the dispute handling process so that you can respond to disputes or chargebacks as soon as they are initiated. The Disputes API lets you retrieve defense reasons, supply and delete defense documents, and accept or defend disputes. For an overview of the process and to learn more about how the API works, see the Disputes API overview.

Requirements

Before you begin, take into account the following requirements and limitations.

Possible errors

If a Disputes API request fails, the response contains success: false and an errorMessage with more information about the error. The following table shows which error messages can be returned, and for which API request you can get the error.

Retrieving defense reasons and documents

When you make a /retrieveApplicableDefenseReasons request for a specific dispute, the defenseReasons object in the response contains:
  • The defense reason codes that are specified by the scheme regulations, and if the defense material for that reason code has already been supplied. Use these codes to find more information about the dispute, for example why it was raised.
  • The corresponding defense document type codes for each defense reason code, if those document types are required, and if the documents are already supplied. Use these codes to understand which documents you can or have to provide to defend the dispute.
For example, the response could look like this: Example /retrieveApplicableDefenseReasons response

Defense reason codes

The defenseReasons object in the /retrieveApplicableDefenseReasons response contains all the applicable defense reason codes. Per reason code, it contains the applicable defense document type codes, and if the defense requirements are already satisfied.

Defense document type codes

You can use defense document type codes to understand which documents you can or have to provide to defend a dispute with a specific defense reason code. The defenseReasons object in the /retrieveApplicableDefenseReasons response contains the applicable document type codes in the defenseDocumentTypeCode field. The response also indicates if those document types are required or optional, and if the documents are already available. When you defend the dispute, you can only use the defense document type codes that are returned for the defense reason code. You can add a generalized defense document type. Contact our Support Team to enable this document type. When enabled, you can supply a generic defense document for all schemes and set the defenseDocumentTypeCode to AlternativeDefenseMaterial.

See also