younifyd
Menu

fulfilmentById

Find a single Fulfilment by ID — its items, articles, from/to addresses and parent Order.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the fulfilmentById action (under Fulfilment).
  3. Fill in the fields below, then reference the result from later steps as {{fulfilmentbyid.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 FulfilmentById($id: ID!) {
  fulfilmentById(id: $id) {
    attributes {
      name
      type
      value
    }
    createdOn
    deliveryType
    eta
    expiryTime
    fromAddress {
      city
      companyName
      country
      createdOn
      id
      latitude
      longitude
      name
      postcode
      ref
      region
      state
      street
      timeZone
      type
      updatedOn
    }
    fromLocation {
      ref
    }
    id
    order {
      attributes {
        name
        type
        value
      }
      createdOn
      customer {
        attributes
        country
        createdOn
        department
        firstName
        id
        lastName
        primaryEmail
        primaryPhone
        promotionOptIn
        ref
        retailer
        status
        timezone
        title
        updatedOn
        username
      }
      customerLink {
        ref
      }
      fulfilmentChoice {
        createdOn
        currency
        deliveryAddress
        deliveryInstruction
        deliveryType
        fulfilmentPrice
        fulfilmentTaxPrice
        fulfilmentType
        id
        pickupLocationRef
        updatedOn
      }
      id
      payment {
        ref
      }
      ref
      retailer {
        createdOn
        id
        primaryEmail
        ref
        status
        summary
        supportContactName
        supportEmail
        supportPhone
        tradingName
        updatedOn
        websiteUrl
        websiteUrlName
      }
      status
      totalPrice
      totalTaxPrice
      type
      updatedOn
      workflowRef
      workflowVersion
    }
    ref
    status
    toAddress {
      city
      companyName
      country
      createdOn
      id
      latitude
      longitude
      name
      postcode
      ref
      region
      state
      street
      timeZone
      type
      updatedOn
    }
    type
    updatedOn
    user {
      attributes {
        name
        type
        value
      }
      country
      createdOn
      department
      firstName
      id
      lastName
      primaryEmail
      primaryPhone
      promotionOptIn
      ref
      retailer {
        createdOn
        id
        primaryEmail
        ref
        status
        summary
        supportContactName
        supportEmail
        supportPhone
        tradingName
        updatedOn
        websiteUrl
        websiteUrlName
      }
      status
      timezone
      title
      updatedOn
      username
    }
    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 {{fulfilmentbyid.response.data.data.fulfilmentById}}. If the API returns errors, the step fails and they are at {{fulfilmentbyid.response.data.errors}}.

attributesarray<object>
nameobject
typeobject
valueobject
createdOnstring
deliveryTypestring
etastring
expiryTimestring
fromAddressobject
citystring
companyNamestring
countrystring
createdOnstring
idstring
latitudenumber
longitudenumber
namestring
postcodestring
refstring
regionstring
statestring
streetstring
timeZonestring
typestring
updatedOnstring
fromLocationobject
refstring
idstring
orderobject
attributesarray<object>
createdOnstring
customerobject17 fields
customerLinkobject1 fields
fulfilmentChoiceobject11 fields
idstring
paymentobject1 fields
refstring
retailerobject13 fields
statusstring
totalPricenumber
totalTaxPricenumber
typestring
updatedOnstring
workflowRefstring
workflowVersionnumber
refstring
statusstring
toAddressobject
citystring
companyNamestring
countrystring
createdOnstring
idstring
latitudenumber
longitudenumber
namestring
postcodestring
refstring
regionstring
statestring
streetstring
timeZonestring
typestring
updatedOnstring
typestring
updatedOnstring
userobject
attributesarray<object>
countrystring
createdOnstring
departmentstring
firstNamestring
idstring
lastNamestring
primaryEmailstring
primaryPhonestring
promotionOptInboolean
refstring
retailerobject13 fields
statusstring
timezonestring
titlestring
updatedOnstring
usernamestring
workflowRefstring
workflowVersionnumber

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