FlowRunner
Features Pricing
Theme
Start Free

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

No Yes No Yes No Yes Repeats for each item Get rates from eachcarrier Action Flag the order forops Asks a person Wait for ops' answer Action Read the order Action Start an empty ratelist Condition Buy it? Action Buy the label Code Pick the cheapestrate Condition Any rate found? Asks a person Ask ops beforebuying Action Confirm the orderis held Starts the flow New ShipStationorder Condition Label cost withinlimits? Code Write the question forops Action Find the ship-fromwarehouse Code Get the order readyto rate

Inside the loop: Get rates from each carrier

Action Get this carrier'srates Code Keep the carrier'srates If a step fails Skip a carrier withno rates

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

  1. New ShipStation order Checks ShipStation every 5 minutes for new orders that are awaiting shipment.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.