younifyd
Menu

fulfilmentOptions

Search for FulfilmentOption entities.

Use it in a workflow

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

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

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
firstnumber

Returns the first n elements from the list

lastnumber

Returns the last n elements from the list

locationRefarray<string>

The reference identifier for a location. May be used in orchestration rules to drive custom business logic. For example, you can have a rule to return plans only from this location or a rule to return plans from all locations but excluding this one.

orderTypearray<string>

Type of order. For example _click & collect (CC)_ or _home delivery (HD)_

refarray<string>

External reference. Recommended to be unique.

retailerIdarray<number>

ID of the `Retailer`, typically used by the Orchestration Engine to determine the workflow that should be applied.

statusarray<string>
trackingCodearray<string>

A unique identifier for the clients to group related Fulfilment Plans.

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

edgesarray<object>
cursorobject
nodeobject
pageInfoobject
hasNextPageboolean
hasPreviousPageboolean

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