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  REQUIRED

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 the dispute notification is about an occurred dispute.  
  • DISPUTE_JUDGED: Indicates that the dispute notification is about a judged dispute.  

More information about this field

  • Maximum length: 30 characters

disputeReasonMsg String  

The dispute reason.   

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

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

Request Body

Response

Response Body

Result/Error codes

CodeValueMessage
SUCCESSSSuccess