Menu
fulfilmentOptions
Search for FulfilmentOption entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the fulfilmentOptions action (under Fulfilment).
- Fill in the fields below, then reference the result from later steps as
{{fulfilmentoptions.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query FulfilmentOptions($after: String, $before: String, $createdOn: DateRange, $first: Int, $last: Int, $locationRef: [String], $orderType: [String], $ref: [String], $retailerId: [Int!], $status: [String], $trackingCode: [String], $type: [String!], $updatedOn: DateRange, $workflowRef: [String!], $workflowVersion: [Int!]) {
fulfilmentOptions(
after: $after
before: $before
createdOn: $createdOn
first: $first
last: $last
locationRef: $locationRef
orderType: $orderType
ref: $ref
retailerId: $retailerId
status: $status
trackingCode: $trackingCode
type: $type
updatedOn: $updatedOn
workflowRef: $workflowRef
workflowVersion: $workflowVersion
) {
edges {
cursor
node {
address
attributes
createdOn
id
locationRef
orderType
products
ref
retailerId
status
trackingCode
type
updatedOn
workflowRef
workflowVersion
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"after": "string",
"before": "string",
"createdOn": {
"from": "string",
"to": "string"
},
"first": 0,
"last": 0,
"locationRef": [
"string"
],
"orderType": [
"string"
],
"ref": [
"string"
],
"retailerId": [
0
],
"status": [
"string"
],
"trackingCode": [
"string"
],
"type": [
"string"
]
}
Response
Read the result with {{fulfilmentoptions.response.data.data.fulfilmentOptions}}. If the API returns errors, the step fails and they are at {{fulfilmentoptions.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?