开放平台

扒书 ERP Open API

消息详情

按 ID 看一条消息的完整内容。

请求方式GET/POST
接口路径/api/message/detail
Content-Type-
鉴权X-Nideshop-Token

请求参数

参数类型必填位置
idInteger否URL 参数

curl 调用

curl -s 'https://www.8shu8.com/api/message/detail?id=1' \
  -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'

响应示例

{
  "code": 200,
  "message": "操作成功",
  "success": true,
  "data": {
    "MSG_STATUS_NOT_VIEW": "...",
    "MSG_STATUS_VIEW": "...",
    "MSG_STATUS_SEND": "...",
    "MSG_STATUS_CLICK": "...",
    "MESSAGE_BUYER_COMMENT": "...",
    "MESSAGE_SELLER_REPLY": "...",
    "MESSAGE_BUYER_PAY": "...",
    "MESSAGE_SELLER_DELIVERY": "...",
    "MESSAGE_BUYER_CONFIRM": "...",
    "MESSAGE_REFUND": "...",
    "MESSAGE_HAS_GOODS": "...",
    "MESSAGE_COMMENT_REPLY": "...",
    "MESSAGE_BALANCE_NOT_ENOUGH": "...",
    "id": "string",
    "toUserId": 1,
    "content": "string",
    "fromDetail": "string",
    "pageUrl": "string",
    "messageStatus": 1,
    "gmtCreated": 1,
    "gmtSend": "string",
    "gmtView": "string",
    "gmtClick": "string",
    "messageDicId": 1,
    "tmpMessage": "string",
    "picture": "string",
    "addTime": "string"
  }
}

返回字段(data)

字段类型说明
MSG_STATUS_NOT_VIEW对象-
MSG_STATUS_VIEW对象-
MSG_STATUS_SEND对象-
MSG_STATUS_CLICK对象-
MESSAGE_BUYER_COMMENT对象买家对商品评论
MESSAGE_SELLER_REPLY对象-
MESSAGE_BUYER_PAY对象-
MESSAGE_SELLER_DELIVERY对象-
MESSAGE_BUYER_CONFIRM对象-
MESSAGE_REFUND对象-
MESSAGE_HAS_GOODS对象-
MESSAGE_COMMENT_REPLY对象-
MESSAGE_BALANCE_NOT_ENOUGH对象-
idString-
toUserIdLong-
contentString内容
fromDetailString-
pageUrlString-
messageStatusInteger-
gmtCreatedLong-
gmtSendLocalDateTime-
gmtViewLocalDateTime-
gmtClickLocalDateTime-
messageDicIdInteger-
tmpMessageString-
pictureString-
addTimeLocalDateTime-