shipstation-node
TypeScript icon, indicating that this package has built-in type declarations

0.24.0 • Public • Published

shipstation-node

Unofficial Shipstation API Wrapper for Node.js

This project is currently a work in progress and contributors are welcome! 👋

Usage

  • Set the following env variables for our Shipstation account:
    • SS_API_KEY (your Shipstation API Key)
    • SS_API_SECRET (your Shipstation API secret)
import ShipStation from 'shipstation-node'

// Create instance
const shipstation = new ShipStation()

// Get all orders
const orders = await shipstation.orders.getAll()

// Get order by id
const order = await shipstation.orders.get(1244)
  • Optionally, set Shipstation credentials through the options:
    • apiKey (your Shipstation API Key)
    • apiSecret (your Shipstation API secret)
const shipstation = new ShipStation({
  apiKey: '<key>',
  apiSecret: '<secret>'
})
  • Optionally, Retry Shipstation API failures via:
    • Set retry true to enable default options
    • OR provide an object with any options supported by axios-retry
const shipstation = new ShipStation({
    // default retry config
    retry: true,

    // OR custom 
    retry: { retries: 3 }
})

Readme

Keywords

none

Package Sidebar

Install

npm i shipstation-node

Weekly Downloads

689

Version

0.24.0

License

MIT

Unpacked Size

107 kB

Total Files

99

Last publish

Collaborators

  • kjaenicke