Skip to content

Latest commit

 

History

History

auto-reserve-draft-order-items-for-x-days

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Auto-reserve draft order items for X days

Tags: Draft Orders, Products, Reserve

Use this task to auto-reserve all of the line items for a set amount of time on any new or updated draft orders that contain a certain tag. A common use case is when you have an app or service that is creating draft orders on your behalf and you want to make sure that the inventory for those orders is set aside if possible.

Default options

{
  "tag_to_watch_for__required": null,
  "amount_of_days_to_reserve__number_required": null,
  "preserve_the_initial_reservation_date_if_line_items_change__boolean": null
}

Learn about task options in Mechanic

Subscriptions

shopify/draft_orders/create
shopify/draft_orders/update+1.minute

Learn about event subscriptions in Mechanic

Documentation

Use this task to auto-reserve all of the line items for a set amount of time on any new or updated draft orders that contain a certain tag. A common use case is when you have an app or service that is creating draft orders on your behalf and you want to make sure that the inventory for those orders is set aside if possible.

Configure the task with the "Tag to watch for" and the "Amount of days to reserve". Optionally, enabling the "Preserve the initial reservation date if line items change" will override the default behavior of resetting the reseve until date.

Important notes:

  • This task does not check the inventory of any line items before reserving them
  • Line items can only be reserved at the default location configured in Shopify, since draft orders do not support location assignment
  • The one minute delay on the draft order update subscription and the enabled "Perform action runs in sequence" run time option should both be left as configured, to prevent interference with draft order completions and updates

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!