younifyd
Menu

fulfilments

Search Fulfilments by status, type, delivery type, ETA or origin location.

Use it in a workflow

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

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

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

createdOnobject
fromstring
tostring
deliveryTypearray<string>

Type of delivery. Supported values are _STANDARD_, _OVERNIGHT_ and _EXPRESS_.

etaarray<string>

The estimated time of completing the fulfilment.

expiryTimeobject
fromstring
tostring
firstnumber

Returns the first n elements from the list

fromLocationobject
refstringrequired
lastnumber

Returns the last n elements from the list

refarray<string>

External reference of the object. Recommended to be unique.

statusarray<string>
typearray<string>

Type of fulfilment. Supported types are <br/> - *CC_PFS* for Click & Collect - Pick from Store - *CC_PFDC* for Click & Collect - Pick from DC - *HD_PFS* for Home Delivery - Pick from Store - *HD_PFDC* for Home Delivery - Pick from DC

updatedOnobject
fromstring
tostring
workflowRefarray<string>
workflowVersionarray<number>
json
{
  "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}}.

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?