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
POST
/getBatchOrderInfo
批量返回订单和关联子订单的明细,请确保单条订单只有一条明细订单。单次最大查询100条

请求参数

Authorization
在 header 添加参数
x-token
示例:
x-token: ********************
Body 参数application/json

示例
{
    "ids": [
        0
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.testagent.mumamail.com/user/getBatchOrderInfo' \
--header 'Content-Type: application/json' \
--header 'x-token;' \
--data-raw '{
    "ids": [
        0
    ]
}'

返回响应

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

示例
{
    "code": 0,
    "data": [
        {
            "order": {
                "id": 4,
                "created_at": "2024-04-18 11:22:15",
                "updated_at": "2024-04-18 11:24:08",
                "agent_id": 3,
                "agent_name": "test001",
                "inv_id": 4,
                "pid": 3,
                "tag_id": 720,
                "template_id": 139,
                "country_code": "US",
                "order_name": "tec ",
                "order_no": "Le012404181122156",
                "currency": "USD",
                "unit_price": "0.803",
                "surcharge": "0",
                "price": "36.135",
                "refund_price": "0",
                "num": 45,
                "check_num": 45,
                "success_num": 45,
                "fail_num": 0,
                "is_refund": 1,
                "type": 1,
                "sub_type": 2,
                "status": 3,
                "size": "8.5x11",
                "color": "color",
                "express": "usps_first_class",
                "preview": "https://muma-1258279456.cos.ap-hongkong.myqcloud.com/platform/2023-08/6fb276a9-07bb-40d0-bd78-318efc1a4cb0.jpg?imageMogr2/thumbnail/!10p",
                "month": "2024-04",
                "day": "2024-04-18",
                "sender": "adr_edf146a2d61be4d8",
                "is_subscribe": -1,
                "subscribe_day": "",
                "tag": "",
                "scan_uv": 0,
                "request_id": ""
            },
            "sub_order": {
                "id": 4,
                "created_at": "2024-04-18 11:22:15",
                "updated_at": "2024-04-18 11:24:08",
                "agent_id": 3,
                "order_id": 4,
                "inv_id": 4,
                "pid": 3,
                "price": "0.803",
                "type": 1,
                "sub_type": 2,
                "status": 3,
                "is_valid": 1,
                "token": "",
                "month": "2024-04",
                "country_code": "US",
                "name": "Kennedy Snow",
                "last_name": "",
                "address1": "185 PINE HAVEN SHORES RD APT 318",
                "address2": "",
                "city": "SHELBURNE",
                "zip": "05482-7811",
                "state": "VT",
                "size": "8.5x11",
                "color": "color",
                "express": "usps_first_class",
                "phone": "",
                "email": "",
                "front": "<html>\r\n  <head>\r\n    <meta charset=&quot;UTF-8&quot; />\r\n    <title>MUMA</title>\r\n    <style>\r\n      *,\r\n      *:before,\r\n      *:after {\r\n        -webkit-box-sizing: border-box;\r\n        -moz-box-sizing: border-box;\r\n        box-sizing: border-box;\r\n      }\r\n      body {\r\n        width: 8.5in;\r\n        height: 11in;\r\n        margin: 0;\r\n        padding: 0;\r\n        background-image: url(https://muma-1258279456.cos.ap-hongkong.myqcloud.com/platform/2023-08/6fb276a9-07bb-40d0-bd78-318efc1a4cb0.jpg);\r\n        background-size: 8.5in 11in;\r\n        background-repeat: no-repeat;\r\n        position: relative;\r\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';\r\n      }\r\n      #var1{\r\n        position: absolute;\r\n        z-index:999;\r\n        line-height: 1.5715;\r\n        box-sizing: border-box;\r\n      }\r\n      #var2{\r\n        position: absolute;\r\n        z-index:999;\r\n        line-height: 1.5715;\r\n        box-sizing: border-box;\r\n      }\r\n    </style>\r\n  </head>\r\n  <body> </body>\r\n</html>",
                "back": "<html>\r\n  <head>\r\n    <meta charset=&quot;UTF-8&quot; />\r\n    <title>MUMA</title>\r\n    <style>\r\n      *,\r\n      *:before,\r\n      *:after {\r\n        -webkit-box-sizing: border-box;\r\n        -moz-box-sizing: border-box;\r\n        box-sizing: border-box;\r\n      }\r\n      body {\r\n        width: 8.5in;\r\n        height: 11in;\r\n        margin: 0;\r\n        padding: 0;\r\n        background-image: url(https://muma-1258279456.cos.ap-hongkong.myqcloud.com/platform/2023-08/6fb276a9-07bb-40d0-bd78-318efc1a4cb0.jpg);\r\n        background-size: 8.5in 11in;\r\n        background-repeat: no-repeat;\r\n        position: relative;\r\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';\r\n      }\r\n      #var1{\r\n        position: absolute;\r\n        z-index:999;\r\n        line-height: 1.5715;\r\n        box-sizing: border-box;\r\n      }\r\n      #var2{\r\n        position: absolute;\r\n        z-index:999;\r\n        line-height: 1.5715;\r\n        box-sizing: border-box;\r\n      }\r\n    </style>\r\n  </head>\r\n  <body> </body>\r\n</html>",
                "track_status": "",
                "track_detail": "",
                "scan_num": 0,
                "scan_time": "0001-01-01 00:00:00"
            }
        },
        {
            "order": {
                "id": 3,
                "created_at": "2023-11-15 17:41:41",
                "updated_at": "2024-04-18 10:54:24",
                "agent_id": 3,
                "agent_name": "test001",
                "inv_id": 4,
                "pid": 3,
                "tag_id": 1074,
                "template_id": 411,
                "country_code": "US",
                "order_name": "东子",
                "order_no": "Po012311151741415",
                "currency": "CNY",
                "unit_price": "4.02",
                "surcharge": "0",
                "price": "381.9",
                "refund_price": "12.06",
                "num": 99,
                "check_num": 99,
                "success_num": 96,
                "fail_num": 3,
                "is_refund": 3,
                "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-15",
                "sender": "",
                "is_subscribe": -1,
                "subscribe_day": "",
                "tag": "",
                "scan_uv": 0,
                "request_id": ""
            },
            "sub_order": {
                "id": 3,
                "created_at": "2023-11-15 17:41:41",
                "updated_at": "2024-04-18 09:54:59",
                "agent_id": 3,
                "order_id": 3,
                "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": "melinda colbert ",
                "last_name": "",
                "address1": "9933 BRADLEY RUSSELL CT   ",
                "address2": "",
                "city": "CHARLOTTE",
                "zip": "28214-7658",
                "state": "NC",
                "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": "0001-01-01 00:00:00"
            }
        },
        {
            "order": {
                "id": 2,
                "created_at": "2023-11-07 16:25:58",
                "updated_at": "2024-04-18 09:54:58",
                "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,
                "request_id": ""
            },
            "sub_order": {
                "id": 2,
                "created_at": "2023-11-07 16:25:58",
                "updated_at": "2024-04-18 09:54:58",
                "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": "0001-01-01 00:00:00"
            }
        }
    ],
    "msg": "Query success"
}
修改于 2024-09-19 08:51:30
上一页
获取订单内容
下一页
历史订单列表
Built with