1. 订单
轻舟
  • 订单
    • 获取访问秘钥
      POST
    • 查询渠道
      POST
    • 询价
      POST
    • 费用试算
      POST
    • 创建订单
      POST
    • 查询订单
      POST
    • 取消订单
      POST
    • 打印标签
      POST
    • 查询轨迹
      POST
    • 查询基础资料
      POST
  • 设备
    • 推送数据
      POST
  1. 订单

创建订单

POST
/api/createOrder
20260702-请求参数增加字段type(1-个人,2-企业)
orderData.sender.type 寄件人类型
orderData.recipient.type 收件人类型

请求参数

Header 参数

Body 参数application/json

示例
{
    "orderData": {
        "toStatus": 1,
        "channel": "预报制单-轻舟测试",
        "currentWarehouse": "机场仓库",
        "customerNo": "",
        "senderCode": "",
        "sender": {
            "name": "杨丽芬1",
            "type": 2,
            "country": "CN",
            "province": "青海省",
            "city": "福宁市",
            "cityCode": "ABC",
            "zipcode": "449615",
            "tel": "15725321988",
            "phone": "060 3893 1767",
            "company": "incididunt",
            "address1": "安徽省 珠州市 仲巴县 公孙路57903号 25号门牌",
            "address2": "海南省 济海市 吐鲁番市 错桥4号 52号院",
            "taxType": "amet",
            "taxNumber": "13",
            "email": "345ert",
            "county": "345ert",
            "town": "345sdf"
        },
        "recipient": {
            "name": "米梓涵1",
            "type": 2,
            "country": "美国",
            "province": "上海市",
            "city": "长门市",
            "cityCode": "ADE",
            "zipcode": "508539",
            "company": "irure",
            "tel": "15128433035",
            "phone": "14973514516",
            "address1": "北京市 长门市 彭阳县 莘桥7号 72号楼",
            "address2": "湖南省 福头市 都安瑶族自治县 霜栋57号 16号门牌",
            "address3": "黑龙江省 成林市 河东区 梅街106号 27号楼",
            "shortAddress": "xdd123ert333",
            "taxType": "Ut elit",
            "taxNumber": "37",
            "email": "345ert",
            "county": "345ert",
            "town": "345sdf",
            "addressType": "私人地址",
            "houseNo": "345ert234",
            "iossNumber": "345sdf123",
            "eoriNumber": "345sdfsaas"
        },
        "volumeList":[
            {
				"boxNo": "1-3",
                "boxLength": 30,
                "boxWidth": 20,
                "boxHeight": 10,
                "boxWeight": 10,
                "fbaId":"321abc"
            },
			{
				"boxNo": "4-6",
                "boxLength": 40,
                "boxWidth": 30,
                "boxHeight": 20,
                "boxWeight": 10,
                "fbaId":"432abc"
            }
        ],
        "itemList": [
            {
                "boxNo": "1-3",
                "sku": "Lorem tempor",
                "cnName": "步娟1",
                "enName": "wqewerwet",
                "hscode": "9723423",
                "hscodeImport": "234123",
                "num": 10,
                "numUnit": "",
                "totalPrice": 100,
                "priceCurrency": "",
                "weight": 0.28,
                "origin": "",
                "brand": "nisi",
                "model": "sed esse quis",
                "enMaterial": "voluptate eiusmod ad",
                "cnMaterial": "voluptate anim dolore aliquip",
                "norms": "id non",
                "useto": "incididunt",
                "saleLink": "https://striking-simple.info/",
                "batteryFlag": 1,
                "magnetFlag": 1,
                "merchantPid": "234aa",
                "nonStdMfrPid": "433bb",
                "stdMfrPid": "45567cc"
            },
            {
                "boxNo": "4",
                "sku": "Lorem tempor",
                "cnName": "步娟4",
                "enName": "werwe",
                "customsCode": "2342345",
                "num": 10,
                "numUnit": "PCS",
                "price": 50,
                "priceCurrency": "欧元",
                "weight": 0.28,
                "origin": "sdsfwe21",
                "brand": "nisi",
                "model": "sed esse quis",
                "enMaterial": "voluptate eiusmod ad",
                "cnMaterial": "voluptate anim dolore aliquip",
                "norms": "id non",
                "useto": "incididunt",
                "saleLink": "https://striking-simple.info/",
                "batteryFlag": 0,
                "magnetFlag": 0
            },
            {
                "boxNo": "5",
                "sku": "Lorem tempor",
                "cnName": "步娟5",
                "enName": "werwe",
                "customsCode": "2342345",
                "numUnit": "PCS",
                "price": 16,
                "totalPrice": 100,
                "priceCurrency": "欧元",
                "weight": 0.28,
                "origin": "sdsfwe21",
                "brand": "nisi",
                "model": "sed esse quis",
                "enMaterial": "voluptate eiusmod ad",
                "cnMaterial": "voluptate anim dolore aliquip",
                "norms": "id non",
                "useto": "incididunt",
                "saleLink": "https://striking-simple.info/",
                "batteryFlag": 0,
                "magnetFlag": 0
            }
        ],
        "signature": "不需签名",
		"goodType": "",
		"declareType": "",
		"saleTerm": "",
		"exportReason": "",
		"insureType": "",
		"declareCurrency": "",
		"productType": "纺织品",
		"extraService": "服务1",
		"insureCost": 54,
		"freightCost": 56,
		"otherCost": 12,
		"declareCost": 244,
		"taxPayType": "到付",
		"taxPayAccount": "",
		"freightPayType": "预付",
		"freightPayAccount": "",
        "orderNote": "aute qui nisi sunt",
		"taxCountry": "美国",
		"taxZipCode": "Twe23423P",
		"freightCountry": "美国",
		"freightZipCode": "436wef",
		"batteryFlag": "1",
		"batteryType": "966",
		"counterfeitFlag": "0",
		"paperFlag": "1",
		"poaNumber": "T12314P",
		"fbaCode": "fba001a",
		"fbaId": "",
        "extendField": {
            "importerName": "test123",
            "importerType": 2,
            "importerCompany": "123",
            "importerCountry": "美国",
            "importerProvince": "sdf1",
            "importerCity": "sdf1",
            "importerCityCode": "ab",
            "importerZipcode": "testsd123",
            "importerTel": "312",
            "importerPhone": "test12323",
            "importerEmail": "12343",
            "importerAddress1": "sdf23",
            "importerAddress2": "dsf13432",
            "importerAddress3": "xcv3424",
            "importerCounty": "xcve2323",
            "importerTown": "wer2334",
            "importerTaxType": "4123423",
            "importerTaxNumber": "tesd234st123",
            "saturdayDelivery": "1",
            "packingType": "1",
            "vatCountryCode": "美国",
            "vatAddress1": "1人头2323423"
        },
        "trackNo":"",
        "base64Label":""
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/api/createOrder' \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJkYXRlIjoxNzg4ODU1ODYxMDExLCJzZWNyZXRLZXkiOiIzMmY2MGJkYTY5YWYwMjViYWYzOGY2MTdlNWViYTc0MiIsImN1c3RvbWVyQ29kZSI6InRlc3QifQ.iSGSFllqKhVtpooQvmXkmKktFixXqHL1-BxIe0rZtnmLW6Xwj_N2vPOOxJnYVcFGxFjJUQReUSTsQSkbdVKmQg' \
--header 'Content-Type: application/json' \
--data '{
    "orderData": {
        "toStatus": 1,
        "channel": "预报制单-轻舟测试",
        "currentWarehouse": "机场仓库",
        "customerNo": "",
        "senderCode": "",
        "sender": {
            "name": "杨丽芬1",
            "type": 2,
            "country": "CN",
            "province": "青海省",
            "city": "福宁市",
            "cityCode": "ABC",
            "zipcode": "449615",
            "tel": "15725321988",
            "phone": "060 3893 1767",
            "company": "incididunt",
            "address1": "安徽省 珠州市 仲巴县 公孙路57903号 25号门牌",
            "address2": "海南省 济海市 吐鲁番市 错桥4号 52号院",
            "taxType": "amet",
            "taxNumber": "13",
            "email": "345ert",
            "county": "345ert",
            "town": "345sdf"
        },
        "recipient": {
            "name": "米梓涵1",
            "type": 2,
            "country": "美国",
            "province": "上海市",
            "city": "长门市",
            "cityCode": "ADE",
            "zipcode": "508539",
            "company": "irure",
            "tel": "15128433035",
            "phone": "14973514516",
            "address1": "北京市 长门市 彭阳县 莘桥7号 72号楼",
            "address2": "湖南省 福头市 都安瑶族自治县 霜栋57号 16号门牌",
            "address3": "黑龙江省 成林市 河东区 梅街106号 27号楼",
            "shortAddress": "xdd123ert333",
            "taxType": "Ut elit",
            "taxNumber": "37",
            "email": "345ert",
            "county": "345ert",
            "town": "345sdf",
            "addressType": "私人地址",
            "houseNo": "345ert234",
            "iossNumber": "345sdf123",
            "eoriNumber": "345sdfsaas"
        },
        "volumeList":[
            {
				"boxNo": "1-3",
                "boxLength": 30,
                "boxWidth": 20,
                "boxHeight": 10,
                "boxWeight": 10,
                "fbaId":"321abc"
            },
			{
				"boxNo": "4-6",
                "boxLength": 40,
                "boxWidth": 30,
                "boxHeight": 20,
                "boxWeight": 10,
                "fbaId":"432abc"
            }
        ],
        "itemList": [
            {
                "boxNo": "1-3",
                "sku": "Lorem tempor",
                "cnName": "步娟1",
                "enName": "wqewerwet",
                "hscode": "9723423",
                "hscodeImport": "234123",
                "num": 10,
                "numUnit": "",
                "totalPrice": 100,
                "priceCurrency": "",
                "weight": 0.28,
                "origin": "",
                "brand": "nisi",
                "model": "sed esse quis",
                "enMaterial": "voluptate eiusmod ad",
                "cnMaterial": "voluptate anim dolore aliquip",
                "norms": "id non",
                "useto": "incididunt",
                "saleLink": "https://striking-simple.info/",
                "batteryFlag": 1,
                "magnetFlag": 1,
                "merchantPid": "234aa",
                "nonStdMfrPid": "433bb",
                "stdMfrPid": "45567cc"
            },
            {
                "boxNo": "4",
                "sku": "Lorem tempor",
                "cnName": "步娟4",
                "enName": "werwe",
                "customsCode": "2342345",
                "num": 10,
                "numUnit": "PCS",
                "price": 50,
                "priceCurrency": "欧元",
                "weight": 0.28,
                "origin": "sdsfwe21",
                "brand": "nisi",
                "model": "sed esse quis",
                "enMaterial": "voluptate eiusmod ad",
                "cnMaterial": "voluptate anim dolore aliquip",
                "norms": "id non",
                "useto": "incididunt",
                "saleLink": "https://striking-simple.info/",
                "batteryFlag": 0,
                "magnetFlag": 0
            },
            {
                "boxNo": "5",
                "sku": "Lorem tempor",
                "cnName": "步娟5",
                "enName": "werwe",
                "customsCode": "2342345",
                "numUnit": "PCS",
                "price": 16,
                "totalPrice": 100,
                "priceCurrency": "欧元",
                "weight": 0.28,
                "origin": "sdsfwe21",
                "brand": "nisi",
                "model": "sed esse quis",
                "enMaterial": "voluptate eiusmod ad",
                "cnMaterial": "voluptate anim dolore aliquip",
                "norms": "id non",
                "useto": "incididunt",
                "saleLink": "https://striking-simple.info/",
                "batteryFlag": 0,
                "magnetFlag": 0
            }
        ],
        "signature": "不需签名",
		"goodType": "",
		"declareType": "",
		"saleTerm": "",
		"exportReason": "",
		"insureType": "",
		"declareCurrency": "",
		"productType": "纺织品",
		"extraService": "服务1",
		"insureCost": 54,
		"freightCost": 56,
		"otherCost": 12,
		"declareCost": 244,
		"taxPayType": "到付",
		"taxPayAccount": "",
		"freightPayType": "预付",
		"freightPayAccount": "",
        "orderNote": "aute qui nisi sunt",
		"taxCountry": "美国",
		"taxZipCode": "Twe23423P",
		"freightCountry": "美国",
		"freightZipCode": "436wef",
		"batteryFlag": "1",
		"batteryType": "966",
		"counterfeitFlag": "0",
		"paperFlag": "1",
		"poaNumber": "T12314P",
		"fbaCode": "fba001a",
		"fbaId": "",
        "extendField": {
            "importerName": "test123",
            "importerType": 2,
            "importerCompany": "123",
            "importerCountry": "美国",
            "importerProvince": "sdf1",
            "importerCity": "sdf1",
            "importerCityCode": "ab",
            "importerZipcode": "testsd123",
            "importerTel": "312",
            "importerPhone": "test12323",
            "importerEmail": "12343",
            "importerAddress1": "sdf23",
            "importerAddress2": "dsf13432",
            "importerAddress3": "xcv3424",
            "importerCounty": "xcve2323",
            "importerTown": "wer2334",
            "importerTaxType": "4123423",
            "importerTaxNumber": "tesd234st123",
            "saturdayDelivery": "1",
            "packingType": "1",
            "vatCountryCode": "美国",
            "vatAddress1": "1人头2323423"
        },
        "trackNo":"",
        "base64Label":""
    }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{"code":200,"message":"成功","data":{"orderNo":"QZ26012152000052","customerNo":"260121035","trackNo":"","trackStatus":2,"downLabelUrl":"","base64Label":"","invoiceLabel":"","copyLabel":"","costList":[],"childLabelList":[{"boxNo":"","trackNo":"","labelUrl":""}]}}
修改于 2026-09-08 10:15:13
上一页
费用试算
下一页
查询订单
Built with