younifyd
Menu

fulfilmentChoices

Search for FulfilmentChoice entities.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the fulfilmentChoices action (under Fulfilment).
  3. Fill in the fields below, then reference the result from later steps as {{fulfilmentchoices.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 FulfilmentChoices($after: String, $before: String, $createdOn: DateRange, $currency: [String], $deliveryInstruction: [String], $deliveryType: [String!], $first: Int, $fulfilmentPrice: [Float], $fulfilmentTaxPrice: [Float], $fulfilmentType: [String], $last: Int, $pickupLocationRef: [String], $updatedOn: DateRange) {
  fulfilmentChoices(
    after: $after
    before: $before
    createdOn: $createdOn
    currency: $currency
    deliveryInstruction: $deliveryInstruction
    deliveryType: $deliveryType
    first: $first
    fulfilmentPrice: $fulfilmentPrice
    fulfilmentTaxPrice: $fulfilmentTaxPrice
    fulfilmentType: $fulfilmentType
    last: $last
    pickupLocationRef: $pickupLocationRef
    updatedOn: $updatedOn
  ) {
    edges {
      cursor
      node {
        createdOn
        currency
        deliveryAddress
        deliveryInstruction
        deliveryType
        fulfilmentPrice
        fulfilmentTaxPrice
        fulfilmentType
        id
        pickupLocationRef
        updatedOn
      }
    }
    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
currencyarray<string>

The type of currency, 3 letter ISO currency code

deliveryInstructionarray<string>

Instruction provided by the customer (250 character limit)

deliveryTypearray<string>

The type of delivey determined by retailers' shipping options. Example values are STANDARD, EXPRESS, OVERNIGHT, 3HOURS

firstnumber

Returns the first n elements from the list

fulfilmentPricearray<number>

FulfilmentPrice refers to shipping fees if order type is Home Delivery HD and C&C fees for Click & Collect orders

fulfilmentTaxPricearray<number>

This refers to the tax cost associated with the fulfilment price

fulfilmentTypearray<string>

Indicates the type of fulfilment. Possible values are CC_PFS ( Click & Collect - Pick from Store), CC_PFDC ( Click & Collect - Pick from DC), HD_PFS (Home Delivery - Pick from Store), HD_PFDC ( Home Delivery - Pick from DC)

lastnumber

Returns the last n elements from the list

pickupLocationRefarray<string>

Pickup location. This is required for click & collect orders

updatedOnobject
fromstring
tostring
json
{
  "after": "string",
  "before": "string",
  "createdOn": {
    "from": "string",
    "to": "string"
  },
  "currency": [
    "string"
  ],
  "deliveryInstruction": [
    "string"
  ],
  "deliveryType": [
    "string"
  ],
  "first": 0,
  "fulfilmentPrice": [
    0
  ],
  "fulfilmentTaxPrice": [
    0
  ],
  "fulfilmentType": [
    "string"
  ],
  "last": 0,
  "pickupLocationRef": [
    "string"
  ]
}

Response

Read the result with {{fulfilmentchoices.response.data.data.fulfilmentChoices}}. If the API returns errors, the step fails and they are at {{fulfilmentchoices.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?