批量订单是为了方便地处理大量订单而提供的一个临时订单,包括邮递服务、地址等信息,通过如下API创建:
url | http://test.birdsystem.com/client/consignment-upload/Temp-Consignment-Json | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method | post | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
body | json属性如下:
[ { "contact": "Norman Drury", "business_name": null, "address_line1": "3, Northam Close", "address_line2": "Marshside", "address_line3": null, "city": "Southport", "county": "Merseyside", "post_code": "PR9 9GA", "country_name": "United Kingdom", "telephone": "01704 226830", "email": null, "sales_order_id": "110222319566-0", "custom_identity_reference":"24S5662a321", "payment_reference": "Royal Mail 1st Class Standard", "special_instruction": null, "product_company_ref": "6apple29##灯1##47||2||3||其它||http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg*1+7apple29##灯1##487||2||3||其它||http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg*1", "delivery_service_name": "D 中英平邮(B2P)", "status": "PENDING", "type": "AGENT_DIRECT", "thirty_system_id":"2222" } ] 图片URL:直接在海关属性后面加"||+url"==>||http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg 图片URL:attachment-url 新产品图片URL为必填,已存在的产品不用传图片URL(只能传网上的图片,不能传本地的) 品牌字段暂时这个接口无法上传 需要填写销售跟踪号请自行添加参数 sales_reference, 例如 "sales_reference":"12345" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
返回 | { "data": { "2222": "41295" }, "message": "File successfully uploaded! 1 records has been imported.", "success": true, "moduleName": "client" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
参数 | thirty_system_id: 第三方系统id country_name: 可以通过/client/Country获取 delivery_service_name: 可以通过/client/Delivery-Service 获取 product_company_ref: 产品id*数量, 多个产品的话 产品id*数量+产品id*数量, 可以通过/client/Product 获取 如果是代理专线订单,product_company_ref格式变为: Product_name||Product_name_cn||ProductPrice||ProductWeight||ProductCustomsProperty*Quantity |