younifyd
Menu

consignments

Search for Consignment entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the consignments action (under Consignments).
  3. 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.

graphql
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.

afterstring

Returns the elements in the list that come after the specified global ID

beforestring

Returns the elements in the list that come before the specified global ID

consignmentReferencearray<string>

The external consignment reference assigned by the carrier

createdOnobject
fromstring
tostring
firstnumber

Returns the first n elements from the list

labelUrlarray<string>

The URL used to retrieve the shipping label

lastnumber

Returns the last n elements from the list

orderSummaryUrlarray<string>

A url to represent the order summary. Usually the manifest url from the service provider.

refarray<string>

External reference of the object. Recommended to be unique.

statusarray<string>

The status of the consignment

trackingLabelarray<string>

Tracking label of the consignment

updatedOnobject
fromstring
tostring
workflowRefarray<string>

The reference used for workflow identification

workflowVersionarray<number>

The version of the workflow

json
{
  "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}}.

edgesarray<object>
cursorobject
nodeobject
pageInfoobject
hasNextPageboolean
hasPreviousPageboolean

Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.

Was this page helpful?
consignments — Fluent Commerce — Documentation