Lingxing
切换旧版

查询邮件详情

POST/erp/sc/data/mail/detail

支持获取邮件内容详情

接口信息

API Path请求协议请求方式令牌桶容量
/erp/sc/data/mail/detailHTTPSPOST3

请求参数

webmail_uuidstring必填
邮件唯一标识

返回结果

Json Object

codeinteger必填
状态码,0 成功
示例 0
messagestring必填
响应信息
示例 success
error_detailsarray<any>必填
错误信息
request_idstring必填
请求链路id
示例 73A0718B-AA68-E120-D28B-F7175018175D
response_timestring必填
响应时间
示例 2022-04-19 15:16:18
dataobject必填
响应数据
隐藏子属性
webmail_uuidstring必填
邮件唯一标识
示例 1615637469510164901
subjectstring必填
邮件标题
示例 标题
from_namestring必填
发件人姓名
示例 system
from_addressstring必填
发件人地址
示例 system@qq.com
to_address_allstring必填
所有收件人地址
示例 test<test@qq.com>;test2<test2@qq.com>;
datestring必填
日期
示例 2020-11-29 17:52:28
ccstring必填
抄送
示例 test<test@qq.com>;test2<test2@qq.com>;
bccstring必填
密送地址
示例 test<test@qq.com>;test2<test2@qq.com>;
text_htmlstring必填
邮件内容
示例 <p><em>Failed to send email test</em></p>
text_plainstring必填
纯文本的邮件内容
attachmentsarray<object>必填
附件
隐藏子属性
namestring必填
附件名称
示例 F42FD424@DF41B544.txt
sizenumber必填
附件大小(b)
示例 97078
typestring必填
邮件类型
0、QA
1、买家邮件
2、亚马逊邮件
3、站外邮件
mail_sn_codestring必填
邮件编号
示例 OTH0163416
totalinteger必填
总数
示例 0

返回成功示例

{
    "code": 0,
    "message": "success",
    "error_details": [],
    "request_id": "7F1131D2-BB65-F77A-E29D-8C712D6EAB64",
    "response_time": "2022-03-31 17:18:07",
    "data": {
        "webmail_uuid": "1615637469510164901",
        "mail_sn_code": "OTH0163416",
        "subject": "标题",
        "from_name": "system",
        "from_address": "system@qq.com",
        "to_address_all": "test<test@qq.com>;test2<test2@qq.com>;",
        "date": "2020-11-29 17:52:28",
        "cc": "test<test@qq.com>;test2<test2@qq.com>;",
        "bcc": "test<test@qq.com>;test2<test2@qq.com>;",
        "text_html": "<p><em>Failed to send email  test</em></p>\r\n\r\n",
        "text_plain": "",
        "attachments": [
            {
                "name": "F42FD424@DF41B544.txt",
                "size": 97078
            },
            {
                "name": "91C213FF@15C47C48.txt",
                "size": 287677
            }
        ]
        type: ""
    },
    "total": 0
}

返回失败示例

{
    "code": 102,
    "message": "参数不合法",
    "error_details": ["webmail_uuid => email不能为空"],
    "request_id": "8671A9D1-BC61-9398-FBD9-C90A672DAD11",
    "response_time": "2022-03-31 15:55:03",
    "data": [],
    "total": 0
}