Cancel Expired Click and Collect

Automatically cancel click and collect orders that exceed their time limits

Overview

This task manages the expiration of click and collect orders by monitoring time limits at different stages of the pickup process. It handles three types of expirations: store processing limits (before the order is ready), customer pickup limits (after the order is ready), and transit limits (for orders being transferred between locations).

Identifier

PropertyValue
Implementation TypeCancelExpiredClickCollectScheduledTask
GroupOrders
TypeDelta

When to Use

Enable this task when you need:

  • Automatic cancellation of click and collect orders not prepared in time
  • Automatic handling of orders not picked up by customers
  • Transit timeout management for inter-store transfers
  • Release of reserved inventory from expired pickup orders

Configuration Properties

This task has no configurable properties. The time limits are configured at the order line level through click and collect settings.


Behavior

What It Does

  1. Searches for click and collect orders in eligible statuses (New, In Progress, Picking Postponed)
  2. Identifies orders exceeding their configured time limits:
    • Store Limit: Orders the store has not prepared within the allowed time
    • Customer Limit: Orders ready for pickup but not collected by the customer
    • Transit Limit: Orders in transit between locations for more than 14 days
  3. For orders with multiple shipments, processes each shipment independently
  4. Sets appropriate cancellation status based on the type of expiration:
    • "Expired" for orders exceeding store limits
    • "Not Collected" for orders exceeding customer pickup limits
  5. For transit-expired orders, tags the order and either cancels or transitions to "Ready for Pickup" status

Status Handling

  • Single Shipment Orders: The entire order is cancelled with the appropriate status
  • Multi-Shipment Orders: Individual shipments are cancelled while preserving other active shipments
  • Transit Orders: Expired transit shipments are cancelled, and remaining open shipments are moved to "Ready for Pickup"

Prerequisites

  • Click and collect order type must be configured
  • Time limits must be set on order lines or order settings
  • Orders must be in processable statuses

Side Effects

  • Changes order status to cancelled states (Expired, Not Collected)
  • Releases reserved inventory for cancelled items
  • Adds "TransitExpired" tag to transit-expired orders
  • Triggers workflow actions associated with cancellation status changes
  • May update shipment statuses independently of order status

Example Configuration

{
    "ImplementationType": "CancelExpiredClickCollectScheduledTask",
    "Schedule": "*/30 * * * *",
    "IsDisabled": false
}

Run every 30 minutes (*/30 * * * *) to handle expirations in a timely manner. More frequent execution may be needed for stores with short pickup windows.


On this page