版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

POST 

POST /v1/openApi/packetOrder/b2c/createOrders HTTP/1.1
Content-Type: application/json
Accept: application/json
User-Agent: Mozilla 5.0

lang:zh_CN

Host: http://b2bcfs-qa.etowertech.com/api/supplier-service

X-WallTech-Date: Thu, 06 Aug 2020 06:21:24 GMT
Authorization: WallTech testLvs2jdug2qIoRsJyuxs:2THPh5_j4OTYUGdinstTC4nYqDE=


...

{
"order": [
{
"channelCode": "UBI.CN2US.AC.GENERAL.LIGHT",
"channelOption": "B2Cchanneloption",
"collectionInfo":

{
"addressCode": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "", "state": "",
"taxId": "",
"taxId1": "",
"zipCode": "" } }

,
"collectionType": "",
"consignee":

{
"addressCode": "",
"addressLine1": "street9230",
"addressLine2": "8349hao",
"addressLine3": "345shi",
"city": "testcity",
"company": "testcompany",
"countryCode": "us",
"district": "testdistrict",
"email": "testemail@123.com",
"extendData": null,
"name": "Mack",
"phone": "36247938384",
"state": "teststate",
"taxId": "testtaxid",
"taxId1": "testtaxid1",
"zipCode": "8238juej" }

},
"extendData":

{
"extend": "extend" }

},
"facility": "B2C",
"incoterm": "DDP",
"injectPortCode": "",
"insuranceOrNot": "",
"orderType": "B2C",
"originPortCodeorderUniqueNumber":"test001",
"parcelsoriginPortCode": ["",
"parcels": [
{
"batteryType": "false",
"consignmentId": "",
"dangerousGoods": false,
"description": "goodscn",
"descriptionEn": "goodsen",
"dimensionUnit": "CM",
"extendData": null,
"height": "10",
"invoiceCurrencyCode": "USD",
"invoiceValue": "35",
"insurance": [

{
"insuranceAmount": "",
"insuranceCurrencyCode": "",
"insuranceType": "",
"modifiedAccount": "",
"type": "",
"typeDesc": ""
}

],
"items": [

{
"extendData": null,
"hsCode": "111",
"itemDesc": "goodscn",
"itemDescEn": "",
"itemNumber": "Amireuxtest",
"matertial": "testmatertial",
"originCountryCode": "cn",
"picture": "",
"quantity": "1",
"quantityUnit": "个",
"salesURL": "testsalesurl",
"sku": "testgoods",
"unitPrice": "10",
"usage": "testusage",
"weight": "5"
}

],
"length": "25",
"referenceNo": "APITES018APITES023",
"referenceNo1": "",
"referenceNo2": "",
"shippingInstruction": "",
"sortCode": "",
"trackingNo": "",
"weight": "5",
"weightUnit": "KG",
"width": "25"
}
],
"platform": "testplatform",
"remark": "testremark",
"returnAddress":

{
"addressCode": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "销毁",
"state": "",
"taxId": "",
"taxId1": "",
"zipCode": "" } }

,
"shipper":

{
"addressCode": "",
"addressLine1": "sipinglujiedao",
"addressLine2": "gaoxinlu900hao",
"addressLine3": "190shi",
"city": "shanghaishi",
"company": "shippercompany",
"countryCode": "cn",
"district": "yangpuqu",
"email": "shippertest@123.com",
"extendData": null,
"name": "xiaozhang",
"phone": "18893043453",
"returnOption": "", "state": "shanghai",
"taxId": "shippertaxid",
"taxId1": "shippertaxid1",
"zipCode": "300210" } }

,
"signatureOrNot": ""
},
{
"channelCode": "UBI.CN2US.LHEST.STD.EXPRESS.CV",
"channelOption": "B2Cchanneloption",
"collectionInfo":

{
"addressCode": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "", "state": "",
"taxId": "",
"taxId1": "",
"zipCode": "" } }

,
"collectionType": "",
"consignee":

{
"addressCode": "",
"addressLine1": "street9230",
"addressLine2": "8349hao",
"addressLine3": "345shi",
"city": "testcity",
"company": "testcompany",
"countryCode": "us",
"district": "testdistrict",
"email": "testemail@123.com",
"extendData": null,
"name": "Mack",
"phone": "36247938384",
"state": "teststate",
"taxId": "testtaxid",
"taxId1": "testtaxid1",
"zipCode": "8238juej" }

},
"extendData":

{
"extend": "extend" }

},
"facility": "B2C",
"incoterm": "DDP",
"injectPortCode": "",
"insuranceOrNot": "",
"orderType": "B2C",
"orderUniqueNumber":"test001",
"originPortCode": "",
"parcels": [
{
"batteryType": "false",
"consignmentId": "",
"dangerousGoods": false,
"description": "goodscn",
"descriptionEn": "goodsen",
"dimensionUnit": "CM",
"extendData": null,
"height": "10",
"invoiceCurrencyCode": "USD",
"invoiceValue": "35",
"insurance": [

{
"insuranceAmount": "",
"insuranceCurrencyCode": "",
"insuranceType": "",
"modifiedAccount": "",
"type": "",
"typeDesc": ""
}

],
"items": [

{
"extendData": null,
"hsCode": "111",
"itemDesc": "goodscn",
"itemDescEn": "",
"itemNumber": "Amireuxtest",
"matertial": "testmatertial",
"originCountryCode": "cn",
"picture": "",
"quantity": "1",
"quantityUnit": "个",
"salesURL": "testsalesurl",
"sku": "testgoods",
"unitPrice": "10",
"usage": "testusage",
"weight": "5"
}

],
"length": "25",
"referenceNo": "APITES019APITES024",
"referenceNo1": "",
"referenceNo2": "",
"shippingInstruction": "",
"sortCode": "",
"trackingNo": "",
"weight": "5",
"weightUnit": "KG",
"width": "25"
}
],
"platform": "testplatform",
"remark": "testremark",
"returnAddress":

{
"addressCode": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"city": "",
"company": "",
"countryCode": "",
"district": "",
"email": "",
"extendData": null,
"name": "",
"phone": "",
"returnOption": "销毁",
"state": "",
"taxId": "",
"taxId1": "",
"zipCode": "" } }

,
"shipper":

{
"addressCode": "",
"addressLine1": "sipinglujiedao",
"addressLine2": "gaoxinlu900hao",
"addressLine3": "190shi",
"city": "shanghaishi",
"company": "shippercompany",
"countryCode": "cn",
"district": "yangpuqu",
"email": "shippertest@123.com",
"extendData": null,
"name": "xiaozhang",
"phone": "18893043453", "returnOption": "",
"state": "shanghai",
"taxId": "shippertaxid",
"taxId1": "shippertaxid1",
"zipCode": "300210" } }

,
"signatureOrNot": ""
}
]
}


返回样例


成功样例

{     
"code":   "0",     
"data":  [],     {},
"errors":   "",     
"message":   "",     
"messageId":   "",     
"success":  truetrue,     
"warnList":   ""
}



失败样例

{
    "code":   "0",
    "data":   {
        "1001test002":   [            {
                

{ "code": "600222", "message": "referenceNo APITES032Field already exists, cannot be repeated" }

],
"test001": [

{ "code":   "600222",
                 "message":  "referenceNo B2C002字段已存在,不可重复"
            "referenceNo APITES033Field already exists, cannot be repeated" }

        ]
    },
    "errors":   "",
    "message":   "",
    "messageId":   "",
    "success":   true,
    "warnList":   ""
}

ps: 1001是 订单唯一编码 ,区分不同订单的不同错误描述。批量操作 成功的不会返回,会直接保存。

...