invoiceCurrencyCode
创建直邮小包订单
HTTP Verb | URL |
|---|---|
| Post | qa: https://cfs-qa.etowertech.com/api/supplier-service/ /v1/openApi/packetOrder/b2c/createOrders |
POST /v1/openApi/packetOrder/b2c/createOrders HTTP/1.1 Host: http://cfs-qa.etowertech.com/ Content-Type: application/json |
|
1、"ordertype":"Fulfillment"
[{
"facility": "Australian Warehouse",
"channelCode": "te",
"channelOption": "",
"referenceNo": "032002",
"orderType": "Fulfillment",
"platform": "eBay",
"collectionType": null,
"remark": "testremark",
"isOffLineOrder": false,
"isNeedConfirm": true,
"extendData": {
"extend": null
},
"consignee": {
"addressCode": "",
"addressLine1": "street92302434545",
"addressLine2": "8349hao街道",
"addressLine3": "345shi街道",
"city": "London",
"company": "testcompany测试",
"countryCode": "us",
"district": "London",
"email": "35643645@qq.com",
"extendData": null,
"name": "迈克尔杰克逊",
"phone": "155123456781234",
"state": "加利福尼亚州",
"taxId": "testtaxid",
"taxId1": "testtaxid1",
"zipCode": "8238juej"
},
"parcels": [{
"referenceNo": "123",
"referenceNo1": "",
"referenceNo2": "",
"consignmentId": "",
"trackingNo": "",
"descriptionEn": "",
"description": "",
"dangerousGoods": false,
"batteryType": "false",
"weight": null,
"weightUnit": null,
"length": "",
"width": "",
"height": "",
"dimensionUnit": null,
"invoiceCurrencyCode": null,
"invoiceValue": "12",
"transactionCurrency": "usd",
"transactionAmount": "5.12",
"shippingInstruction": "",
"sortCode": "",
"labelType": 0,
"label": "https://www.mdaima.com/it/4637.pdf",
"extendData": {
"keepShipService": false
},
"items": [{
"sku": "SKG",
"quantity": "1"
}],
"attachments":[
{
"attachName":"",
"attachData":"",
"attachType":"xlsx"
}]
}]
}] |
2、"ordertype":"B2C"
[
{
"facility": "B2C321",
"channelCode": "UBI.CN2US.AC.GENERAL.LIGHT",
"channelOption": "B2Cchanneloption",
"referenceNo": "XB03094",
"orderType": "B2C",
"originPortCode": "",
"injectPortCode": "",
"platform": "eBay",
"incoterm": "DDP",
"collectionType": "Drop off",
"isInsurance": false,
"isSignature": false,
"remark": "testremark",
"extendData": {
"extend": null
},
"consignee": {
"addressCode": null,
"addressLine1": "testaddressline1",
"addressLine2": "8349hao",
"addressLine3": "345shi",
"city": "testcity",
"company": "testcompany",
"countryCode": "us",
"district": "testdistrict",
"email": "testemail@123.com",
"extendData": null,
"name": "testconsigneename",
"phone": "36247938384",
"state": "teststate",
"taxId": "testtaxid",
"taxId1": "testtaxid1",
"zipCode": "8238juej"
},
"shipper": {
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "us",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"state": "",
"taxId": "",
"taxId1": "",
"zipCode": ""
},
"returnAddress": {
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "",
"state": "",
"zipCode": ""
},
"parcels": [
{
"referenceNo": "PARCEL0323002",
"referenceNo1": "",
"referenceNo2": "",
"consignmentId": "",
"trackingNo": "",
"descriptionEn": "descriptionen",
"description": "description",
"dangerousGoods": true,
"batteryType": true,
"weight": 1.245,
"weightUnit": null,
"length": "25",
"width": "26",
"height": "27",
"dimensionUnit": null,
"invoiceCurrencyCode": "USD",
"invoiceValue": 12.5,
"transactionCurrency": null,
"transactionAmount": null,
"shippingInstruction": "",
"sortCode": "",
"extendData": {
"keepShipService": false
},
"items": [
{
"extendData": null,
"hsCode": "111",
"itemDesc": "desc",
"itemDescEn": "descen",
"itemNumber": "1",
"material": "testmaterial",
"originCountryCode": "cn",
"picture": "",
"quantity": "1",
"quantityUnit": "个",
"salesURL": "testsalesurl",
"sku": "QW",
"unitPrice": "21",
"usage": "testusage",
"weight": "12"
}
],
"insurance": [
{
"insuranceAmount": "12",
"insuranceCurrencyCode": "usd",
"insuranceType": null,
"beneficiaryType": null,
"beneficiary": null,
"beneficiaryId": null,
"extendData": null
}
]
}
],
"collection": {
"date": "2023-03-09",
"addressLine1": "testaddress1",
"addressLine2": "testaddress2",
"addressLine3": "testaddress3",
"city": "testcity",
"company": "testcompany",
"countryCode": "us",
"district": "testdistrict",
"email": "testemail@123.com",
"extendData": null,
"name": "testname",
"phone": "phone",
"state": "teststate",
"zipCode": "123456"
}
}
] |
成功样例
1、"ordertype":"Fulfillment"
[
{
"code": "0",
"data": {
"orderNo": "C12283230322000025O",
"referenceNo": "TestA00001"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
},
{
"code": "0",
"data": {
"orderNo": "C12283230322000026O",
"referenceNo": "TestA00002"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
] |
2、"ordertype":"B2C"
[
{
"code": "0",
"data":
{ "orderNo": "UBI2303230008", "referenceNo": "XB03094" },
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
] |
失败样例
1、"ordertype":"Fulfillment"
[
{
"code": "0005",
"data": "TestA00001",
"errors": [
{
"code": "600904",
"message": "referenceNo:TestA00001,Already exists in the system"
}
],
"message": "paramter error",
"messageId": "",
"success": false,
"warnList": ""
},
{
"code": "0005",
"data": "TestA00002",
"errors": [
{
"code": "600904",
"message": "referenceNo:TestA00002,Already exists in the system"
}
],
"message": "paramter error",
"messageId": "",
"success": false,
"warnList": ""
}
] |
2、"ordertype":"B2C"
[
{
"code": "0005",
"data": "XB03094",
"errors": [
{
"code": "600222",
"message": "referenceNo:XB03094 field value already exists and cannot be repeated"
}
],
"message": "paramter error",
"messageId": "",
"success": false,
"warnList": ""
}
] |
ps: test001是 订单唯一编码 ,区分不同订单的不同错误描述。批量操作 成功的不会返回,会直接保存。

isNeedConfirm