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
Inside the loop: Read the UPS feed
Inside the loop: Chase each label
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
- 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.
- Find labels with no pickup scan Keeps the labels made for a pickup day before today that have no pickup, exception or delivery scan.
- 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.
- 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.
- 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.
- 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.