node-shipping-fedex
v1.0.0
Published
FedEx API for Node.JS
Downloads
698
Readme
Node Shipping FedEx
Install
npm i node-shipping-fedex
Usage
Init
import FedExAPI from 'node-shipping-fedex';
const fedex = new FedExAPI({
environment: 'sandbox', // or live
debug: true,
key: '',
password: '',
account_number: '',
meter_number: '',
imperial: true // set to false for metric
});
Address validation
See params here
fedex.addressvalidation(params, cb)
Availability
See params here
fedex.availability(params, cb)
Close
See params here
// Close ground shipment
fedex.groundclose(params, cb)
// Close smart shipment
fedex.smartpostclose(params, cb)
Pick up
See params here
// Get pickup availability
fedex.pickupAvailability(params, cb)
// Create pickup
fedex.smartpostclose(params, cb)
// Delete pickup
fedex.cancelPickup(params, cb)
Rates
See params here
fedex.rates(params, cb)
Shipment
See params here
// Create shipment
fedex.ship(params, cb)
// Delete shipment
fedex.deleteshipment(params, cb)
Tracking
See params here
fedex.track(params, cb)