接口说明

  • ERP调用的虎符API名称:jingdong.hufu.deliveryorder.confirm
  • 虎符调用WMS的API名称:deliveryorder.confirm
  • 注:虎符发货单确认接口

入参规范

<?xml version="1.0" encoding="UTF-8"?>
<request type="object">
    <deliveryOrder type="object">
        <deliveryOrderCode name="出库单号" required="true" type="string (50)" />
        <deliveryOrderId name="仓储系统出库单号" type="string (50)" />
        <warehouseCode name="仓库编码" required="true" type="string (50)" />
        <orderType name="出库单类型" required="true" type="string (50)">JYCK=一般交易出库HHCK=换货出库BFCK=补发出库 QTCK=其他出库单</orderType>
        <status name="出库单状态" type="string (50)">(NEW-未开始处理, ACCEPT-仓库接单 , PARTDELIVERED-部分发货完成, DELIVERED-发货完成, EXCEPTION-异常,
            CANCELED-取消, CLOSED-关闭, REJECT-拒单, CANCELEDFAIL-取消失败)  (只传英文编码)
        </status>
        <outBizCode name="外部业务编码" type="string (50)">消息ID 用于去重
            ISV对于同一请求 分配一个唯一性的编码。用来保证因为网络等原因导致重复传输 请求不会被重复处理 条件为一单需要多次确认时
        </outBizCode>
        <confirmType name="支持出库单多次发货" type="int">
            多次发货后确认时
            0 表示发货单最终状态确认;
            1 表示发货单中间状态确认;
        </confirmType>
        <orderConfirmTime name="订单完成时间" type="string (19)">YYYY-MM-DD HH:MM:SS</orderConfirmTime>
        <operatorCode name="当前状态操作员编码" type="string (50)" />
        <operatorName name="当前状态操作员姓名" type="string (50)" />
        <operateTime name="当前状态操作时间" type="string (19)">YYYY-MM-DD HH:MM:SS</operateTime>
        <storageFee name="仓储费用" type="double (18, 2)" />
        <invoices type="array">
            <invoice type="object">
                <header name="发票抬头" type="string (200)" />
                <amount name="发票金额" type="double (18, 2)" />
                <content name="发票内容" type="string(500)" />
                <detail type="object">
                    <items type="array">
                        <item type="object">
                            <itemName name="商品名称" type="string (50)" />
                            <unit name="商品单位" type="string (50)" />
                            <price name="商品单价" type="double (18, 2)" />
                            <quantity name="数量" type="int" />
                            <amount name="金额" type="double (18, 2)" />
                        </item>
                    </items>
                </detail>
                <code name="发票代码" type="string(50)">纳税企业的标识</code>
                <number name="发票号码" type="string(50)">纳税企业内部的发票号</number>
            </invoice>
        </invoices>
    </deliveryOrder>
    <packages type="array">
        <package type="object">
            <logisticsCode name="物流公司编码" required="true" type="string (50)">SF=顺丰、EMS=标准快递、EYB=经济快件、ZJS=宅急送、YTO=圆通 、ZTO=中通 (ZTO)
                、HTKY=百世汇通、UC=优速、STO=申通、TTKDEX=天天快递 、QFKD=全峰、FAST=快捷、POSTB=邮政小包
                、GTO=国通、YUNDA=韵达、JD=京东配送、DD=当当宅配、AMAZON=亚马逊物流、OTHER=其他 (只传英文编码)
            </logisticsCode>
            <logisticsName name="物流公司名称" type="string (200)" />
            <expressCode name="运单号" required="true" type="string (50)" />
            <packageCode name="包裹编号" type="string (50)" />
            <length name="包裹长度 (厘米) " type="double (18, 2)" />
            <width name="包裹宽度 (厘米) " type="double (18, 2)" />
            <height name="包裹高度 (厘米) " type="double (18, 2)" />
            <theoreticalWeight name="包裹理论重量 (千克) " type="double (18, 3)" />
            <weight name="包裹重量 (千克) " type="double (18, 3)" />
            <volume name="包裹体积 (升~ L) " type="double (18, 3)" />
            <invoiceNo name="发票号" type="string (500)" />
            <packageMaterialList type="array">
                <packageMaterial type="object">
                    <type name="包材型号" type="string (50)" />
                    <quantity name="包材的数量" type="int" />
                </packageMaterial>
            </packageMaterialList>
            <items type="array">
                <item type="object">
                    <itemCode name="商品编码" required="true" type="string (50)" />
                    <itemId name="商品仓储系统编码" type="string (50)" />
                    <quantity name="包裹内该商品的数量" required="true" type="int" />
                </item>
            </items>
        </package>
    </packages>
    <orderLines type="array">
        <orderLine type="object">
            <orderLineNo name="单据行号" type="string(50)" />
            <orderSourceCode name="平台交易订单编码" type="string (50)" />
            <subSourceCode name="平台交易子订单编码" type="string (50)" />
            <ownerCode name="货主编码" type="string (50)" />
            <itemCode name="商品编码" type="string (50)" />
            <itemId name="商品仓储系统编码" type="string (50)" />
            <inventoryType name="库存类型" type="string (50)">ZP=正品 CC=残次 JS=机损 XS= 箱损 ZT=在途库存 默认为查所有类型的库存</inventoryType>
            <itemName name="商品名称" type="string (200)" />
            <extCode name="交易平台商品编码" type="string (50)" />
            <planQty name="应发商品数量" type="int" />
            <actualQty name="实发商品数量" type="int" />
            <batchCode name="批次编号" type="string(50)" />
            <productDate name="生产日期" type="string(10)">YYYY-MM-DD</productDate>
            <expireDate name="过期日期" type="string(10)">YYYY-MM-DD</expireDate>
            <produceCode name="生产批号" type="string(50)" />
            <batchs type="array">
                <batch type="object">
                    <batchCode name="批次编号" type="string(50)" />
                    <productDate name="生产日期" type="string(10)">YYYY-MM-DD</productDate>
                    <expireDate name="过期日期" type="string(10)">YYYY-MM-DD</expireDate>
                    <produceCode name="生产批号" type="string(50)" />
                    <inventoryType name="库存类型" type="string (50)">ZP=正品 CC=残次JS=机损 XS= 箱损 ZT=在途库存 默认为查所有类型的库存</inventoryType>
                    <actualQty name="实发数量" type="int">要求batchs节点下所有的之和等于orderline中的</actualQty>
                </batch>
            </batchs>
            <qrCode name="商品的二维码" type="string (500)">(类似电子产品的SN码) 用来进行商品的溯源 多个二维码之间用分号(;)隔开</qrCode>
        </orderLine>
    </orderLines>
</request>

出参规范

 <?xml version="1.0" encoding="UTF-8"?>
 <response type="object">
     <flag name="success|failure" type="string (50)" />
     <code name="响应码" type="string (50)" />
     <message name="响应信息" type="string (50)" />
 </response>

results matching ""

    No results matching ""

    results matching ""

      No results matching ""