订单附件批量保存

  • 接口:/common/orderAttach/batch
  • Method:POST
  • 数据格式:JSON
  • 接口说明:批量保存订单附件,主键为source&orderId&type&fileName

参数:

请求参数

字段 类型 释义 是否必填
bizId String 当前次接口同步的唯一标识(UUID) Y
timestamp Long 当前次接口同步时间对应的时间戳(TIMESTAMP) Y
data List 请求数据体 Y

OrderAttachmentVo:

字段名称 字段类型 字段描述 是否必填
code String 唯一编码,用source_orderId_type_fileName的形式
source String 渠道名称
source_type String 产品类型
attachment_url String 文件地址
file_name String 附件的文件名
order_id String 订单号
type String 附件类型
description String 描述信息

示例:

请求数据

{
    "bizId": "D026C2E5EB4449909AD452F75C2F3FAE",
    "timestamp": 202407081707457,
    "data": [
        {
            "code": "ctrip_32369548858_receipt_测试文件名",
            "attachment_url": "test/url/测试/v2",
            "file_name": "测试文件名",
            "source": "ctrip",
            "source_type": "flight",
            "order_id": "32369548858",
            "type": "receipt",
            "description": "测试的描述信息v2"
        }
    ]
}

返回数据

{
    "resCode": 200000,
    "resMsg": "success",
    "bizId": "D026C2E5EB4449909AD452F75C2F3FAE",
    "data": {
        "validatorErrors": {},
        "created": "此次请求新建成功了0条数据",
        "dbErrors": [],
        "updated": "此次请求更新成功了1条数据"
    }
}

results matching ""

    No results matching ""