深圳众瑞
V1.0.0
  • V1.0.0
  • 1.0.1
  1. 尾程打单
深圳众瑞
V1.0.0
  • V1.0.0
  • 1.0.1
  • 对接方式(必读)
  • 尾程打单
    • 创建订单(USPS)
      POST
    • 创建订单(UPS&UPSMI&DHL&FEDEX)
      POST
    • 取消订单
      POST
    • 取消订单V2
      POST
    • 下载面单
      POST
    • 查询轨迹
      POST
    • scanform
      POST
    • 查询scanform
      POST
    • 修改重量
      POST
    • 订单试算
      POST
    • 查询订单
      POST
  • 清关
    • 清提派轨迹查询
      POST
  • 尾程轨迹
    • 注册运单号
      POST
    • 查询USPS轨迹
      POST
  1. 尾程打单

创建订单(USPS)

POST
/openapi/ots_order/submit

请求参数

Body 参数application/json

示例
{
    "orderInfoVO": {
        "customerOrderNo": "TEST0107002",
        "mailingDate": "2025-01-08 02:08:08",
        "productCode": "USPS_GA_ALL",
        "pushTrackType": "Y",
        "shippingWarehouseZipCode": "60007"
    },
    "orderPackageList": [
        {
            "lengthUnit": "CM",
            "orderGoodsList": [
                {
                    "currency": "USD",
                    "declarePrice": 10,
                    "goodsEnName": "GIFT GIFT",
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "GIFT GIFT",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 10
                },
                {
                    "currency": "USD",
                    "declarePrice": 10,
                    "goodsEnName": "TOY",
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "TOY",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 10
                }
            ],
            "packageHeight": 10,
            "packageLength": 2,
            "packageWeight": 0.01,
            "packageWidth": 6,
            "weightUnit": "KG"
        }
    ],
    "orderReceiveVO": {
        "address": "2301 HILLARY TRL",
        "city": "MANSFIELD",
        "countryCode": "US",
        "name": "John Wilson",
        "state": "TX",
        "zipCode": "76063"
    },
    "orderSenderVO": {
        "address": "311 E 72ND ST APT 5D",
        "addressFlag": "N",
        "city": "NEW YORK",
        "countryCode": "US",
        "name": "Annabelles Bible",
        "state": "NY",
        "zipCode": "10021"
    },
    "orderReturnReqVO": {
        "address": "147-06 176th ST",
        "city": "Jamaica",
        "name": "Shoshonna Gentile",
        "state": "NY",
        "zipCode": "11434"
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://im.imgloballlc.cn/prod-api/openapi/ots_order/submit' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orderInfoVO": {
        "customerOrderNo": "TEST0107002",
        "mailingDate": "2025-01-08 02:08:08",
        "productCode": "USPS_GA_ALL",
        "pushTrackType": "Y",
        "shippingWarehouseZipCode": "60007"
    },
    "orderPackageList": [
        {
            "lengthUnit": "CM",
            "orderGoodsList": [
                {
                    "currency": "USD",
                    "declarePrice": 10,
                    "goodsEnName": "GIFT GIFT",
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "GIFT GIFT",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 10
                },
                {
                    "currency": "USD",
                    "declarePrice": 10,
                    "goodsEnName": "TOY",
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "TOY",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 10
                }
            ],
            "packageHeight": 10,
            "packageLength": 2,
            "packageWeight": 0.01,
            "packageWidth": 6,
            "weightUnit": "KG"
        }
    ],
    "orderReceiveVO": {
        "address": "2301 HILLARY TRL",
        "city": "MANSFIELD",
        "countryCode": "US",
        "name": "John Wilson",
        "state": "TX",
        "zipCode": "76063"
    },
    "orderSenderVO": {
        "address": "311 E 72ND ST APT 5D",
        "addressFlag": "N",
        "city": "NEW YORK",
        "countryCode": "US",
        "name": "Annabelles Bible",
        "state": "NY",
        "zipCode": "10021"
    },
    "orderReturnReqVO": {
        "address": "147-06 176th ST",
        "city": "Jamaica",
        "name": "Shoshonna Gentile",
        "state": "NY",
        "zipCode": "11434"
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "msg": null,
    "data": [
        {
            "trackingNo": "9200190358939700001587",
            "orderNo": "ZR202501078101020",
            "customerOrderNo": "TEST0107002",
            "waybillUrl": "https://file.imgloballlc.cn/ots/ots/2025/01/07/9200190358939700001587_d72ddb.pdf",
            "billableQuantity": 0.01,
            "zoneCode": "5",
            "amount": 4.37,
            "orderFeeDetails": [
                {
                    "expenseType": "运费",
                    "fee": 4.37
                }
            ],
            "currencyCode": "USD",
            "orderStatus": "SUCCESS",
            "failReason": ""
        }
    ]
}
修改于 2025-04-24 10:23:55
上一页
对接方式(必读)
下一页
创建订单(UPS&UPSMI&DHL&FEDEX)
Built with