深圳众瑞
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. 尾程打单

创建订单(UPS&UPSMI&DHL&FEDEX)

POST
/openapi/ots_order/submit

请求参数

Body 参数application/json

示例
{
    "orderInfoVO": {
        "customerOrderNo": "iuspsgat0513640",
        "portCode": "LAX",
        "productCode": "Fedex-Home-Delivery",
        "remark": "iuspsgat0102|gift * 2",
        "shippingWarehouseZipCode": "90301"
    },
    "orderPackageList": [
        {
            "lengthUnit": "CM",
            "orderGoodsList": [
                {
                    "allocationInfo": "usps",
                    "currency": "USD",
                    "declarePrice": 700,
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "christmas gifts",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 0.2
                }
            ],
            "packageHeight": 2,
            "packageLength": 5,
            "packageWeight": 0.015,
            "packageWidth": 2,
            "weightUnit": "KG"
        }
    ],
    "orderReceiveVO": {
        "address": "1212 Payne Avenue",
        "city": "Austin",
        "countryCode": "US",
        "name": "JASMIN GARCIA",
        "phone": "1234567806",
        "state": "TX",
        "zipCode": "78757"
    },
    "orderSenderVO": {
        "address": "704 Hindry Ave",
        "addressFlag": "N",
        "city": "Inglewood",
        "countryCode": "US",
        "name": "SHPPING DEPT",
        "phone": "1234567806",
        "state": "CA",
        "zipCode": "90301"
    }
}

请求示例代码

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": "iuspsgat0513640",
        "portCode": "LAX",
        "productCode": "Fedex-Home-Delivery",
        "remark": "iuspsgat0102|gift * 2",
        "shippingWarehouseZipCode": "90301"
    },
    "orderPackageList": [
        {
            "lengthUnit": "CM",
            "orderGoodsList": [
                {
                    "allocationInfo": "usps",
                    "currency": "USD",
                    "declarePrice": 700,
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "christmas gifts",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 0.2
                }
            ],
            "packageHeight": 2,
            "packageLength": 5,
            "packageWeight": 0.015,
            "packageWidth": 2,
            "weightUnit": "KG"
        }
    ],
    "orderReceiveVO": {
        "address": "1212 Payne Avenue",
        "city": "Austin",
        "countryCode": "US",
        "name": "JASMIN GARCIA",
        "phone": "1234567806",
        "state": "TX",
        "zipCode": "78757"
    },
    "orderSenderVO": {
        "address": "704 Hindry Ave",
        "addressFlag": "N",
        "city": "Inglewood",
        "countryCode": "US",
        "name": "SHPPING DEPT",
        "phone": "1234567806",
        "state": "CA",
        "zipCode": "90301"
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "data": [
        {
            "amount": 12.69,
            "billableQuantity": 0.015,
            "currencyCode": "USD",
            "customerOrderNo": "iuspsgat0513640",
            "orderFeeDetails": [
                {
                    "expenseType": "运费",
                    "fee": 7.98
                },
                {
                    "expenseType": "私人住宅费",
                    "fee": 2.8
                },
                {
                    "expenseType": "燃油费",
                    "fee": 1.91
                }
            ],
            "orderNo": "ZR2505202849301",
            "orderStatus": "SUCCESS",
            "trackingNo": "881389275149",
            "waybillUrl": "https://file.imgloballlc.cn/news/ots/ots/2025/05/20/881389275149_8c2455.pdf",
            "zoneCode": "6"
        }
    ]
}
修改于 2025-08-29 08:17:53
上一页
创建订单(USPS)
下一页
取消订单
Built with