Skip to content

MatthewKennedy/spree_shipstation

Repository files navigation

spree_shipstation

CI Standard Rb

The spree_shipstation integration connects your Spree stores with ShipStation, allowing ShipStation to pull shipments from your store, and when a shipment is sent, update the order with a tracking number and mark it as shipped.

Installation

  1. Add this extension to your Gemfile with this line:

    gem "spree_shipstation", github: "matthewkennedy/spree_shipstation", tag: "v2.0.0"
  2. Install the gem using Bundler

    bundle install
  3. Copy & run install the generator

    bundle exec rails generate spree_shipstation:install

Step 1: Configuring Spree

Visit the Integrations section of your Spree store and configure the ShipStation integration by creating a unique username and password.

Step 2: Configuring ShipStation

Create a new ShipStation store by visiting: Settings -> Selling Channels -> Stores -> Add Store, then selecting the Custom Store option.

Enter the following details:

  • Username: The username you created in Step 1.
  • Password: The password you created in Step 1.
  • URL to custom page: https://your-store-domain.com/shipstation.xml.

There are five shipment states for an order (= shipment) in ShipStation. These states do not necessarily align with Spree, but you can configure ShipStation to create a mapping for your specific needs. Here's the default mapping:

ShipStation description ShipStation status Spree status
Awaiting Payment unpaid pending
Awaiting Shipment paid ready
Shipped shipped shipped
Cancelled cancelled cancelled
On-Hold on-hold pending

Usage

There's nothing you need to do. Once properly configured, the integration just works!

Compatibility

This extension works with the following Spree versions:

  • 5.x

Testing

First bundle your dependencies:

bundle

To run the tests use:

bundle exec rake

Code Formatting

To check your code formatting with Standard Rb run:

bundle exec standardrb

To fix basic code formatting issues run:

bundle exec standardrb --fix

License

Copyright (c) 2025 Matthew Kennedy, released under the New BSD License.

About

Connect your Spree store to ShipStation.

Topics

Resources

License

Stars

Watchers

Forks