# 查询工单详情

# 简介

渠道方查询同步至享道的工单情况,包含售后退款金额和明细

# 服务提供方

享道

# 接口URL

/openapi/order/complaint/query

# 请求方式

POST

# 请求频次

单次

# 请求参数

参数名称 类型 必选 说明
order_id string 享道订单号
oid string 合作方订单号
worksheet_id string 享道工单号
outer_worksheet_id string 合作方工单号

# 响应参数

参数名称 类型 必有 说明
errCode int 服务响应状态,参见附录5
errMsg string 服务响应状态说明,参见附录5
content object
content.status int 工单状态,0-已创建 1-结案
content.result string 处理结果
content.worksheet_id string 享道工单号
content.outer_worksheet_id string 合作方工单号
content.reason string 享道问题分类编码
content.reason_text string 享道问题分类
content.create_time string 创建时间, yyyy-MM-dd HH:mm:ss
content.complete_time string 结案时间, yyyy-MM-dd HH:mm:ss
content.refunds list 退款信息
content.refunds[].id string 退款唯一标识
content.refunds[].refund_amount int 退款金额,单位分
content.refunds[].process_time string 处理时间
content.refunds[].details list 科目列表
content.refunds[].details[].amount int 科目金额,单位分
content.refunds[].details[].description string 科目说明
content.refunds[].details[].type int 科目英文名称,参见附录7
content.coupons list 优惠券信息
content.coupons[].id string 优惠券标识
content.coupons[].amount int 优惠券金额,单位分
content.coupons[].count int 优惠券数量

# 请求示例

请求

curl --location --request POST 'https://open-sit.saicmobility.com/merchant/v1/openapi/order/complaint/query' \
--header 'X-Sign: aab078dd08a60c2a2e72bbbdfca3c9f94ab40e13' \
--header 'X-SignAlgorithm: 1' \
--header 'X-Timestamp: 20201021113700' \
--header 'X-MerchantId: open_app_OqPcV19dBV1KoBHs' \
--header 'Content-Type: application/json' \
--data-raw '{"order_id":"xx","oid":"xxx","worksheet_id":"xxxx","outer_worksheet_id":"xxxxx"}'

响应

{
  "errCode": 10000,
  "errMsg": "successful",
  "content": {
    "status": 1,
    "result": "xxxx",
    "worksheet_id": "xxx",
    "outer_worksheet_id": "xxx",
    "reason": 10,
    "reason_text": "其他",
    "refunds": [
      {
        "id": "xxx",
        "process_time": "yyyy-MM-dd HH:mm:ss",
        "refund_amount": 2000,
        "details": [
          {
            "type": "distanceFee",
            "description": "里程费/超里程费",
            "amount": 2000
          }
        ]
      }
    ],
    "coupons": [
      {
        "id": "xxx",
        "amount": 2000,
        "count": 1
      }
    ]
  }
}