ShipStation for Saleor: Live Rates at Checkout and Shipping Labels
Connect your existing ShipStation account to Saleor to show live rates from multiple carriers at checkout. When you fulfil an order, the app buys the label for the service your customer chose and adds the tracking number to the fulfillment.
If you ship with both UPS and FedEx, customers can compare live rates at checkout. The service they choose is the one the app uses to buy the shipping label when you fulfil the order.
The ShipStation app for Saleor connects Saleor 3.23 and newer to ShipStation API v2. Use your existing ShipStation account and choose which of its connected carriers to offer.
Multi-carrier shipping rates at checkout
The app registers a SHIPPING_LIST_METHODS_FOR_CHECKOUT webhook. When a storefront asks for delivery options, the app packs the checkout lines into one of your configured boxes, asks ShipStation for rates across every selected carrier in a single request, and returns them as app shipping methods.
The customer sees the carrier's own service names and prices. The app adds no margin and has no free-shipping thresholds, so the price at checkout is what ShipStation quoted.
Rates are not cached. Each checkout gets a fresh quote, which keeps prices current but means the carrier round-trip happens on every request. Saleor waits up to 20 seconds for the answer.
Labels on fulfillment
Creating a fulfillment buys the label for the carrier and service the customer picked. The app then calls orderFulfillmentUpdateTracking to put the tracking number on the fulfillment, without notifying the customer, so your own emails stay in control.
A few details keep this safe:
- The quote decides the label. The chosen carrier, service and configuration are stored in the shipping method's private metadata. The label is bought with the configuration that quoted the rate, even if the channel's configuration changed since.
- No double labels. The Saleor fulfillment ID is sent to ShipStation as
external_shipment_id, and the app checks for an existing label before buying one. - Orders that aren't the app's are left alone. If the shipping method didn't come from ShipStation, the fulfillment is skipped.
Cancelling a fulfillment voids its labels. Cancelling an order voids the labels of every fulfillment on it.
Labels on the order page
Staff with MANAGE_ORDERS get a ShipStation labels widget on the order page. It reads labels live from ShipStation and shows status, tracking number, cost, a download link and tracking events.
From there staff can void a label or issue a new one: get a real rate, check the price, then buy. Multi-package labels (up to 20 packages) work for services that allow them. A new label replaces the fulfillment's tracking number by default, and buying a second label for the same fulfillment within a minute asks for confirmation first.
Configuration
A configuration holds one ShipStation API key and everything needed to quote and ship with it:
- API key and carriers. The app lists the carriers on the key's account. Every service of a selected carrier is quoted.
- Ship-from address, validated on save. A phone number is required.
- Label format: PDF, PNG or ZPL, 4×6 inch.
- Packaging: product attributes for length, width, height and (optionally) weight, defaults for products that have none, and at least one box.
- Channels. Each channel gets one configuration; several channels can share one. A channel without a configuration gets no ShipStation rates.
Packaging decides what ShipStation is asked to quote. Each shipment goes in the smallest box it fits, or the largest box when nothing fits. An item's weight is the first one set of: the weight attribute on the variant, then on the product, then Saleor's own weight on the variant, product and product type, then the default item weight.
The ShipStation account currency must match the channel currency, or Saleor drops the methods.
Test before you ship
An API key starting with TEST_ puts the configuration in ShipStation's sandbox, where labels are free. The Dashboard marks it with a Sandbox badge. Sandbox keys come from the ShipStation API portal, not the regular ShipStation web app.
The app also ships a Playground: a small test storefront inside the Dashboard. It creates a checkout on an assigned channel, shows the packing preview and the quoted rates, and places an order. Fulfil that order to buy a sandbox label end to end, without a storefront.
The key prefix is the only switch between sandbox and live. Save a key without TEST_ and the next fulfillment buys real postage.