Skip to main content

退款通知

说明 PayMatrixPay全球收单在退款处理完成后,主动会向商家传入的notification_url地址发送退款结果通知,目前仅当退款状态 = “RS”时,才会触发退款结果通知。 消息服务会根据响应报文判断商家系统是否已经成功处理消息,需要商家同步返回固定报文,消息服务则认为商户已经处理成功,停止发送; 如果未返回固定报文内容,PayMatrixPay全球收单则认为消息投递失败,会根据投递重试策略重新发送消息至notification_url地址;
  • Endpoint: notification_url 地址
  • Method: POST
  • Description: 退款成功后回调地址

Request Parameters

NameInTypeDescription
X-Merchant-IdHeaderintegerRequired, Merchant ID
X-SignatureHeaderintegerRequired, 签名字符串
X-TimestampHeaderintegerRequired, 时间戳毫秒值
X-NonceHeaderintegerRequired, 随机字符串

Request Body

{
  "platform_transaction_id": "1234567890",
  "merchant_transaction_id": "20200808000066666",
  "original_transaction_id": "20200808000000008",
  "refund_data": {
    "refund_amount": 88.88,
    "refund_currency_code": "USD",
    "actual_refund_amount": 88.88,
    "actual_refund_currency_code": "USD",
    "refund_status": "RS",
    "refund_time": "2022-12-31 13:59:23"
  }
}

Responses Body

在处理完成了业务逻辑之后, 只需要返回一个 “SUCCESS” 的字符串到 Responses Body 即可
SUCCESS