Skip to content

Latest commit

 

History

History

demonstration-auto-tag-new-orders-with-reconciliation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Demonstration: Auto-tag new orders, with scheduled reconciliation

Tags: Demonstration, Orders, Tag

This task illustrates Shopify's recommendation of implementing reconciliation, in the case of missing Shopify events. This implementation handles the rare case that Shopify fails to deliver a webhook (orders/create, in this example), by scanning for unprocessed orders every 15 minutes.

Default options

{
  "run_on_order_create__boolean": true,
  "reconcile_every_15_minutes__boolean": true,
  "reconcile_on_manual_run__boolean": true
}

Learn about task options in Mechanic

Subscriptions

{% if options.run_on_order_create__boolean %}
  shopify/orders/create
{% endif %}

{% if options.reconcile_every_15_minutes__boolean %}
  mechanic/scheduler/15min
{% endif %}

{% if options.reconcile_on_manual_run__boolean %}
  mechanic/user/trigger
{% endif %}

Learn about event subscriptions in Mechanic

Documentation

This task illustrates Shopify's recommendation of implementing reconciliation, in the case of missing Shopify events. This implementation handles the rare case that Shopify fails to deliver a webhook (orders/create, in this example), by scanning for unprocessed orders every 15 minutes.

To learn more about this kind of scenario, see https://learn.mechanic.dev/core/shopify/events/reconciling-missing-events.

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!