taxjar / taxjar-node

Sales Tax API Client for Node
https://developers.taxjar.com/api/reference/?javascript
MIT License
53 stars 24 forks source link

validateAddress doesn't work. Endpoint 404 error is thrown. #70

Open MikeSpock opened 1 year ago

MikeSpock commented 1 year ago

validateAddress fails permanently.

 const client = new Taxjar({
    apiUrl: process.env.TAXJAR_API_URL,
    apiKey: process.env.TAXJAR_TOKEN
});

 client.validateAddress({
        country: 'US',
        state: 'AZ',
        zip: '85297',
        city: 'Gilbert',
        street: '3301 South Greenfield Rd'
    }).then(res => {
        console.log("RES",res)
        res.addresses; // Addresses object
    }).catch(e => {
        console.error(e)
    });

Throws and error:

    TaxjarError: Not Found - No such route 'POST /v2/addresses/validate'
    at proxyError (/test/node_modules/taxjar/dist/util/request.js:9:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  error: 'Not Found',
  detail: "No such route 'POST /v2/addresses/validate'",
  status: 404
}
genio commented 2 months ago

Any chance of someone looking into this? It happens for me on the testing endpoint.