简要描述:

批量新建订单

方法名称:

  • batchCreateOrder

请求JSON:

[{
		"reference_no": "TEST0001",
		"shipping_method": "PK0001",
		"country_code": "PL",
		"order_weight": 0.175,
		"order_pieces": 1,
		"Consignee": {
			"consignee_street": "consignee street1",
			"consignee_street2": "consignee street2",
			"consignee_name": "consignee name",
			"consignee_telephone": "48731271276",
			"consignee_postcode": "32020",
			"consignee_province": "consignee province",
			"consignee_city": "consignee city"
		},
		"Shipper": {
			"shipper_countrycode": "CN",
			"shipper_province": "GuangDong",
			"shipper_city": "ShenZhen",
			"shipper_street": "Kengzi street",
			"shipper_postcode": "518000",
			"shipper_name": "Wang",
			"shipper_telephone": "951218",
			"shipper_mobile": "13800138000"
		},
		"ItemArr": [{
			"invoice_cnname": "甲油胶",
			"invoice_enname": "Nail Gel Polish",
			"invoice_weight": "0.033",
			"invoice_quantity": "1",
			"invoice_unitcharge": "0.59",
			"hs_code": "3506100090",
			"sku": "215131101"
		}],
		"Volume": [{
			"length": "10",
			"width": "20",
			"height": "30",
			"weight": "1.25",
			"box_number": "",
			"child_number": ""
		}]
	},
	{
		"reference_no": "TEST0002",
		"shipping_method": "PK0001",
		"country_code": "PL",
		"order_weight": 0.175,
		"order_pieces": 1,
		"Consignee": {
			"consignee_street": "consignee street1",
			"consignee_street2": "consignee street2",
			"consignee_name": "consignee name",
			"consignee_telephone": "48731271276",
			"consignee_postcode": "32020",
			"consignee_province": "consignee province",
			"consignee_city": "consignee city"
		},
		"Shipper": {
			"shipper_countrycode": "CN",
			"shipper_province": "GuangDong",
			"shipper_city": "ShenZhen",
			"shipper_street": "Kengzi street",
			"shipper_postcode": "518000",
			"shipper_name": "Wang",
			"shipper_telephone": "951218",
			"shipper_mobile": "13800138000"
		},
		"ItemArr": [{
			"invoice_cnname": "甲油胶",
			"invoice_enname": "Nail Gel Polish",
			"invoice_weight": "0.033",
			"invoice_quantity": "1",
			"invoice_unitcharge": "0.59",
			"hs_code": "3506100090",
			"sku": "215131101"
		}],
		"Volume": [{
			"length": "10",
			"width": "20",
			"height": "30",
			"weight": "1.25",
			"box_number": "",
			"child_number": ""
		}]
	}
]

响应JSON:

{
	"ask": "Success",
	"message": "全部提交成功",
	"Result": [{
		"ask": "Success",
		"message": "Success",
		"reference_no": "TEST0001",
		"shipping_method_no": "QGPLAI18041700000002",
		"order_code": "QGPLAI18041700000002",
		"track_status": 3,
		"sender_info_status": 0,
		"ODA": "",
		"agent_number": ""
	}, {
		"ask": "Success",
		"message": "Success",
		"reference_no": "TEST0002",
		"shipping_method_no": "QGPLAI18041700000003",
		"order_code": "QGPLAI18041700000003",
		"track_status": 3,
		"sender_info_status": 0,
		"ODA": "",
		"agent_number": ""
	}],
	"Error": [],
	"time_cost(s)": 1.9540998935699
}

paramsJson参数:

参数名 数据类型 是否必填 说明
object require OrderJson数组,具体属性参考创建订单的paramsJson参数

response参数:

参数名 数据类型 说明
ask string 参考response公共参数
message string
参考response公共参数
Result string
参考createOrder的responese参数
Error object
参考Error格式