DirectMailApi2.0
  1. 订单管理
DirectMailApi2.0
  • 鉴权说明
  • 订单状态
  • webhooks
  • 公共接口
    • 获取授权
      GET
    • 获取用户信息
      GET
    • 规格信息
      GET
    • 系统常量
      GET
    • 获取公告
      GET
    • 上传模版图片
      POST
    • webhooks
      POST
    • 获取历史公告
      GET
  • 用户接口
    • 订单管理
      • 明细订单统计
        GET
      • 月统计
        GET
      • 订单列表
        GET
      • 明细订单
        GET
      • 取消订单
        POST
      • 创建直邮订单
        POST
      • 创建数据订单
        POST
      • 修改订单标签
        POST
      • 获取订单内容
        GET
      • 批量获取订单内容
        POST
      • 历史订单列表
        GET
      • 创建直邮订单(新)
        POST
    • 财务管理
      • 余额变化列表
      • 充值订单
      • 历史余额变化列表
      • 历史充值订单
    • 模板管理
      • 模版列表
      • 新增模版
      • 删除模版
      • 修改模版名称
      • 历史模版列表
      • 模版预览
    • 地址管理
      • 地址标签列表
      • 明细地址列表
      • 创建地址标签
      • 删除地址标签
      • 地址绑定标签
      • 历史地址标签列表
    • 快捷标签管理
      • 快捷标签
      • 新增快捷标签
      • 删除快捷标签
    • 发件人管理
      • 发件人列表
      • 新增发件人
      • 删除发件人
    • 用户管理
      • 邀请用户
    • 子帐户管理
      • 子用户列表
      • 编辑子账号钱包
      • 创建子账号
    • 二维码
      • 创建二维码
        • 创建二维码-回邮
        • 创建二维码-落地页
        • 创建二维码-第三方链接
      • 二维码列表
        • 获取二维码列表
        • 修改二维码列表
        • 删除二维码
        • 禁用启用恢复二维码
        • 复制二维码
      • 场景分类管理
        • 获取分类管理
        • 修改分类管理
        • 添加分类管理
        • 删除分类管理
      • 案例
        • 添加案例
          • 添加回邮案例
          • 添加落地页案例
        • 获取案例列表
        • 删除案例
        • 复制案例
  • 更新日志
    • 2024-10-22 地址验证流程优化
    • 2024-10-14 地址后验证
  1. 订单管理

获取订单内容

测试环境
http://api.testagent.mumamail.com/user
测试环境
http://api.testagent.mumamail.com/user
GET
/getOrderInfo
获取订单内容及关联第一条子订单

请求参数

Authorization
在 header 添加参数
x-token
示例:
x-token: ********************
Query 参数

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://api.testagent.mumamail.com/user/getOrderInfo?id' \
--header 'x-token;'

返回响应

🟢200默认响应结构体
application/json
Body

示例
{
    "code": 0,
    "data": {
        "order": {
            "id": 2,
            "created_at": {},
            "updated_at": {},
            "agent_id": 3,
            "agent_name": "test001",
            "inv_id": 4,
            "pid": 3,
            "tag_id": 703,
            "template_id": 411,
            "country_code": "US",
            "order_name": "55",
            "order_no": "Po012311071625587",
            "currency": "CNY",
            "unit_price": "4.02",
            "surcharge": "0",
            "price": "4.02",
            "refund_price": "0",
            "num": 1,
            "check_num": 1,
            "success_num": 1,
            "fail_num": 0,
            "is_refund": 1,
            "type": 1,
            "sub_type": 1,
            "status": 3,
            "size": "4x6",
            "color": "color",
            "express": "usps_first_class",
            "preview": "https://muma-1258279456.cos.ap-hongkong.myqcloud.com/platform/2023-10/a7678816-b90f-4014-aeea-2aab0b9f46fd.jpg?imageMogr2/thumbnail/!10p",
            "month": "2023-11",
            "day": "2023-11-07",
            "sender": "",
            "is_subscribe": -1,
            "subscribe_day": "",
            "tag": "",
            "scan_uv": 0
        },
        "sub_order": {
            "id": 2,
            "created_at": {},
            "updated_at": {},
            "agent_id": 3,
            "order_id": 2,
            "inv_id": 4,
            "pid": 3,
            "price": "4.02",
            "type": 1,
            "sub_type": 1,
            "status": 3,
            "is_valid": 1,
            "token": "",
            "month": "2023-11",
            "country_code": "US",
            "name": "Lawrence Woo",
            "last_name": "",
            "address1": "446 waters park cir",
            "address2": "",
            "city": "\tSan Mateo",
            "zip": "94403-1196",
            "state": "CA",
            "size": "4x6",
            "color": "color",
            "express": "usps_first_class",
            "phone": "",
            "email": "",
            "front": "\n    <html>\n    <head>\n      <meta charset=\"UTF-8\" />\n      <title>Mail</title>\n      <style>\n        *,\n        *:before,\n        *:after {\n          -webkit-box-sizing: border-box;\n          -moz-box-sizing: border-box;\n          box-sizing: border-box;\n        }\n        body {\n          width: 6.25in;\n          height: 4.25in;\n          margin: 0;\n          padding: 0;\n          background-image: url(https://muma-1258279456.cos.ap-hongkong.myqcloud.com/platform/2023-10/a7678816-b90f-4014-aeea-2aab0b9f46fd.jpg);\n          background-size: 6.25in 4.25in;\n          background-repeat: no-repeat;\n          position: relative;\n          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n        }\n        #var1{\n          position: absolute;\n          z-index:999;\n          line-height: 1.5715;\n          box-sizing: border-box;\n        }\n        #var2{\n          position: absolute;\n          z-index:999;\n          line-height: 1.5715;\n          box-sizing: border-box;\n        }\n      </style>\n    </head>\n    <body> </body>\n  </html>\n    ",
            "back": "\n    <html>\n    <head>\n      <meta charset=\"UTF-8\" />\n      <title>Mail</title>\n      <style>\n        *,\n        *:before,\n        *:after {\n          -webkit-box-sizing: border-box;\n          -moz-box-sizing: border-box;\n          box-sizing: border-box;\n        }\n        body {\n          width: 6.25in;\n          height: 4.25in;\n          margin: 0;\n          padding: 0;\n          background-image: url(https://muma-1258279456.cos.ap-hongkong.myqcloud.com/platform/2023-10/c44bef4a-e0ab-4db7-86a8-d8e01712d65b.jpg);\n          background-size: 6.25in 4.25in;\n          background-repeat: no-repeat;\n          position: relative;\n          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';\n        }\n        #var1{\n          position: absolute;\n          z-index:999;\n          line-height: 1.5715;\n          box-sizing: border-box;\n        }\n        #var2{\n          position: absolute;\n          z-index:999;\n          line-height: 1.5715;\n          box-sizing: border-box;\n        }\n      </style>\n    </head>\n    <body> </body>\n  </html>\n    ",
            "track_status": "",
            "track_detail": "",
            "scan_num": 0,
            "scan_time": {}
        }
    },
    "msg": "Query success"
}
修改于 2024-04-24 18:31:17
上一页
修改订单标签
下一页
批量获取订单内容
Built with