A JavaScript library to interface with UPS API, it works with Node.js. The documentation can be found here.
This library its in early stages, so it doesn't have interfaces for all UPS features (Your PR is very welcome).
With this library you can:
- Create Shipment
Install the library
npm i ups-js
Import the library
import UPS from 'ups-js';
const config = {
username: 'UPSUSERNAME',
password: 'UPSUSERNAME',
licenseNumber: 'UPSACCESSKEY',
isSandbox: true
};
const ups = new UPS(config);
const response = await ups.shipment.create({...});
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.
Please, consider supporting my work as a lot of effort takes place to create this repo! Thanks a lot.