createOrder

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

Input fields

input (CreateOrderInput)

Return fields

id (ID!)

ID of the object

createdOn (DateTime)

Time of creation

updatedOn (DateTime)

Time of last update

type (String!)

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

status (String)

The current status of the Order.
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
The current status of the Order.

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".
The workflow's reference

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.
The version of the workflow

ref (String)

External reference of the object. Must be unique.

attributes ([Attribute])

List of order attributes

retailer (Retailer)

Retailer of the order

totalPrice (Float)

Total price

totalTaxPrice (Float)

Total tax price

fulfilmentChoice (FulfilmentChoice)

The FulfilmentChoice specified when booking the order

customer (Customer)

Customer of the order

customerLink (CustomerLink)

Contains the reference of the customer. It can be used to fetch the Customer object.

payment (PaymentLink)

Payment for the order

billingAddress (OrderBillingAddress)

Order billing address