# Tag orders by shipping method

Adds an order tag derived from the order’s first shipping method.

Canonical URL: https://templates.jsworkflows.com/templates/tag-orders-by-shipping-method/

## When to use this template

This template is built for Shopify stores using the JsWorkflows app.

Use this template when you want a ready-made workflow for this use case: Adds an order tag derived from the order’s first shipping method.

It is designed for Shopify order operations and gives you a production-ready starting point instead of building the automation from scratch.

This workflow uses the Shopify webhook trigger model and starts from the "Order paid" trigger. It includes setup fields for merchant-facing values, so you can configure the workflow before installing it.

## Metadata

- Category: Orders
- Trigger: Order paid
- Workflow type: Shopify webhook
- Complexity: easy
- Usage class: starter-friendly

## Connected services

- None

## Additional Shopify scopes

- write_orders

## Setup fields

- Tag prefix (`TAG_PREFIX`)
  - Type: text
  - Storage: config
  - Required: yes
  - Description: Prefix to prepend to the normalized shipping method value.

## Setup guide

## Before you start

This template tags paid orders based on the first shipping method included in the order payload.

## Configure in setup

- `Tag prefix`: prefix prepended to the normalized shipping method text

## Notes

- Shipping method text is lowercased and normalized into a Shopify-safe tag value
- Orders without shipping lines receive an `unknown` suffix under the configured prefix

