Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easyship

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easyship

A node client for Easyship

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
57
decreased by-13.64%
Maintainers
1
Weekly downloads
 
Created
Source

Easyship Node.js API wrapper

npm version codecov Build Status

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 = require('easyship')('<ACCESS_TOKEN>');

  easyship.rate.create({
    origin_postal_code: '60605',
    destination_country_alpha2: 'US',
    destination_postal_code: '60605',
    taxes_duties_paid_by: 'Sender',
    is_insured: false,
    apply_shipping_rules: true,
    items: [{
      actual_weight: 1.2,
      height: 10,
      width: 15,
      length: 20,
      category: 'mobiles',
      declared_currency: 'SGD',
      declared_customs_value: 100,
    }],
  }).then(({ rates }) => {
    console.log(rates);
  });

Method Overview

Shipping API

HTTP MethodEndpointMethods
POST/rate/v1/rateseasyship.rate.create()
POST/shipment/v1/shipmentseasyship.shipment.create()
POST/shipment/v1/shipments/create_and_buy_labeleasyship.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/shipmentseasyship.shipment.list()
DELETE/shipment/v1/shipments/{easyship_shipment_id}easyship.shipment.del()
PATCH/shipment/v1/shipments/update_warehouse_stateeasyship.shipment.updateWarehouse()
POST/label/v1/labelseasyship.label.create()
GET/pickup/v1/pickup_slots/{courier_id}easyship.pickup.retrieve()
POST/pickup/v1/pickupseasyship.pickup.create()
POST/pickup/v1/direct_handovereasyship.pickup.directHandover()
GET/track/v1/statuseasyship.track.status()
GET/track/v1/checkpointseasyship.track.checkpoints()
GET/reference/v1/categorieseasyship.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.

Sponsor

Buy Me A Coffee

Keywords

FAQs

Package last updated on 28 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc