Menu
createFulfilmentOption
Request fulfilment options for products at a location or address — returns plans via orchestration (use executionMode AWAIT_ORCHESTRATION to wait for them).
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the createFulfilmentOption action (under Create).
- Fill in the fields below, then reference the result from later steps as
{{createfulfilmentoption.response.data}}.
Query
This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.
mutation CreateFulfilmentOption($executionMode: ExecutionMode, $input: CreateFulfilmentOptionInput) {
createFulfilmentOption(executionMode: $executionMode, input: $input) {
address {
addressLine1
addressLine2
city
companyName
country
latitude
longitude
name
postcode
state
}
attributes {
name
type
value
}
createdOn
id
locationRef
orderType
products {
catalogueRef
productRef
requestedQuantity
}
ref
retailerId
status
trackingCode
type
updatedOn
workflowRef
workflowVersion
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"executionMode": "AWAIT_ORCHESTRATION",
"input": {
"ref": "string",
"retailerId": 0,
"type": "string",
"address": {
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"companyName": "string",
"country": "string",
"latitude": 0,
"longitude": 0,
"name": "string",
"postcode": "string",
"state": "string"
},
"attributes": [
{
"name": "string",
"type": "string",
"value": "string"
}
],
"locationRef": "string",
"orderType": "string",
"products": [
{
"productRef": "string",
"catalogueRef": "string",
"requestedQuantity": "string"
}
],
"trackingCode": "string"
}
}
Response
Read the result with {{createfulfilmentoption.response.data.data.createFulfilmentOption}}. If the API returns errors, the step fails and they are at {{createfulfilmentoption.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?