OMS接口文档

OMS接口文档


订单上传

<p><strong>简要描述:</strong> </p> <ul> <li>订单上传接口 </li> <li>发货自动上传失败后,需要主动调用该接口进行二次发货</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://localhost:8080/api/billoperation/apiaction?token=12345678</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">billnum</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>单据编码</td> </tr> <tr> <td style="text-align: left;">action</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>操作类型 tradeupload</td> </tr> <tr> <td style="text-align: left;">ids</td> <td style="text-align: left;">是</td> <td style="text-align: left;">List</td> <td>需要发货订单id,多张用“,”分隔</td> </tr> <tr> <td style="text-align: left;">partParam</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Map</td> <td>订单-时间戳关系映射</td> </tr> </tbody> </table> <p><strong>请求示例</strong></p> <pre><code>{ "billnum": "ec_tradeorder", "action": "tradeupload", "ids": "1065068164894976,1065703716704512", "partParam": { "1065068164894976": "2019-01-28 16:43:31", "1065703716704512": "2019-01-24 11:14:00" } }</code></pre> <p><strong>返回示例</strong> <strong>备注 失败的订单会从data返回</strong></p> <pre><code>{ "code":200, "message":"共0张订单上传成功,失败1张", "data":"[{\"cTradeCode\":\"DSDD99992019040800000009\",\"tid\":\"NewAdd20190408001\",\"total_fee\":70.00000000,\"total_num\":4.00000000,\"refund_num\":0E-8,\"refund_fee\":0E-8,\"discount_fee\":0E-8,\"adjust_fee\":0E-8,\"post_fee\":12.00000000,\"payment\":82.00000000,\"receiver_name\":\"heylm\",\"receiver_state\":\"北京市\",\"receiver_city\":\"海淀区\",\"receiver_district\":\"西北旺地区办事处\",\"cstateid\":6323,\"ccityid\":6433,\"cdistrictid\":6460,\"receiver_address\":\"用友软件园\",\"receiver_mobile\":\"132987911111\",\"receiver_phone\":\"13298793341\",\"created\":1554708088000,\"pay_time\":1554708116000,\"invoice_name\":\"个人\",\"seller_cod_fee\":0E-8,\"buyer_cod_fee\":0E-8,\"cod_fee\":0E-8,\"express_agency_fee\":0E-8,\"has_post_fee\":0,\"trade_memo\":\"手工新增\",\"coupon_fee\":0E-8,\"status\":\"buyers_have_paid\",\"type\":\"4-在线支付\",\"commission_fee\":0E-8,\"available_confirm_fee\":0E-8,\"received_payment\":0E-8,\"cShopID\":1072275670683904,\"sys_Status\":\"shipconfirm\",\"isHold\":1,\"isUpload\":0,\"isCollection\":0,\"isClosed\":0,\"isBlend\":0,\"cExpressCoID\":1116305501147392,\"cExpressCode\":\"805271266490573671\",\"cApproveLog\":\"该店铺未设置免审策略!\",\"isInvoice\":1,\"cShipMode\":\"EnterpriseDeliver\",\"isconfirmed\":0,\"cBizAuditer\":\"AA\",\"dBizAuditTime\":1554948249000,\"isbizaudited\":1,\"cFinAuditer\":\"AA\",\"dFinAuditTime\":1554952064000,\"isfinaudited\":1,\"cshipper\":\"jinyidemotest\",\"dShipTime\":1555308668000,\"cModifier\":\"AA\",\"cShipPrintStatus\":0,\"dshipprinttime\":1554720888000,\"dpickprinttime\":1554720888000,\"dexpressprinttime\":1554720887000,\"iprintsn\":0,\"print_operator\":\"AA\",\"cExcoPrintStatus\":0,\"bCreatePost\":1,\"iEBPlatDiscount\":0E-8,\"cHoldReason\":\"\",\"isPickSelf\":0,\"buyer_payment\":0E-8,\"coupon_point\":0E-8,\"coupon_ticket\":0E-8,\"coupon_card\":0E-8,\"invoice_amount\":0E-8,\"iweight\":0E-8,\"is_sh_ship\":0,\"cshipcode\":\"FH10722019040800000004\",\"cpickcode\":\"DSJH00002019040800000001\",\"cpickrowno\":\"1\",\"ishipprintcount\":6,\"ipickprintcount\":2,\"iexpressprintcount\":6,\"ismainorder\":1,\"ipackagecnt\":1,\"isTradePosted\":0,\"cpickprintstatus\":0,\"iinvoicetype\":\"3\",\"iholdtype\":\"4\",\"cUnApproveReason\":\"其它\",\"iMergeType\":0,\"isSplitTrade\":0,\"srctype\":3,\"order_tax_fee\":0E-8,\"iAutoDistributeBillCount\":3,\"iconverttype\":0,\"has_buyer_message\":0,\"curErrlog\":\"已挂起或已关闭订单不允许进行当前操作\",\"holdtime\":1555309370000,\"sourcestatus\":\"buyers_have_paid\",\"versionguid\":\"bd4c67bb-af40-4c91-ba16-04b720a3df2b\",\"id\":1171593234125056,\"pubts\":1555321435000,\"tenant\":616973480136960,\"org\":3283,\"tradeOrderDetail\":[{\"parentid\":1171593234125056,\"tid\":\"NewAdd20190408001\",\"price\":10.00000000,\"num\":2.00000000,\"discount_fee\":0E-8,\"adjust_fee\":0E-8,\"total_fee\":20.00000000,\"payment\":20.00000000,\"is_service_order\":0,\"citemID\":1161644612620546,\"productID\":1161644612604160,\"post_fee\":0E-8,\"cWhCode\":1147225595121920,\"isGift\":0,\"refund_num\":0E-8,\"refund_fee\":0E-8,\"isInPromotion\":0,\"part_mjz_discount\":0E-8,\"divide_order_fee\":0E-8,\"isPtoSplit\":0,\"bpto\":0,\"bvirtual\":0,\"iorderweight\":0E-8,\"oriItemNum\":0E-8,\"goodtype\":0,\"onsale_num\":0E-8,\"onsale_fee\":0E-8,\"aftersale_num\":0E-8,\"aftersale_fee\":0E-8,\"id\":1171593234141440,\"pubts\":1554708376000,\"org\":3283,\"tenant\":616973480136960},{\"parentid\":1171593234125056,\"tid\":\"NewAdd20190408001\",\"price\":20.00000000,\"num\":1.00000000,\"discount_fee\":0E-8,\"adjust_fee\":0E-8,\"total_fee\":20.00000000,\"payment\":20.00000000,\"is_service_order\":0,\"citemID\":1161646427885824,\"productID\":1161646424363264,\"post_fee\":0E-8,\"cWhCode\":1147225595121920,\"isGift\":0,\"refund_num\":0E-8,\"refund_fee\":0E-8,\"isInPromotion\":0,\"part_mjz_discount\":0E-8,\"divide_order_fee\":0E-8,\"isPtoSplit\":0,\"bpto\":0,\"bvirtual\":0,\"iorderweight\":0E-8,\"oriItemNum\":0E-8,\"goodtype\":0,\"onsale_num\":0E-8,\"onsale_fee\":0E-8,\"aftersale_num\":0E-8,\"aftersale_fee\":0E-8,\"id\":1171593234141441,\"pubts\":1554708376000,\"org\":3283,\"tenant\":616973480136960},{\"parentid\":1171593234125056,\"tid\":\"NewAdd20190408001\",\"price\":30.00000000,\"num\":1.00000000,\"discount_fee\":0E-8,\"adjust_fee\":0E-8,\"total_fee\":30.00000000,\"payment\":30.00000000,\"is_service_order\":0,\"citemID\":1161648188641536,\"productID\":1161648183169280,\"post_fee\":0E-8,\"cWhCode\":1147225595121920,\"isGift\":0,\"refund_num\":0E-8,\"refund_fee\":0E-8,\"isInPromotion\":0,\"part_mjz_discount\":0E-8,\"divide_order_fee\":0E-8,\"isPtoSplit\":0,\"bpto\":0,\"bvirtual\":0,\"iorderweight\":0E-8,\"oriItemNum\":0E-8,\"goodtype\":0,\"onsale_num\":0E-8,\"onsale_fee\":0E-8,\"aftersale_num\":0E-8,\"aftersale_fee\":0E-8,\"id\":1171593234141442,\"pubts\":1554708376000,\"org\":3283,\"tenant\":616973480136960},{\"parentid\":1171593234125056,\"tid\":\"NewAdd20190408001\",\"price\":0E-8,\"num\":0E-8,\"discount_fee\":0E-8,\"adjust_fee\":0E-8,\"total_fee\":0E-8,\"payment\":12.00000000,\"is_service_order\":0,\"citemID\":27532,\"productID\":20630,\"post_fee\":12.00000000,\"isGift\":0,\"refund_num\":0E-8,\"refund_fee\":0E-8,\"isInPromotion\":0,\"part_mjz_discount\":0E-8,\"divide_order_fee\":0E-8,\"isPtoSplit\":0,\"bpto\":0,\"bvirtual\":0,\"iorderweight\":0E-8,\"oriItemNum\":0E-8,\"goodtype\":2,\"onsale_num\":0E-8,\"onsale_fee\":0E-8,\"aftersale_num\":0E-8,\"aftersale_fee\":0E-8,\"id\":1171593234141443,\"pubts\":1554708558000,\"org\":3283,\"tenant\":616973480136960}],\"_convert_tradeOrderDetail\":\"ok\"}]" }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML