文档中心 > API类目 > ICBU-物流

alibaba.onetouch.logistics.express.logistics.order.create (快递下单)

快递下单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
paramn_query PlaceOrderDTO 必须 请求参数对象
  • cargo_list
  • CargoList []
  • 必须
  • 货品信息
  • └ unit
  • String
  • 必须
  • pcs
  • 单位
  • └ hscode
  • String
  • 必须
  • 12345678
  • 海关编码
  • └ quantity
  • Number
  • 必须
  • 1
  • 货物数量
  • └ declaration_value
  • String
  • 必须
  • 1
  • 申报单价
  • └ price
  • String
  • 可选
  • 1
  • 货物单价
  • └ name_cn
  • String
  • 必须
  • 无线耳机
  • 货物中文名
  • └ currency
  • String
  • 必须
  • USD
  • 币种
  • └ name_en
  • String
  • 必须
  • wireless headsets
  • 货物英文名
  • product_type
  • ProductType []
  • 必须
  • 商品特性列表对象
  • └ code
  • String
  • 必须
  • battery
  • 商品类型code
  • children
  • Children []
  • 可选
  • 商品特性列表对象
  • └ code
  • String
  • 可选
  • inlayBattery
  • 商品类型code
  • children
  • LeafNode []
  • 可选
  • 商品特性列表对象
  • └ code
  • String
  • 可选
  • oneLessHundredWh
  • 商品类型code
  • └ name
  • String
  • 可选
  • 单块电池≤100Wh
  • 商品类型
  • └ name
  • String
  • 可选
  • 内置/配置电池
  • 商品类型
  • └ name
  • String
  • 必须
  • 电池
  • 商品类型
  • └ purpose
  • String
  • 必须
  • 喝水生活用品
  • 用途
  • └ material
  • String
  • 必须
  • 塑料
  • 材质
  • └ origin_zip_code
  • String
  • 必须
  • 518000
  • 起始地邮编
  • deliver_warehouse_express
  • DeliverWarehouseExpressDto
  • 可选
  • 交货到仓快递信息(自寄必填)
  • └ logistics_company
  • String
  • 可选
  • UPS
  • 国内快递公司code(自寄必填)
  • └ tracking_numbers
  • String []
  • 可选
  • ["111111","22222“]
  • 运单号(自寄必填)
  • └ package_quantity
  • String
  • 可选
  • 2
  • 包裹数量(自寄必填)
  • package_list
  • PackageList []
  • 必须
  • 包裹信息
  • └ quantity
  • String
  • 必须
  • 2
  • 数量
  • └ length
  • String
  • 必须
  • 5
  • 长,单位:cm
  • └ width
  • String
  • 必须
  • 10
  • 宽,单位:cm
  • └ weight
  • String
  • 必须
  • 3
  • 重量,单位:kg
  • └ type
  • String
  • 必须
  • box
  • 包装类型
  • └ height
  • String
  • 必须
  • 2
  • 高,单位:cm
  • └ destination_country_code
  • String
  • 必须
  • US
  • 目的地国家
  • └ warehouse_code
  • String
  • 必须
  • ASP_YH_SZJC
  • 仓库编码
  • └ product_code
  • String
  • 必须
  • EX_ASP_standard3C
  • 产品编码
  • consignor_address
  • ConsignorAddress
  • 必须
  • 发货人地址
  • address
  • Address
  • 必须
  • 国家、省、市、详细地址信息
  • └ zip
  • String
  • 必须
  • 518000
  • 邮编
  • country
  • Country
  • 必须
  • 国家
  • └ code
  • String
  • 必须
  • CN
  • 地址代码
  • └ area_id
  • Number
  • 可选
  • 1
  • 地址id
  • └ name
  • String
  • 必须
  • china
  • 地址名字
  • └ address
  • String
  • 必须
  • 阿里西溪园区
  • 地址
  • town
  • Town
  • 可选
  • 乡、镇名称
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • └ name
  • String
  • 可选
  • 测试街道
  • 地址名字
  • province
  • Province
  • 必须
  • 省份
  • └ code
  • String
  • 必须
  • 330000
  • 地址代码
  • └ area_id
  • Number
  • 可选
  • 330000
  • 地址id
  • └ name
  • String
  • 必须
  • 浙江省
  • 地址名字
  • city
  • City
  • 必须
  • 城市
  • └ code
  • String
  • 必须
  • 330100
  • 地址代码
  • └ area_id
  • Number
  • 可选
  • 330100
  • 地址id
  • └ name
  • String
  • 必须
  • 杭州市
  • 地址名字
  • district
  • District
  • 可选
  • 地区
  • └ code
  • String
  • 可选
  • 330108
  • 地址代码
  • └ name
  • String
  • 可选
  • 滨江区
  • 地址名字
  • contact
  • Contact
  • 必须
  • 联系方式(邮箱、电话号码、手机号码等)
  • └ phone_code
  • String
  • 可选
  • +86
  • 电话区号
  • └ mobile_no
  • String
  • 必须
  • 13798909890
  • 手机号码
  • └ email
  • String
  • 必须
  • aaa@test.com"
  • 邮箱
  • └ contact_person
  • String
  • 必须
  • 张三
  • 联系人姓名
  • └ company_name_cn
  • String
  • 必须
  • 测试公司名称
  • 公司中文名
  • express_customs
  • ExpressCustomsDto
  • 必须
  • 申报信息
  • └ declaration_amount
  • String
  • 必须
  • 15
  • 申报金额
  • └ need_customs_clearance
  • String
  • 必须
  • 1
  • 是否正式报关
  • └ declaration_currency
  • String
  • 必须
  • USD
  • 报关币种,出口发货中心默认USD
  • └ vat_type
  • String
  • 可选
  • VAT
  • 增值税类型,枚举取值:VAT、IOSS、VOEC
  • └ vat_number
  • String
  • 可选
  • IM1234567890
  • 增值税税号
  • └ taxpayer_id
  • String
  • 可选
  • 999999999999
  • 纳税人识别号
  • └ eori_number
  • String
  • 可选
  • ESB80000000
  • 欧盟EORI
  • └ need_pickup
  • Boolean
  • 可选
  • false
  • 是否上门揽收
  • └ destination_zip_code
  • String
  • 必须
  • 07005
  • 目的地邮编
  • └ supply_chain_biz_id
  • String
  • 必须
  • 1001
  • 发货批次ID,阿里国际站订单发货此字段为必填
  • consignee_address
  • ConsigneeAddress
  • 必须
  • 收货人地址
  • address
  • Address
  • 必须
  • 国家、省、市、详细地址信息
  • └ zip
  • String
  • 必须
  • 07005
  • 邮编
  • country
  • Country
  • 必须
  • 国家
  • └ code
  • String
  • 必须
  • US
  • 地址代码
  • └ area_id
  • Number
  • 可选
  • 228
  • 地址id
  • └ name
  • String
  • 必须
  • United States of America
  • 地址名字
  • └ phone_code
  • String
  • 可选
  • +1
  • 未知
  • └ address
  • String
  • 必须
  • address1
  • 地址
  • province
  • Province
  • 必须
  • 省份
  • └ code
  • String
  • 可选
  • 922878740000000000
  • 地址代码
  • └ area_id
  • String
  • 可选
  • 100
  • 地址id
  • └ name
  • String
  • 必须
  • New Jersey
  • 地址名字
  • town
  • Town
  • 可选
  • 乡、镇名称
  • └ code
  • String
  • 可选
  • 922878740000000001
  • 地址代码
  • └ area_id
  • String
  • 可选
  • 101
  • 地址id
  • └ name
  • String
  • 可选
  • Wall township
  • 地址名字
  • └ address2
  • String
  • 可选
  • address2
  • 地址2
  • city
  • City
  • 必须
  • 城市
  • └ code
  • String
  • 可选
  • 922878746212000000
  • 地址代码
  • └ name
  • String
  • 必须
  • Absecon heights"
  • 地址名字
  • district
  • District
  • 可选
  • 地区
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ area_id
  • String
  • 可选
  • 330009
  • 地址id
  • └ name
  • String
  • 可选
  • 测试街道
  • 地址名字
  • contact
  • Contact
  • 必须
  • 联系方式(邮箱、电话号码、手机号码等)
  • └ phone_area
  • String
  • 可选
  • +86
  • 电话区码
  • └ phone_code
  • String
  • 可选
  • 0755
  • 电话区号
  • └ mobile_no
  • String
  • 必须
  • 13909899009
  • 手机号码
  • └ email
  • String
  • 可选
  • test@163.com
  • 邮箱
  • └ address_email
  • String
  • 可选
  • test2@163.com
  • 地址所有者邮箱(卖家维护收货地址, 值等于买家邮箱)
  • └ company_name_en
  • String
  • 必须
  • test company name
  • 公司英文名
  • └ contact_person
  • String
  • 必须
  • simon test
  • 联系人姓名
  • └ type
  • String
  • 可选
  • CONSIGNEE
  • 地址类型
  • └ company_name_cn
  • String
  • 可选
  • test company name
  • 公司中文名
  • └ trade_biz_id
  • String
  • 可选
  • 20499906501020531
  • 交易单号(例如阿里国际站的信保单ID),注意此字段不为空时,trade_platform字段必填(默认为ICBU)
  • pickup_address
  • ContactAddress
  • 可选
  • 备用字段(上门揽收地址),目前按发货人地址
  • address
  • Address
  • 可选
  • 国家、省、市、详细地址信息
  • └ zip
  • String
  • 可选
  • 518000
  • 邮编
  • country
  • Country
  • 可选
  • 国家
  • └ code
  • String
  • 可选
  • CN
  • 地址代码
  • └ name
  • String
  • 可选
  • 中国
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 1
  • 地址id
  • └ address
  • String
  • 可选
  • 阿里西溪园区
  • 地址
  • town
  • Town
  • 可选
  • 乡、镇名称
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试街道
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • province
  • Province
  • 可选
  • 省份
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • city
  • City
  • 可选
  • 城市
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • district
  • District
  • 可选
  • 街道
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ contact_person
  • String
  • 可选
  • 张三
  • 联系人
  • contact
  • Contact
  • 可选
  • 联系方式(邮箱、电话号码、手机号码等)
  • └ mobile_no
  • String
  • 可选
  • 19089899009
  • 手机号
  • └ email
  • String
  • 可选
  • test@mail.com
  • 邮箱
  • └ phone_code
  • String
  • 可选
  • +86
  • 电话区号
  • └ company_name_cn
  • String
  • 可选
  • 测试公司
  • 公司名称
  • return_address
  • ContactAddress
  • 可选
  • 备用字段(退货地址),目前按退货申请指定地址
  • address
  • Address
  • 可选
  • 地址信息
  • └ zip
  • String
  • 可选
  • 518000
  • 邮编
  • country
  • Country
  • 可选
  • 国家
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • └ address
  • String
  • 可选
  • 测试地址
  • 地址
  • town
  • Town
  • 可选
  • 乡、镇名称
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • province
  • Province
  • 可选
  • 省份
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • city
  • City
  • 可选
  • 城市
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ area_id
  • Number
  • 可选
  • 330009
  • 地址id
  • district
  • District
  • 可选
  • 街道
  • └ code
  • String
  • 可选
  • 330009
  • 地址代码
  • └ name
  • String
  • 可选
  • 测试地址
  • 地址名称
  • └ contact_person
  • String
  • 可选
  • 张三
  • 联系人
  • contact
  • Contact
  • 可选
  • 联系方式(邮箱、电话号码、手机号码等)
  • └ mobile_no
  • String
  • 可选
  • 18909890990
  • 手机号
  • └ email
  • String
  • 可选
  • test@163.com
  • 邮箱地址
  • └ phone_code
  • String
  • 可选
  • +86
  • 电话区号
  • └ company_name_cn
  • String
  • 可选
  • 测试公司名称
  • 公司名称
  • └ trade_platform
  • String
  • 可选
  • ICBU
  • 跨境电商平台代码:ICBU(阿里巴巴国际站)、ALIEXPRESS(速卖通)、AMAZON(亚马逊)、TIKTOK、TEMU、SHEIN
  • └ trade_biz_mode
  • String
  • 可选
  • SEMI_MANAGED
  • 贸易业务模式(如半托管)
  • solution_dto
  • SolutionDTO
  • 可选
  • 方案信息
  • └ trunk_line_name
  • String
  • 可选
  • 半托管_无忧UPS Expedited
  • 干线线路名称
  • └ trunk_line_sku_code
  • String
  • 可选
  • UPS-Expedited-BTG
  • 干线线路 skuCode
  • └ head_pickup_type
  • String
  • 可选
  • provider_paid_pickup
  • 揽收类型
  • └ head_pickup_sku_id
  • Number
  • 可选
  • 17157
  • 头程揽收skuId
  • └ head_pickup_solution_id
  • Number
  • 可选
  • 122333
  • 头程线路方案id
  • └ head_pickup_sp_code
  • String
  • 可选
  • SP_CN_000281
  • 头程揽收服务商
  • └ expect_pickup_time
  • Number
  • 可选
  • 1724140800000
  • 预计揽收时间

响应参数

名称 类型 示例值 描述
result Result Result 接口返回model
  • └ error_message
  • String
  • invalidate request
  • 返回结果描述
  • values
  • ExpressFreightDTO
  • ExpressFreightDTO
  • 结果对象
  • warehouse
  • WarehouseDTO
  • WarehouseDTO
  • 仓库信息
  • └ address
  • String
  • 深圳市龙岗区坂田仓库
  • 仓库地址
  • └ name
  • String
  • 越航深圳仓
  • 仓库名称
  • └ code
  • String
  • YH_SZ_BT
  • 仓库编码
  • └ contact_person
  • String
  • 张三
  • 联系人
  • └ contact_phone
  • String
  • 13989898989
  • 联系人电话
  • └ working_time
  • String
  • 周一到周五9:00-18:00
  • 工作时间
  • └ post_code
  • String
  • 518000
  • 邮编
  • └ description
  • String
  • 备注说明
  • 备注
  • └ bar_code
  • String
  • fehuiehuwew==
  • (废弃为空!!面单通过alibaba.onetouch.logistics.express.order.detail.get获取)原条码PDF Base64编码
  • └ order_number
  • String
  • ALS20001890
  • 物流订单号
  • pickup_info
  • PickupInfoDTO
  • 上门揽收信息
  • └ service_provider
  • String
  • 德邦
  • 备用字段(上门揽收服务商),目前为空
  • └ pickup_type
  • String
  • provider_paid_pickup
  • 上门揽收类型,warehouse_free_pickup:仓库免费上门揽收,warehouse_paid_pickup:仓库收费上门揽收,provider_paid_pickup:服务商收费上门揽收
  • └ can_pickup
  • Boolean
  • true
  • 能否上门揽收
  • └ pickup_type_name
  • String
  • 服务商收费上门揽收
  • 上门揽收类型名称
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • Number
  • 402
  • 返回结果编码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest req = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.PlaceOrderDTO obj1 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.PlaceOrderDTO();
List<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.CargoList> list3 = new ArrayList<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.CargoList>();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.CargoList obj4 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.CargoList();
list3.add(obj4);
obj4.setUnit("pcs");
obj4.setHscode("12345678");
obj4.setQuantity(1L);
obj4.setDeclarationValue("1");
obj4.setPrice("1");
obj4.setNameCn("无线耳机");
obj4.setCurrency("USD");
obj4.setNameEn("wireless headsets");
List<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ProductType> list7 = new ArrayList<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ProductType>();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ProductType obj8 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ProductType();
list7.add(obj8);
obj8.setCode("battery");
List<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Children> list11 = new ArrayList<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Children>();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Children obj12 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Children();
list11.add(obj12);
obj12.setCode("inlayBattery");
List<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.LeafNode> list15 = new ArrayList<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.LeafNode>();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.LeafNode obj16 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.LeafNode();
list15.add(obj16);
obj16.setCode("oneLessHundredWh");
obj16.setName("单块电池≤100Wh");
list13.setChildren(list15);
obj12.setName("内置/配置电池");
list9.setChildren(list11);
obj8.setName("电池");
list5.setProductType(list7);
obj4.setPurpose("喝水生活用品");
obj4.setMaterial("塑料");
obj1.setCargoList(list3);
obj1.setOriginZipCode("518000");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.DeliverWarehouseExpressDto obj17 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.DeliverWarehouseExpressDto();
obj17.setLogisticsCompany("UPS");
obj17.setTrackingNumbers(""111111","22222“");
obj17.setPackageQuantity("2");
obj1.setDeliverWarehouseExpress(obj17);
List<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.PackageList> list19 = new ArrayList<AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.PackageList>();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.PackageList obj20 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.PackageList();
list19.add(obj20);
obj20.setQuantity("2");
obj20.setLength("5");
obj20.setWidth("10");
obj20.setWeight("3");
obj20.setType("box");
obj20.setHeight("2");
obj1.setPackageList(list19);
obj1.setDestinationCountryCode("US");
obj1.setWarehouseCode("ASP_YH_SZJC");
obj1.setProductCode("EX_ASP_standard3C");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ConsignorAddress obj21 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ConsignorAddress();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address obj22 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address();
obj22.setZip("518000");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country obj23 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country();
obj23.setCode("CN");
obj23.setAreaId(1L);
obj23.setName("china");
obj22.setCountry(obj23);
obj22.setAddress("阿里西溪园区");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town obj24 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town();
obj24.setCode("330009");
obj24.setAreaId(330009L);
obj24.setName("测试街道");
obj22.setTown(obj24);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province obj25 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province();
obj25.setCode("330000");
obj25.setAreaId(330000L);
obj25.setName("浙江省");
obj22.setProvince(obj25);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City obj26 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City();
obj26.setCode("330100");
obj26.setAreaId(330100L);
obj26.setName("杭州市");
obj22.setCity(obj26);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District obj27 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District();
obj27.setCode("330108");
obj27.setName("滨江区");
obj22.setDistrict(obj27);
obj21.setAddress(obj22);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact obj28 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact();
obj28.setPhoneCode("+86");
obj28.setMobileNo("13798909890");
obj28.setEmail("aaa@test.com\"");
obj21.setContact(obj28);
obj21.setContactPerson("张三");
obj21.setCompanyNameCn("测试公司名称");
obj1.setConsignorAddress(obj21);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ExpressCustomsDto obj29 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ExpressCustomsDto();
obj29.setDeclarationAmount("15");
obj29.setNeedCustomsClearance("1");
obj29.setDeclarationCurrency("USD");
obj29.setVatType("VAT");
obj29.setVatNumber("IM1234567890");
obj29.setTaxpayerId("999999999999");
obj29.setEoriNumber("ESB80000000");
obj1.setExpressCustoms(obj29);
obj1.setNeedPickup(false);
obj1.setDestinationZipCode("07005");
obj1.setSupplyChainBizId("1001");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ConsigneeAddress obj30 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ConsigneeAddress();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address obj31 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address();
obj31.setZip("07005");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country obj32 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country();
obj32.setCode("US");
obj32.setAreaId(228L);
obj32.setName("United States of America");
obj32.setPhoneCode("+1");
obj31.setCountry(obj32);
obj31.setAddress("address1");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province obj33 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province();
obj33.setCode("922878740000000000");
obj33.setAreaId("100");
obj33.setName("New Jersey");
obj31.setProvince(obj33);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town obj34 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town();
obj34.setCode("922878740000000001");
obj34.setAreaId("101");
obj34.setName("Wall township");
obj31.setTown(obj34);
obj31.setAddress2("address2");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City obj35 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City();
obj35.setCode("922878746212000000");
obj35.setName("Absecon heights\"");
obj31.setCity(obj35);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District obj36 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District();
obj36.setCode("330009");
obj36.setAreaId("330009");
obj36.setName("测试街道");
obj31.setDistrict(obj36);
obj30.setAddress(obj31);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact obj37 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact();
obj37.setPhoneArea("+86");
obj37.setPhoneCode("0755");
obj37.setMobileNo("13909899009");
obj37.setEmail("test@163.com");
obj30.setContact(obj37);
obj30.setAddressEmail("test2@163.com");
obj30.setCompanyNameEn("test company name");
obj30.setContactPerson("simon test");
obj30.setType("CONSIGNEE");
obj30.setCompanyNameCn("test company name");
obj1.setConsigneeAddress(obj30);
obj1.setTradeBizId("20499906501020531");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ContactAddress obj38 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ContactAddress();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address obj39 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address();
obj39.setZip("518000");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country obj40 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country();
obj40.setCode("CN");
obj40.setName("中国");
obj40.setAreaId(1L);
obj39.setCountry(obj40);
obj39.setAddress("阿里西溪园区");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town obj41 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town();
obj41.setCode("330009");
obj41.setName("测试街道");
obj41.setAreaId(330009L);
obj39.setTown(obj41);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province obj42 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province();
obj42.setCode("330009");
obj42.setName("测试地址");
obj42.setAreaId(330009L);
obj39.setProvince(obj42);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City obj43 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City();
obj43.setCode("330009");
obj43.setName("测试地址");
obj43.setAreaId(330009L);
obj39.setCity(obj43);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District obj44 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District();
obj44.setCode("330009");
obj44.setName("测试地址");
obj39.setDistrict(obj44);
obj38.setAddress(obj39);
obj38.setContactPerson("张三");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact obj45 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact();
obj45.setMobileNo("19089899009");
obj45.setEmail("test@mail.com");
obj45.setPhoneCode("+86");
obj38.setContact(obj45);
obj38.setCompanyNameCn("测试公司");
obj1.setPickupAddress(obj38);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ContactAddress obj46 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.ContactAddress();
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address obj47 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Address();
obj47.setZip("518000");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country obj48 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Country();
obj48.setCode("330009");
obj48.setName("测试地址");
obj48.setAreaId(330009L);
obj47.setCountry(obj48);
obj47.setAddress("测试地址");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town obj49 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Town();
obj49.setCode("330009");
obj49.setName("测试地址");
obj49.setAreaId(330009L);
obj47.setTown(obj49);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province obj50 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Province();
obj50.setCode("330009");
obj50.setName("测试地址");
obj50.setAreaId(330009L);
obj47.setProvince(obj50);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City obj51 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.City();
obj51.setCode("330009");
obj51.setName("测试地址");
obj51.setAreaId(330009L);
obj47.setCity(obj51);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District obj52 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.District();
obj52.setCode("330009");
obj52.setName("测试地址");
obj47.setDistrict(obj52);
obj46.setAddress(obj47);
obj46.setContactPerson("张三");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact obj53 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.Contact();
obj53.setMobileNo("18909890990");
obj53.setEmail("test@163.com");
obj53.setPhoneCode("+86");
obj46.setContact(obj53);
obj46.setCompanyNameCn("测试公司名称");
obj1.setReturnAddress(obj46);
obj1.setTradePlatform("ICBU");
obj1.setTradeBizMode("SEMI_MANAGED");
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.SolutionDTO obj54 = new AlibabaOnetouchLogisticsExpressLogisticsOrderCreateRequest.SolutionDTO();
obj54.setTrunkLineName("半托管_无忧UPS Expedited");
obj54.setTrunkLineSkuCode("UPS-Expedited-BTG");
obj54.setHeadPickupType("provider_paid_pickup");
obj54.setHeadPickupSkuId(17157L);
obj54.setHeadPickupSolutionId(122333L);
obj54.setHeadPickupSpCode("SP_CN_000281");
obj54.setExpectPickupTime(1724140800000L);
obj1.setSolutionDto(obj54);
req.setParamnQuery(obj1);
AlibabaOnetouchLogisticsExpressLogisticsOrderCreateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_onetouch_logistics_express_logistics_order_create_response>
    <result>
        <error_message>invalidate request</error_message>
        <values>
            <warehouse>
                <address>深圳市龙岗区坂田仓库</address>
                <name>越航深圳仓</name>
                <code>YH_SZ_BT</code>
                <contact_person>张三</contact_person>
                <contact_phone>13989898989</contact_phone>
                <working_time>周一到周五9:00-18:00</working_time>
                <post_code>518000</post_code>
                <description>备注说明</description>
            </warehouse>
            <bar_code>fehuiehuwew==</bar_code>
            <order_number>ALS20001890</order_number>
            <pickup_info>
                <service_provider>德邦</service_provider>
                <pickup_type>provider_paid_pickup</pickup_type>
                <can_pickup>true</can_pickup>
                <pickup_type_name>服务商收费上门揽收</pickup_type_name>
            </pickup_info>
        </values>
        <success>true</success>
        <error_code>402</error_code>
    </result>
</alibaba_onetouch_logistics_express_logistics_order_create_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部