New ShipStation order to the cheapest label, with a cost check
Each new ShipStation order gets live rates from your carriers and the cheapest label. A label that costs too much for the order goes to ops in Slack before it is bought.
The prompt
When a new order comes into ShipStation awaiting shipment, get live rates for it from each of my carriers, from the warehouse it ships from, and pick the cheapest service. If the cheapest label is $25 or less and no more than 30% of the order total, buy the label for the order in ShipStation. If it costs more, ask ops in Slack with the order, the price, the share of the order value and the cheapest options, with Buy the label and Hold for review buttons, and wait for the answer. If no carrier returns a rate, tell ops in Slack so someone buys the label by hand.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Inside the loop: Get rates from each carrier
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- New ShipStation order Checks ShipStation every 5 minutes for new orders that are awaiting shipment.
- Read the order Pulls the full order from ShipStation, with the ship-to address, weight and order total, and finds the warehouse it ships from.
- Get rates from each carrier Asks each carrier in your list for live rates on this order. A carrier that returns no rate is skipped.
- Pick the cheapest rate Picks the lowest price across all carriers and checks it against your price limit and your share of order value limit. When no carrier returned a rate, ops gets a Slack message so someone buys the label by hand.
- Ask ops before buying A label over either limit goes to ops in Slack: the order, the price, what share of the order it eats, the three cheapest services, and two buttons, Buy the label and Hold for review.
- Wait for ops' answer The run waits for the click. Hold for review buys nothing, leaves the order awaiting shipment and says so in the Slack thread.
- Buy the label Buys the label for the order in ShipStation on the chosen carrier and service, which marks the order shipped. Labels within your limits get here without anyone asked.
Before you turn it on
- Enter your ShipStation API key and API secret, and connect your Slack account.
- Set the flow setting Carriers to the ShipStation carrier codes you ship with, for example stamps_com, ups and fedex.
- Change the flow settings Most a label may cost and Most share of order value if $25 and 30% don't fit your margins.
- Copy the URL of the block Wait for ops' answer into the flow setting Answer link. The Slack buttons open it.
- Pick your Slack channel in the three Slack steps, and make sure your orders carry a weight in ShipStation, since rates are quoted on it.