Menu
fulfilments
Search Fulfilments by status, type, delivery type, ETA or origin location.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the fulfilments action (under Fulfilments).
- Fill in the fields below, then reference the result from later steps as
{{fulfilments.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 Fulfilments($after: String, $before: String, $createdOn: DateRange, $deliveryType: [String], $eta: [String], $expiryTime: DateRange, $first: Int, $fromLocation: LocationLinkInput, $last: Int, $ref: [String], $status: [String], $type: [String!], $updatedOn: DateRange, $workflowRef: [String!], $workflowVersion: [Int!]) {
fulfilments(
after: $after
before: $before
createdOn: $createdOn
deliveryType: $deliveryType
eta: $eta
expiryTime: $expiryTime
first: $first
fromLocation: $fromLocation
last: $last
ref: $ref
status: $status
type: $type
updatedOn: $updatedOn
workflowRef: $workflowRef
workflowVersion: $workflowVersion
) {
edges {
cursor
node {
attributes
createdOn
deliveryType
eta
expiryTime
fromAddress
fromLocation
id
order
ref
status
toAddress
type
updatedOn
user
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"
},
"deliveryType": [
"string"
],
"eta": [
"string"
],
"expiryTime": {
"from": "string",
"to": "string"
},
"first": 0,
"fromLocation": {
"ref": "string"
},
"last": 0,
"ref": [
"string"
],
"status": [
"string"
],
"type": [
"string"
]
}
Response
Read the result with {{fulfilments.response.data.data.fulfilments}}. If the API returns errors, the step fails and they are at {{fulfilments.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?