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

订单试算

POST
/openapi/ots_order/price/trial
试算价格

请求参数

Body 参数application/json

示例
{
    "orderInfoVO": {
        "customerOrderNo": "uspsor012008",
        "productCode": "USPS-GA",
        "shippingWarehouseZipCode": "90007"
    },
    "orderPackageList": [
        {
            "lengthUnit": "CM",
            "orderGoodsList": [
                {
                    "allocationInfo": "usps",
                    "currency": "USD",
                    "declarePrice": 10,
                    "goodsEnName": "GIFT GIFT",
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "GIFT GIFT",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 10
                }
            ],
            "packageHeight": 2,
            "packageLength": 2,
            "packageWeight": 0.015,
            "packageWidth": 2,
            "weightUnit": "KG",
            "packageProperty": ""
        }
    ],
    "orderReceiveVO": {
        "address": "26 SCENIC DRIVE APT H",
        "city": "CINDY MOURECHUVINIK",
        "countryCode": "US",
        "name": "JASMINE GARCIA",
        "phone": "1234567806",
        "state": "NY",
        "zipCode": "10520"
    },
    "orderReturnReqVO": {
        "address": "147-06 176 th Street",
        "city": "Jamaica",
        "name": "TERSA JAUKEN",
        "state": "NY",
        "zipCode": "11434"
    },
    "orderSenderVO": {
        "address": "5215 S BOYLE AVE",
        "addressFlag": "N",
        "city": "VERNON",
        "countryCode": "US",
        "name": "MARK DAWNSTHON",
        "phone": "1234567806",
        "state": "CA",
        "zipCode": "90058"
    }
}

请求示例代码

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/price/trial' \
--header 'Content-Type: application/json' \
--data-raw '{
    "orderInfoVO": {
        "customerOrderNo": "uspsor012008",
        "productCode": "USPS-GA",
        "shippingWarehouseZipCode": "90007"
    },
    "orderPackageList": [
        {
            "lengthUnit": "CM",
            "orderGoodsList": [
                {
                    "allocationInfo": "usps",
                    "currency": "USD",
                    "declarePrice": 10,
                    "goodsEnName": "GIFT GIFT",
                    "goodsHeight": 3,
                    "goodsLength": 4,
                    "goodsName": "GIFT GIFT",
                    "goodsWeight": 0.02,
                    "goodsWidth": 2,
                    "num": 1,
                    "unitPrice": 10
                }
            ],
            "packageHeight": 2,
            "packageLength": 2,
            "packageWeight": 0.015,
            "packageWidth": 2,
            "weightUnit": "KG",
            "packageProperty": ""
        }
    ],
    "orderReceiveVO": {
        "address": "26 SCENIC DRIVE APT H",
        "city": "CINDY MOURECHUVINIK",
        "countryCode": "US",
        "name": "JASMINE GARCIA",
        "phone": "1234567806",
        "state": "NY",
        "zipCode": "10520"
    },
    "orderReturnReqVO": {
        "address": "147-06 176 th Street",
        "city": "Jamaica",
        "name": "TERSA JAUKEN",
        "state": "NY",
        "zipCode": "11434"
    },
    "orderSenderVO": {
        "address": "5215 S BOYLE AVE",
        "addressFlag": "N",
        "city": "VERNON",
        "countryCode": "US",
        "name": "MARK DAWNSTHON",
        "phone": "1234567806",
        "state": "CA",
        "zipCode": "90058"
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "msg": null,
    "data": [
        {
            "customerOrderNo": "uspsor012008",
            "billableQuantity": 0.015,
            "zoneCode": "8",
            "amount": 4.07,
            "orderFeeDetails": [
                {
                    "expenseType": "DHL-燃油费",
                    "fee": 0.25
                },
                {
                    "expenseType": "运费",
                    "fee": 3.82
                }
            ],
            "currencyCode": "USD"
        }
    ]
}
修改于 2025-08-29 08:17:53
上一页
修改重量
下一页
查询订单
Built with