oms打单api
  1. 打单系统
oms打单api
  • 打单系统
    • 获取访问授权
      POST
    • 创建订单
      POST
    • 获取面单接口
      POST
    • 费用试算
      POST
    • 取消订单
      POST
    • 获取发货地址
      GET
    • Scan Form申请接口
      POST
  1. 打单系统

费用试算

POST
/api/svc/rates
在您提交订单前进行费用是算,可以活得该渠道的大概费用是多少,以便您对订单费用有一个初步的了解,同时也可以判断您该订单地址是否处于派送区

请求参数

Header 参数

Body 参数application/json

示例
{
  "sm_code": "UPSGROUNDJD1",
  "parcel_quantity": 1,
  "parcel_declared_value": 12,
  "oa_firstname": "ONT2",
  "oa_company": "AMAZON",
  "oa_street_address1": "1910 E central Ave",
  "oa_street_address2": "",
  "oa_postcode": "92408",
  "oa_state": "CA",
  "oa_city": "San Bernardino",
  "oa_country": "US",
  "oa_doorplate": "",
  "oa_telphone": "8882804331",
  "signature_service": "SSF",
  "box_list": [
    {
      "box_length": 11,
      "box_width": 11,
      "box_height": 11,
      "box_actual_weight": 10.000
    },
    {
      "box_length": 10,
      "box_width": 10,
      "box_height": 10,
      "box_actual_weight": 8.000
    }
  ],
  "shipper_address": {
        "shipper_name": "Sender Name",
        "shipper_company": "Company Name",
        "shipper_telphone": "88383748",
        "shipper_country": "US",
        "shipper_state_province": "CA",
        "shipper_city": "LA",
        "shipper_address1": "1910 E central Ave",
        "shipper_address2": "",
        "shipper_postal_code": "90001",
        "shipper_doorplate": "",
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/svc/rates' \
--header 'Content-Type: application/json' \
--data-raw '{
  "sm_code": "UPSGROUNDJD1",
  "parcel_quantity": 1,
  "parcel_declared_value": 12,
  "oa_firstname": "ONT2",
  "oa_company": "AMAZON",
  "oa_street_address1": "1910 E central Ave",
  "oa_street_address2": "",
  "oa_postcode": "92408",
  "oa_state": "CA",
  "oa_city": "San Bernardino",
  "oa_country": "US",
  "oa_doorplate": "",
  "oa_telphone": "8882804331",
  "signature_service": "SSF",
  "box_list": [
    {
      "box_length": 11,
      "box_width": 11,
      "box_height": 11,
      "box_actual_weight": 10.000
    },
    {
      "box_length": 10,
      "box_width": 10,
      "box_height": 10,
      "box_actual_weight": 8.000
    }
  ],
  "shipper_address": {
        "shipper_name": "Sender Name",
        "shipper_company": "Company Name",
        "shipper_telphone": "88383748",
        "shipper_country": "US",
        "shipper_state_province": "CA",
        "shipper_city": "LA",
        "shipper_address1": "1910 E central Ave",
        "shipper_address2": "",
        "shipper_postal_code": "90001",
        "shipper_doorplate": "",
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 200,
    "result": {
        "sm_code": "FEDEX-OVERSIZE",
        "address_type_text": "Commercial",
        "address_type": 0,
        "currency_code": "USD",
        "charge_weight": 35.2739619,
        "total_charge": "9.29",
        "shipping_charge": "8.03",
        "charge_detail": [
            {
                "charge_desc": "运输费",
                "amount": "8.03"
            },
            {
                "charge_desc": "燃油附加费",
                "amount": "1.26"
            }
        ]
    },
    "msg": "Success"
}
🟠400请求有误
修改于 2024-11-22 11:40:15
上一页
获取面单接口
下一页
取消订单
Built with