You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

UPS Rating API集成报错:返回Invalid Authentication Information

集成UPS Rating API时的认证错误问题

我在集成UPS Rating API时碰到了认证问题,具体信息如下:

请求URL:https://wwwcie.ups.com/api/rating/v1/Rate?additionalinfo=string

请求体:

{
    "RateRequest": {
        "shipper": {
            "address": {
                "postal_code": "12345",
                "country_code": "US"
            }
        },
        "shipTo": {
            "address": {
                "postal_code": "54321",
                "country_code": "US"
            }
        },
        "shipment": {
            "package": {
                "dimensions": {
                    "unit_of_measurement": "IN",
                    "length": "10",
                    "width": "6",
                    "height": "4"
                },
                "weight": {
                    "unit_of_measurement": "LBS",
                    "weight": "1"
                }
            }
        }
    }
}

返回错误:

{
    "response": {
        "errors": [
            {
                "code": "250002",
                "message": "无效的认证信息。"
            }
        ]
    }
}

尽管已经在请求头中传入了access-token,但始终返回上述认证无效的错误。

内容的提问来源于stack exchange,提问作者Prashanth v

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.23 18:33:07