Easyship Node.js API wrapper
You will need to register for a Easyship account to use the Easyship API. It's free to sign up, free to use the API. Only pay to print a live label, test labels are free.
Installation:
You can install this package by running the following command:
npm install easyship
Usage:
Initialize your easyship
instance using your API Access Token
provided to you on the API
page in the Easyship Dashboard.
const easyship = '<ACCESS_TOKEN>'; easyshiprate;
Method Overview
Shipping API
HTTP Method | Endpoint | Methods |
---|---|---|
POST | /rate/v1/rates | easyship.rate.create() |
POST | /shipment/v1/shipments | easyship.shipment.create() |
POST | /shipment/v1/shipments/create_and_buy_label | easyship.shipment.createLabel() |
PATCH | /shipment/v1/shipments/{easyship_shipment_id} | easyship.shipment.update() |
GET | /shipment/v1/shipments/{easyship_shipment_id} | easyship.shipment.retrieve() |
GET | /shipment/v1/shipments | easyship.shipment.list() |
DELETE | /shipment/v1/shipments/{easyship_shipment_id} | easyship.shipment.del() |
PATCH | /shipment/v1/shipments/update_warehouse_state | easyship.shipment.updateWarehouse() |
POST | /label/v1/labels | easyship.label.create() |
GET | /pickup/v1/pickup_slots/{courier_id} | easyship.pickup.retrieve() |
POST | /pickup/v1/pickups | easyship.pickup.create() |
POST | /pickup/v1/direct_handover | easyship.pickup.directHandover() |
GET | /track/v1/status | easyship.track.status() |
GET | /track/v1/checkpoints | easyship.track.checkpoints() |
GET | /reference/v1/categories | easyship.categories.list() |
Check example.js for more detail.
Credits
This project was created from stripe-node.
Documentation
Please see https://developers.easyship.com/reference documentation.