Catch bad Shopify addresses before you buy a label

By General Input

When a new Shopify order arrives, we verify the shipping address and alert your fulfillment team about anything undeliverable before a label gets bought.

Integrations

  • EasyPost
  • Shopify
  • Slack Bot

Type

Deterministic Code

Categories

  • Operations

This is a deterministic code workflow that validates the shipping address on every new order before a label is bought. Trigger it with a Shopify webhook that fires whenever a new order is created (order created).

When a new order comes in, take the shipping address off the order: the recipient name, street lines, city, state or province, postal code, and country.

Send that address to EasyPost using Create and Verify Address, which creates the address object and runs delivery verification in a single request. Read the verification result it returns, including whether delivery verification succeeded, any verification errors, and the normalized address EasyPost produces.

Branch on the result. If the address verifies cleanly with no errors, stop and do nothing so clean orders pass through silently. If EasyPost flags the address as undeliverable or returns verification errors, continue with the two steps below.

First, use Shopify Update Order to add an "address-check-failed" tag to the order while keeping any existing tags, and append a short note saying EasyPost could not verify the shipping address so the team should review it before buying a label.

Second, post an alert to our fulfillment Slack channel using the Slack Bot Send a Message action. Include the order number, the customer name, the exact address the customer entered, and any suggested correction EasyPost returned (its normalized version of the address). Format it so a fulfillment teammate can spot the problem and fix the order quickly.

The goal is to catch bad addresses before a shipping label is bought, cutting failed deliveries and return fees. Only orders that fail verification should generate a tag, a note, and a Slack alert.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them