POST/xgh/refundNotifyHotel开放/回调
湘工惠-退款回调Hotel · refundNotifyHotel 推断名·方法名推断
开放与对接 / 湘工惠· XghController#refundNotifyHotel
基本信息
- 接口状态开放/回调用(服务端) 置信度 中 免鉴权
- 接口URLPOST
https://dscp-dev.hn12301.net/open-api/xgh/refundNotifyHotel - 请求方式
POST - Content-Type
application/json - 暴露渠道开放/回调 前缀
/open-api - 名称来源方法名推断 补 javadoc 后自动转正
- 调用方本次扫描未发现调用 不等于可以下线
- 需求上下文酒店退单退款&分润计算修改
- 维护人 / 最后改动liuxu 2025-09-01 最近提交:酒店退单退款&分润计算修改
- 读写数据表
hotel_order 反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.openapi.XghController#refundNotifyHotel - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/openapi/XghController.java:361 - 判定依据渠道为开放/回调且有实现链路,由第三方或支付回调触发
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|
| 无(渠道统一鉴权头见《认证方式》) |
Body 请求参数
Body 类型 XghRefundNotifyRequest
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|
| channelMerchantNo | … | 否 | String | |
| channelOrderNo | … | 否 | String | |
| merchantNo | … | 否 | String | |
| orderNo | … | 否 | String | → hotel_order.order_no |
| userId | … | 否 | String | |
| refundTime | … | 否 | String | |
| refundAmount | … | 否 | Long | |
| refundNo | … | 否 | String | |
| channelRefundNo | … | 否 | String | |
| totalAmount | … | 否 | String | → hotel_order.total_amount |
| discountRefundAmount | … | 否 | String | |
| settlementRefundAmount | … | 否 | String | |
| status | … | 否 | String | 订单状态,退款订单的状态,枚举如下: 10:退款中 11:退款成功 12:退款失败 → hotel_order.status |
| failureReason | … | 否 | String | |
| sign | … | 否 | String | |
| nonceStr | … | 否 | String | |
认证方式
免鉴权:@Route(auth = false) —— 该接口不校验登录态,改动前确认调用方与签名校验。
响应参数
data 类型 DtoDisable public XghThirdResponse
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|
| 未解析到返回结构 |
响应示例
无示例
示例来自源码/导出内容,仅结构参考,非线上真实数据。
附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
- XghController#refundNotifyHotel
- XghService#refundNotifyHotel(XghServiceImpl)
- HotelOrderService#update(HotelOrderServiceImpl)
- HotelOrderMapper#update