Menu
consignments
Search for Consignment entities.
Use it in a workflow
- Add a step and choose the Fluent Commerce connector.
- Pick the consignments action (under Consignments).
- Fill in the fields below, then reference the result from later steps as
{{consignments.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 Consignments($after: String, $before: String, $consignmentReference: [String!], $createdOn: DateRange, $first: Int, $labelUrl: [String], $last: Int, $orderSummaryUrl: [String], $ref: [String], $status: [String], $trackingLabel: [String], $updatedOn: DateRange, $workflowRef: [String!], $workflowVersion: [Int!]) {
consignments(
after: $after
before: $before
consignmentReference: $consignmentReference
createdOn: $createdOn
first: $first
labelUrl: $labelUrl
last: $last
orderSummaryUrl: $orderSummaryUrl
ref: $ref
status: $status
trackingLabel: $trackingLabel
updatedOn: $updatedOn
workflowRef: $workflowRef
workflowVersion: $workflowVersion
) {
edges {
cursor
node {
carrier
consignmentReference
createdOn
id
labelUrl
orderSummaryUrl
ref
retailer
status
trackingLabel
updatedOn
workflowRef
workflowVersion
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"after": "string",
"before": "string",
"consignmentReference": [
"string"
],
"createdOn": {
"from": "string",
"to": "string"
},
"first": 0,
"labelUrl": [
"string"
],
"last": 0,
"orderSummaryUrl": [
"string"
],
"ref": [
"string"
],
"status": [
"string"
],
"trackingLabel": [
"string"
],
"updatedOn": {
"from": "string",
"to": "string"
}
}
Response
Read the result with {{consignments.response.data.data.consignments}}. If the API returns errors, the step fails and they are at {{consignments.response.data.errors}}.
Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?