Fluent Commerce Logo
Docs

CreateFulfilment

Rule

Changed on:

8 Aug 2025

Overview

The rule creates fulfilment based on the incoming proposed fulfilment, excluding fulfilments in specified statuses. If the `fulfilmentType` parameter is not empty then a fulfilment with this type will be created.
Plugin NameOrder Reference Module
Namespace[[account.id]].order
The Order Reference Module is the foundation for order-related implementations. It provides reference workflows for click & collect, home delivery and mixed baskets and those needed to build your own. Extensible by design, use this Module as a base to build a solution to your customers' needs.

UI Description

Creates fulfilment based on the incoming proposed fulfilment, excluding fulfilments in statuses {excludedFulfilmentStatuses}. If the "fulfilmentType" parameter is not empty then a fulfilment with this type will be created.

Accepts

  • ORDER

Actions

  • This rule produces an action that triggers a GraphQL createFulfilment mutation

Rule parameters

ParameterDescription
excludedFulfilmentStatusesThe list of excluded fulfilment statuses.
fulfilmentTypeThe type of the fulfilment.

Event attributes

ParameterDescriptionData TypeRequired?
proposedFulfilmentThe object of a proposed fulfilment.ProposedFulfilmentRequired

Exceptions

This rule does not explicitly identify any exceptions.

Configuration example

1{
2  "name":"<ACCOUNTID>.order.CreateFulfilment",
3  "props": {
4    "fulfilmentType":"HD_PFS",
5    "excludedFulfilmentStatuses":"CREATED"
6  }
7}

Detailed Technical Description

Extension

If you are using Click and Collect, Home Delivery or Mixed Baskets reference workflows, following fulfilment types can be used without additional rule modification.`CC_PFS` for Click & Collect - Pick from Store`CC_PFDC` for Click & Collect - Pick from DC`HD_PFS` for Home Delivery - Pick from Store`HD_PFDC` for Home Delivery - Pick from DCIf you create your own fulfilment type and would like it to be supported in our reference workflow, you need to set the custom type in the `fulfilmentType` field and update the workflow so the new fulfilment type can be processed.Useful information:
  • A guide about uploading and installing plugins with modified rules is available here;
  • The Workflow Engine overview is available here.

Version History

2023-08-04

v1.0.3

First release