0

我一直在查看 AvaTax API 文档https://developer.avalara.com/api-reference/avatax/rest/v2/并想知道不仅验证地址而且发现税务机关数据的最佳方法? 推荐的方法是什么?

4

1 回答 1

0

您可以检索指定地址的地理位置和管辖/税务机关信息。

如果提供的地址可以解析,它将针对 Avalara 的地址验证系统进行解析。

请参阅: https ://developer.avalara.com/api-reference/avatax/rest/v2/methods/Addresses/ResolveAddress/

有两种方法可以获得结果:

获取 https://sandbox-rest.avatax.com/api/v2/addresses/resolve?line1=255 S King St %231800&city= Seattle®ion=wa&postalCode=98104&country=US&textCase=Mixed

或者

发布 https://sandbox-rest.avatax.com/api/v2/addresses/resolve

{
"line1": "255 S King St",
"textCase": "Mixed",
"city": "Seattle",
"region": "WA",
"country": "US",
"postalCode":"98104"
}     

上面使用的示例的结果将如下所示:

{
"address": {
    "textCase": "Mixed",
    "line1": "255 S King St",
    "city": "seattle",
    "region": "WA",
    "country": "US",
    "postalCode": "98104"
},
"validatedAddresses": [
    {
        "addressType": "HighRiseOrBusinessComplex",
        "line1": "255 S King St",
        "line2": "",
        "line3": "",
        "city": "Seattle",
        "region": "WA",
        "country": "US",
        "postalCode": "98104-3317",
        "latitude": 47.59821,
        "longitude": -122.33108
    }
],
"coordinates": {
    "latitude": 47.59821,
    "longitude": -122.33108
},
"resolutionQuality": "Intersection",
"taxAuthorities": [
    {
        "avalaraId": "2986",
        "jurisdictionName": "KING",
        "jurisdictionType": "County",
        "signatureCode": "BVVZ"
    },
    {
        "avalaraId": "61",
        "jurisdictionName": "WASHINGTON",
        "jurisdictionType": "State",
        "signatureCode": "BVPJ"
    },
    {
        "avalaraId": "167796",
        "jurisdictionName": "SEATTLE",
        "jurisdictionType": "City",
        "signatureCode": "BVXK"
    }
]
}
于 2021-08-31T21:43:46.907 回答