---
title: "Shopify order to Sendcloud label, tracked in AfterShip | FlowRunner flow"
description: "When a Shopify order comes in, this flow buys the Sendcloud label with the cheapest method for its destination and weight, and registers the tracking number in AfterShip."
url: https://flowrunner.ai/flows/sendcloud-order-to-label
date_published: 2026-11-16
date_modified: 2026-11-16T14:50:08-08:00
---

# Shopify order to Sendcloud label, tracked in AfterShip

When a Shopify order comes in, this flow buys the Sendcloud label with the cheapest method for its destination and weight, and registers the tracking number in AfterShip.

## The prompt

When a new order comes in on Shopify, get its shipping address and weight. Check that the address is complete, with a name, street and house number, city, postal code, country and an email, and that the products have a weight. If anything is missing, post the order to our warehouse channel in Slack so someone labels it by hand. Otherwise, find the Sendcloud shipping methods that go to that country and take that weight, pick the cheapest, and buy the label in Sendcloud. If Sendcloud refuses the label, tell the warehouse in Slack too. Then register the tracking number with AfterShip so we can follow the delivery.

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

## The flow

[Import this flow](https://flowrunner.ai/downloads/prompt-to-flow/sendcloud-order-to-label.json)

-   [Sendcloud](https://flowrunner.ai/integrations/sendcloud)
-   [Shopify](https://flowrunner.ai/integrations/shopify)
-   [Slack](https://flowrunner.ai/integrations/slack)
-   [AfterShip](https://flowrunner.ai/integrations/aftership)

Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. [How importing works](https://docs.flowrunner.ai/manage/flows#importing-a-flow)

## What each step does

1.  New Shopify order Checks your Shopify store for new orders every minute.
2.  Get the order Reads the order's shipping address, email and total weight from Shopify.
3.  Check the address and weight Makes sure the address has a name, street and house number, city, postal code and country, plus a state or province for the US and Canada, that there is an email for tracking updates, and that the order has a weight. Shopify's grams become the kilograms Sendcloud expects.
4.  Address complete? An order with something missing goes to the warehouse in Slack with the reason, so someone labels it by hand. A complete one goes on to Sendcloud.
5.  Pick the cheapest method Lists the Sendcloud shipping methods for the destination country and picks the cheapest one whose weight range fits the parcel. When none fits, the warehouse hears about it in Slack.
6.  Buy the label in Sendcloud Creates the parcel with the label requested, so Sendcloud buys the label and returns the tracking number. If Sendcloud or the carrier refuses it, the warehouse gets the error in Slack.
7.  Track it in AfterShip Registers the tracking number in AfterShip under the Shopify order number, so delivery monitoring starts as soon as the label exists.

## Need a custom shipping labels automation? Our team can build it for you.

Tell us the process. Our implementation team at Midnight Flow builds it around how you work, tests it on your real data, and keeps it running, in your own FlowRunner workspace.

[Have us build it](https://midnightflow.ai/packages/custom?utm_source=flowrunner.ai&utm_medium=referral&utm_campaign=general&utm_content=flows.aside&utm_term=sendcloud-order-to-label)

## Before you turn it on

-   Connect your Shopify and Slack accounts, and enter your Shopify store domain.
-   Enter your Sendcloud public key and secret key, and your AfterShip API key.
-   Labels ship from your default sender address in Sendcloud, so check that it is set.
-   Give every product a weight in Shopify. The flow labels each order at its products' total weight.
-   Pick the Slack channel your warehouse watches in Tell the warehouse to label it by hand.

[Everything FlowRunner does with Sendcloud](https://flowrunner.ai/integrations/sendcloud)

---
Markdown version of https://flowrunner.ai/flows/sendcloud-order-to-label. Site index: https://flowrunner.ai/llms.txt
