---
title: "How to automate pickup point and COD orders with Shopify Flow"
description: "Use the ShipDock triggers Pickup point selected, Pickup point removed and COD marked as paid in Shopify Flow to tag orders, notify your team and more."
url: https://help.shipdockapp.eu/en/articles/11764764-how-to-automate-pickup-point-and-cod-orders-with-shopify-flow
collection: "Automation"
updated: 2026-11-19
language: en
---

# How to automate pickup point and COD orders with Shopify Flow

Use the ShipDock triggers Pickup point selected, Pickup point removed and COD marked as paid in Shopify Flow to tag orders, notify your team and more.

ShipDock adds three triggers to Shopify Flow, for a pickup point saved to an order, a pickup point removed and a cash on delivery order marked as paid. Use them to tag orders or alert your warehouse or accounting.

## Before you start

-   Install the Shopify **Flow** app. You need a paid ShipDock plan with the pickup point widget set up.
    
-   **COD marked as paid** also needs the Full plan and the setting **Upon delivery of the package, mark the order as paid**.
    

## Create a workflow

1.  In Shopify admin, open **Apps → Flow** and click **Create workflow**.
    
2.  Click **Select a trigger**, search for **ShipDock** and choose one of the triggers below.
    
3.  Add conditions and actions and turn the workflow on.
    

Every trigger gives you the full **Order** plus its own fields, for example `{{ pickupPointName }}`. Unknown values are sent empty.

## Trigger: Pickup point selected

Starts every time ShipDock saves a pickup point to an order: at order creation (point chosen in checkout or cart), when the customer selects or changes it, when you save it in **Orders → Change pickup point**, or when ShipDock assigns it itself.

-   `pickupPointId`, `pickupPointName`: ID in the courier's system and name of the point
    
-   `provider`: courier code, for example `packeta`, `ppl`, `dpd`, `gls`, `balikovna`, `ceskaposta`
    
-   `providerName`: courier name
    
-   `packetaCarrierId`: Packeta partner carrier ID, otherwise empty
    
-   `address`, `street`, `city`, `province`, `zip`, `countryCode`: address of the point
    
-   `pageContext`: `checkout`, `thank_you`, `order_status`, `admin` or `not_specified`
    

## Trigger: Pickup point removed

Starts when you remove the pickup point from an order in ShipDock (**Orders → Change pickup point**, clear the point and save).

Fields of the removed point: `pickupPointId`, `pickupPointName`, `provider`, `providerName`, `address` (may be empty) and `pageContext` (`admin`).

## Trigger: COD marked as paid

Starts after ShipDock marks a cash on delivery order as paid in Shopify, once the courier reports the parcel as delivered.

-   `trackingNumber`: tracking number of the delivered shipment
    
-   `provider`, `providerName`: courier code and name
    
-   `codAmount`, `codCurrency`: the COD amount stored with the shipment, for example `1250.00` and `CZK`
    
-   `courierStatus`: status code from the courier, may be empty
    
-   `markedAt`: date and time in UTC (ISO 8601)
    

## Workflow examples

**Tag orders by courier.** Pickup point selected → _Add order tags_ with `pickup-{{ provider }}`.

**Alert the warehouse when a customer changes the point.** Pickup point selected → condition `pageContext` equals `thank_you` or `order_status` → _Send internal email_: `Order {{ order.name }}: pickup point is now {{ pickupPointName }}, {{ address }}.`

**Tell accounting that COD money arrived.** COD marked as paid → _Add order tags_ `cod-paid` → _Send internal email_: `COD for {{ order.name }} collected: {{ codAmount }} {{ codCurrency }}, {{ trackingNumber }}.`

## Limits

-   A changed point runs **Pickup point selected** again and does not start **Pickup point removed**.
    
-   Points chosen in checkout or in the cart arrive with `pageContext` = `not_specified`. Their `countryCode` and `packetaCarrierId` can be empty; take the country from the order's shipping address.
    
-   Build conditions on `provider`, not on `providerName`: the name has no country variant (`DPD`, `GLS`) and for some couriers it contains the code (`packeta`).
    
-   **COD marked as paid** does not start when you mark the order as paid by hand in Shopify. It works for the couriers supported by automatic COD marking.
    
-   If sending a trigger fails, ShipDock does not send it again.
    

## Troubleshooting

**The workflow did not run**: check it is turned on and look at its run history in Flow. For COD, check that ShipDock marked the order as paid.

## Related articles

-   [How to send the pickup point reminder from Shopify Flow](https://help.shipdockapp.eu/en/articles/11764758.md)
    
-   [How to mark COD orders as paid automatically](https://help.shipdockapp.eu/en/articles/11764743.md)

## Related

- [How to set up ShipDock](https://help.shipdockapp.eu/en/articles/10186151-how-to-set-up-shipdock.md)
- [ShipDock plans: what Lite and Full unlock](https://help.shipdockapp.eu/en/articles/11764792-shipdock-plans-what-lite-and-full-unlock.md)
