0.0.14 • Published 8 years ago

shipwire-node-api v0.0.14

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

#Shipwire Node.js API Library

Status

Stability: 1 - Experimental

shipwire-node-api is a node.js module for asynchronously communicating with the Shipwire APIs.

Getting Started

Use NPM to download and install the API

npm install shipwire-node-api

Then include the Shipwire API in your script

// Load Shipwire API
var Shipwire = require('shipwire-node-api').Shipwire;
// Configure Shipwire api
module.exports = new Shipwire(<username>, <password>, <sandbox>);

##Orders ###orders.create

Creates a new Order

	Shipwire.orders.create({
		
		orderNo:'foobar1',
		externalId: 'rFoobar1',
		items: [<array_of_items>]

	}, function(err, order){
		//asynchronously called
		if(err){
			//handle err
		}
		//handle order
	});

###orders.findOne

Finds an Order

###orders.find Finds multiple Orders

###orders.cancel Cancels an Order

###orders.holds Get the list of holds, if any, on an Order

###orders.holdsClear Clear holds on an Order

###orders.items Get the contents of an Order

###orders.returns Get any returns associated with an Order

###orders.splitOrders Get splitOrders information about an Order

###orders.trackings Get Tracking Information of an Order

###orders.update Modifies Information about an Order

##Change Log

###v0.0.12 POST/PUT as JSON. Order API complete.

###v0.0.3 Standarize output

###v0.0.2 Add Support for Order API

###v0.0.1 Initial Upload of API

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.1

9 years ago