Set a default tracking number for new fulfillments, with Mechanic.

Mechanic is a development platform for Shopify. :)

Set a default tracking number for new fulfillments

This task is here to illustrate managing tracking numbers. If a default tracking number is right for your orders, you can use this task to make sure that one is added the instant a fulfillment is created.

Runs when a fulfillment is created. Configuration includes default tracking number.

15-day free trial – unlimited tasks

Developer details

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

Open source
View on GitHub to contribute to this task
when a fulfillment is created (shopify/fulfillments/create)
default tracking number (required)
{% if event.preview or fulfillment.tracking_number == blank %}
    "action": {
      "type": "shopify",
      "options": [
          {{ fulfillment.order_id | json }},
          {{ | json }}
          "tracking_number": {{ options.default_tracking_number__required | json }}
{% endif %}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.