新增赔付

1、功能名称:新增赔付

2、功能描述:新增赔付

3、请求地址:https://ssl.glitzcloud.com/agent/v1/orders/saleAfter/add

测试地址:http://gztest.glitzcloud.com/agent/v1/orders/saleAfter/add

4、请求方式:POST

5、请求参数

名称 类型 必填 示例值 描述
store_name String The Warehouse USA 仓库名称
connect_order_sn String test1129 关联单号,type=2时必填
type String 1 类型 1库内丢失赔付2尾程物流异常索赔申请3发错货物赔付申请4NCI收费异常反冲申请5协议/折扣性费用反冲申请6其他
expected_payout_amount String 100.00 期望赔付金额
problem_description String 问题描述 问题描述
attachments Array [{"name": "12312.pdf","content": "base64content"}] 当前要上传的附件(base64编码) 无须参与签名

6、请求示例

        {
            "apikey": "85082f5f62a811e684f00163e06045f",
            "secretkey": "85082f6862a811e84f500163e06045f",
            "store_name": "TWUSA01",
            "sign": "0c5fb3befa389d4afe32a86b428f7a6",
            "connect_order_sn": "test1129",
            "type": "1",
            "expected_payout_amount": "1.00",
            "problem_description": "1",
            "attachments": [
                {
                    "name": "v2-9b16e1c84affba4e2769d772c6db4afc_r.jpg",
                    "content": "base64encodeString",
                },
                {
                    "name": "QQ图片20180929150925.gif",
                    "content": "base64encodeString",
                }
            ]
        }
        

7、返回格式:JSON

8、返回示例:

正确时的返回JSON数据包如下:

        {
            "status": 200,
            "reqMsg": "success",
            "result": {
                "id": "90",
                "order_sn": "GCQ05122600001",
                "connect_order_sn": "test1129123",
                "status": "1",
                "customer_status": "0",
                "customer_care_id": "4",
                "approval_time": "0",
                "reject_time": "0",
                "auditing_time": "0",
                "type": "1",
                "store_id": "13",
                "submitter": "276",
                "problem_level": "1",
                "expected_completion_time": "0",
                "expected_payout_amount": "1.00",
                "actual_payout_amount": "0",
                "problem_description": "1",
                "problem_attachment": "",
                "solution": "",
                "solution_attachment": "",
                "solution_user": "0",
                "actual_completion_time": "0",
                "create_time": "1778548629",
                "is_delete": "0",
                "attachments": [
                    {
                        "id": "3328",
                        "name": "1111.zpl",
                        "add_time": "2026-05-12 09:17:09",
                        "oss_url": "http://oss.twusa.cn/saleAfter/db8e1af0cb3aca1ae2d0018624204529/2605120917096a027f9526d1f.zpl"
                    }
                ]
            }
        }
        

错误时的返回JSON数据包如下:

        {
            "status": 2582,
            "reqMsg": "Invalid Outflow Sn",
            "result": []
        }
        

9、返回参数说明:

参数 类型 示例值 描述
id String 90 赔付单据ID
order_sn String GCQ05122600001 赔付单据号
connect_order_sn String test1129123 关联单号
status String 1 赔付状态0未处理1处理中2已处理3已取消
customer_status String 0 客户状态(0:已创建,1:待审核,2:已完成,3:已驳回,4:已取消)
type String 1 赔付类型
create_time String 1778548629 创建时间戳
attachments Array [] 赔付附件

全局返回码说明