简要描述Description
  • 创建商品入库预报
请求URL
  • /wms_api/asn/create
请求方式method
  • POST
请求示例request
{
    "timestamp": {{timestamp}},
    "sign": "{{sign}}",
    "to_store": 7,   //仓库ID,必填
    "service_code": "agent",  //预报类型,必填;  agent 一件代发,box按箱转运, unpacking落地拆包
    "asn_type_id": "1", //1海运,2空运,3快递,4陆运。运输方式: ,必填
    "estimated_at": "2025-12-30", //预计到仓库日期,必填
    "estimated_days": 30, //预存天数,必填
    "tray_no": "",   //托盘号码
    "container_no": "", //集装箱号码
    "apply_count": 0, //是否到货后点数,点数填1,会产生费用
    "box_list": [
        {
            "shipped": "FEDEX",  //箱子上运单服务商,USPS、DHL、FEDEX、UPS、EMS、OTHERS
            "tracking_no": "FD233333332", //尽量填
            "goods": [   //箱子类商品列表,必填
                {
                    "sku": "qwe-e21312", //必填
                    "num": 1 //必填
                }
            ]
        }
    ]
}
返回示例response
{
    "code": 200,
    "msg": "success",
    "data": {
        "id": 23469,
        "service_code": "agent",
        "service_name": "一件代发",
        "asn_type_id": 1,
        "asn_type": "海运",
        "estimated_at": "2025-12-30 00:00:00",
        "estimated_days": "30",
        "tray_no": 0,
        "container_no": "",
        "to_store": "2025-12-18 07:32:20",
        "to_store_name": "US-LAX2",
        "created_at": "2025-12-18 07:32:20",
        "apply_count": 0,
        "count_fee": 0,
        "total_fee": 1,
        "box_list": [
            {
                "asn_box_sn": "ASN#179-23469-1",   //请登录fbb网站打印下载箱唛贴箱子上,入库需要扫描
                "arrival_time": null,
                "shipped": "FEDEX",
                "tracking_no": "FD233333332",
                "goods": [
                    {
                        "sku": "qwe-e21312",
                        "num": 1,
                        "arrival_num": 0
                    }
                ],
                "status": "未入库"
            }
        ],
        "status": "已提交"
    }
}
作者:admin  创建时间:2025-12-22 18:46
最后编辑:admin  更新时间:2025-12-25 19:37