FlowRunner
Features Pricing
Theme
Start Free

UPS labels with no pickup scan, kept or voided in ShipStation

Every morning this flow finds UPS labels in Quantum View that were never scanned at pickup and asks your shipping lead in Slack whether to keep each label or void it in ShipStation.

The prompt

Every weekday morning, read the last three days of activity from our UPS Quantum View subscription. Find the packages UPS has a label for, made for a pickup day before today, that UPS never scanned at pickup or anywhere after. For each one, find the label in ShipStation by tracking number, and skip it if it's already voided. Ask our shipping lead in Slack, with the order, ship-to and pickup date, whether to keep the label or void it, and wait for the answer. If they say void, void the label in ShipStation and post ShipStation's answer in the Slack thread. Otherwise say in the thread that the label stays.

FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.

The flow

Repeats for each item Read the UPS feed Repeats for each item Chase each label Code Find labels with nopickup scan Code Set the look-backwindow Action Start the activity list

Inside the loop: Read the UPS feed

Action Get UPS shipmentactivity Action Keep the list Code Add the page to thelist

Inside the loop: Chase each label

Yes No Yes Action Find the label inShipStation Action Confirm the labelstays Asks a person Ask the shippinglead Asks a person Wait for the shippinglead's answer Action Confirm the labelis voided Code Match the label Condition Void it? Action Void the label inShipStation Code Write the question forthe shipping lead Condition Label still live inShipStation?

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. Get UPS shipment activity Every morning, reads the last three days of your Quantum View subscription, page by page: the labels UPS received and every scan since.
  2. Find labels with no pickup scan Keeps the labels made for a pickup day before today that have no pickup, exception or delivery scan.
  3. Find the label in ShipStation Looks up each label by tracking number for the order number and ship date. Labels already voided, or made outside ShipStation, are left alone.
  4. Ask the shipping lead Posts the label to Slack with the order, ship-to, pickup date and reference, and two buttons, Keep the label and Void the label.
  5. Wait for the shipping lead's answer The run waits for the click. Keep the label says so in the Slack thread, and the next morning's check asks again while UPS still has no scan.
  6. Void the label in ShipStation Void the label voids it in ShipStation and posts ShipStation's answer in the Slack thread.

Before you turn it on

  • Enter the client ID and client secret of your UPS Developer Portal app (with the Quantum View product added) and your ShipStation API key and secret, and connect Slack.
  • In UPS Quantum View, set up a subscription that carries manifest and origin events, and exception and delivery events too, and put its name in the flow setting Pickup subscription.
  • Copy the URL of the block Wait for the shipping lead's answer into the flow setting Answer link. The Slack buttons open it.
  • Set Time zone to your warehouse time zone; it starts as America/Chicago. Days to look back starts at 3.
  • Pick your shipping channel in the three Slack steps.
  • Set the flow's schedule to run every weekday morning, once the previous day's pickup has been scanned.