younifyd
Menu

fulfilmentOptionById

Find a FulfilmentOption entity.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the fulfilmentOptionById action (under Fulfilment).
  3. Fill in the fields below, then reference the result from later steps as {{fulfilmentoptionbyid.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 FulfilmentOptionById($id: ID!) {
  fulfilmentOptionById(id: $id) {
    address {
      addressLine1
      addressLine2
      city
      companyName
      country
      latitude
      longitude
      name
      postcode
      state
    }
    attributes {
      name
      type
      value
    }
    createdOn
    id
    locationRef
    orderType
    products {
      catalogueRef
      productRef
      requestedQuantity
    }
    ref
    retailerId
    status
    trackingCode
    type
    updatedOn
    workflowRef
    workflowVersion
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstringrequired

ID of the object

json
{
  "id": "string"
}

Response

Read the result with {{fulfilmentoptionbyid.response.data.data.fulfilmentOptionById}}. If the API returns errors, the step fails and they are at {{fulfilmentoptionbyid.response.data.errors}}.

addressobject
addressLine1string
addressLine2string
citystring
companyNamestring
countrystring
latitudenumber
longitudenumber
namestring
postcodestring
statestring
attributesarray<object>
nameobject
typeobject
valueobject
createdOnstring
idstring
locationRefstring
orderTypestring
productsarray<object>
catalogueRefobject
productRefobject
requestedQuantityobject
refstring
retailerIdnumber
statusstring
trackingCodestring
typestring
updatedOnstring
workflowRefstring
workflowVersionnumber

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