Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

notifyDispute

The notifyDispute API is used by Alipay to send the dispute information to the merchant. 

Structure

A message consists of a header and body. The following sections are focused on the body structure. For the header structure, see: 

Note: Set the data type of each field (except array) as String. This means that you must use double quotation marks (" ") to enclose the field value. Examples:

  • If the data type of a field is Integer and its value is 20, set it as "20". 
  • If the data type of a field is Boolean and its value is true, set it as "true".  

Request parameters

paymentRequestId String  REQUIRED

The unique ID that is assigned by a merchant to identify a payment request. 

More information about this field

  • Maximum length: 64 characters

disputeId String  REQUIRED

The unique ID that is assigned by Alipay to identify a dispute.  

More information about this field

  • Maximum length: 64 characters

paymentId String  REQUIRED

The unique ID that is assigned by Alipay to identify a payment.  

More information about this field

  • Maximum length: 64 characters

disputeTime Datetime  

The date and time when the dispute is created.  

More information about this field

  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

disputeAmount Amount object 

The amount of the transaction which has a dispute. 

This parameter is returned when a dispute occurs.  

Show child parameters

disputeNotificationType String  REQUIRED

The type of dispute notification. Valid values are:

  • DISPUTE_CREATED: indicates that a dispute occurs.
  • DISPUTE_JUDGED: indicates that the dispute is judged.  
  • DISPUTE_CANCELLED: indicates that the dispute is cancelled by the user.  
  • DEFENSE_SUPPLIED: indicates that your defense documents for the dispute are submitted.
  • DEFENSE_DUE_ALERT: a warning sent by Alipay that notifies your defense is to be overdue within 24 hours of defenseDueTime.

More information about this field

  • Maximum length: 30 characters

disputeReasonMsg String  

The dispute reason.   

More information about this field

  • Maximum length: 256 characters

disputeJudgedTime Datetime  

The date and time when the dispute is judged.  

More information about this field

  • The value follows the ISO 8601 standard format. For example, "2019-11-27T12:01:01+08:00".

disputeJudgedAmount Amount object 

The deduction amount of the dispute. 

This parameter is returned when a dispute is judged.  

Show child parameters

disputeJudgedResult String  

The result of the dispute judgement. Valid values are: 

  • ACCEPT_BY_CUSTOMER: Indicates that the dispute is the customer's responsibility. The merchant can process the transaction, such as refunding the customer, after the captured funds are unfrozen.  
  • ACCEPT_BY_MERCHANT: Indicates that the dispute is the merchant's responsibility. Deduct from the merchant settlement account, and the captured funds will be unfrozen.  

More information about this field

  • Maximum length: 30 characters

defenseDueTime Datetime  

The due time after which you cannot defend the dispute. 

This parameter is returned when the value of disputeNotificationType is DISPUTE_CREATED or DEFENSE_DUE_ALERT. 

disputeReasonCode String  

The reason code indicating why a payment is disputed. For details about the reason codes, see Chargeback reason codes.

This parameter is returned when the value of disputeNotificationType is DISPUTE_CREATED or DISPUTE_JUDGED.  

More information about this field

  • Maximum length: 64 characters

disputeSource String  

The card scheme that is responsible for processing the dispute.

This parameter is returned when the value of disputeNotificationType is DISPUTE_CREATED or DISPUTE_JUDGED.  

More information about this field

  • Maximum length: 64 characters

Response parameters

result Result object REQUIRED

A fixed value, which is sent to Alipay to acknowledge that the notification is received.  

Show child parameters
API Explorer

Request

Case
Notification about an occurred dispute
Request Body

Response

Response Body

Result/Error codes

CodeValueMessage
SUCCESSSSuccess