A JavaScript library to interface UPS Brazil API for calculate quote, it works in the browser and with Node.js. The documentation can be found here.
Install the library
npm i ups-brazil-js
Import the library
import upsBrazil from 'ups-brazil-js';
const response = await upsBrazil(user,
password,
originZipCode,
destinationZipCode,
packageData,
invoiceValue,
timeout
);
Please, consider supporting my work as a lot of effort takes place to create this component! Thanks a lot.
This library provides a promise based interface for all functions. Before you can use the library, you need to provide authentication details which will be used through API calls.
For a detailed documentation, see our Documentation