地址校验

接口URL #

/label/verifyAddress

请求方式 #

POST

请求Body参数 #

参数名 示例值 参数类型 是否必填 参数描述
countryCode US String 国家2位简写代码
stateCode CA String 州2位简写代码
city rowland height String 城市
addressLine1 test String 地址1
addressLine2 - String 地址2
postalCode 91748 String 邮编

请求示例 #

{
    "countryCode": "US",
    "stateCode": "WI",
    "city": "ONEIDA",
    "addressLine1": "test ",
    "addressLine2": "",
    "postalCode": "54155"
}

返回示例 #

返回值为200时校验成功返回data数据,返回值为400时无法找到匹配地址校验失败,请注意校验成功代表地址系统能找到对应的推荐地址,返回地址data数据为物流商地址校验系统返回的参考地址,信息并非与传入的地址完全一致,返回地址结果信息可能会对传入的个别信息修正完善,修正完善信息可能包含洲/城市/邮编/街道地址等,可自行进行二次辨别确认。

{
    "code": 200, 
    "data": {
        "addressLine1": "test",
        "addressLine2": "",
        "city": "ONEIDA",
        "classification": "RESIDENTIAL",  //地址类型:值为RESIDENTIAL时为住宅地址,值为COMMERCIAL时为商业地址
        "countryCode": "US",
        "postalCode": "54155-9263",
        "stateCode": "WI"
    },
    "message": ""
}