createFulfilmentPlan

This mutation creates a FulfilmentPlan, an orchestratable entity inside the Fluent ecosystem. If the FulfilmentPlan is successfully created, a CREATE event will be generate associated with the mutation.
A sample of the event generated:
{
    "name": "CREATE",
    "type": "NORMAL",
    "entityRef": "FULFILMENTPLAN-001",
    "entityType": "FULFILMENTPLAN",
    "retailerId": "1",
    "accountId": "ACCOUNT_ID"
}

Input fields

input (CreateFulfilmentPlanInput)

Return fields

id (ID!)

ID of the object

createdOn (DateTime)

Time of creation

updatedOn (DateTime)

Time of last update

type (String!)

Type of the FulfilmentPlan, typically used by the Orchestration Engine to determine the workflow that should be applied. Unless stated otherwise, no values are enforced by the platform.

status (String)

The current status of the FulfilmentPlan.
By default, the initial value will be CREATED, however no other status values are enforced by the platform.
The status field is also used within ruleset selection during orchestration. For more info, see Orchestration

workflowRef (String!)

The reference used for workflow identification. This is defined by a combination of the entity name and the type, in the format [EntityName]::[Type]. For example, an Order of type CC will have the workflowRef "ORDER::CC".

workflowVersion (Int!)

The version of the workflow assigned to the entity and used for workflow identification. It comprises a major version and minor version number.

ref (String)

External reference. Recommended to be unique.

splitCount (Int)

Order split limits

eta (String)

ETA of the FulfilmentPlan. Although this can be set explicitly, we recommend that this be determined and set in the workflow.

retailerId (Int)

ID of the retailer

attributes ([Attribute])

A list of attributes associated with this object. This can be used to extend the existing data structure with additional data for use in orchestration rules, etc.

fulfilmentOption (FulfilmentOption)

Represents the associated FulfilmentOption object

fulfilments ([FulfilmentPlanFulfilment])

Represents fulfilments under this Fulfilment Plan

exceptions ([FulfilmentPlanException])

Exceptions can be used to augment the existing object with any useful information in case of exceptions.