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
CreateOrderInput
)
Return fields
ID!
)
ID of the object
DateTime
)
Time of creation
DateTime
)
Time of last update
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.
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.
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
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
String
)
External reference of the object. Must be unique.
[Attribute]
)
List of order attribute
s
Retailer
)
Retailer
of the order
Float
)
Total price
Float
)
Total tax price
FulfilmentChoice
)
The FulfilmentChoice
specified when booking the order
Customer
)
Customer
of the order
CustomerLink
)
Contains the reference of the customer. It can be used to fetch the Customer
object.
PaymentLink
)
Payment
for the order
OrderBillingAddress
)
Order billing address