younifyd
Menu

updateReturnFulfilment

Updates a 'Return fulfilment'.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the updateReturnFulfilment action (under Update).
  3. Fill in the fields below, then reference the result from later steps as {{updatereturnfulfilment.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation UpdateReturnFulfilment($input: UpdateReturnFulfilmentInput) {
  updateReturnFulfilment(input: $input) {
    attributes {
      name
      type
      value
    }
    createdOn
    destinationLocation {
      ref
    }
    id
    lodgedLocation {
      ref
    }
    pickupAddress {
      city
      companyName
      country
      latitude
      longitude
      name
      postcode
      region
      state
      street
      timeZone
    }
    ref
    returnOrder {
      attributes {
        name
        type
        value
      }
      createdOn
      creditMemo {
        ref
      }
      currency {
        alphabeticCode
      }
      customer {
        ref
      }
      defaultTaxType {
        country
        group
        tariff
      }
      destinationLocation {
        ref
      }
      exchangeOrder {
        ref
        retailer
      }
      id
      lodgedLocation {
        ref
      }
      order {
        ref
        retailer
      }
      pickupAddress {
        city
        companyName
        country
        latitude
        longitude
        name
        postcode
        region
        state
        street
        timeZone
      }
      ref
      retailer {
        id
      }
      returnAuthorisationDisposition {
        label
        value
      }
      returnAuthorisationKey
      returnAuthorisationKeyExpiry
      status
      subTotalAmount {
        amount
        scale
        unscaledValue
      }
      totalAmount {
        amount
        scale
        unscaledValue
      }
      totalTax {
        amount
        scale
        unscaledValue
      }
      type
      updatedOn
      workflow {
        ref
        version
      }
      workflowRef
      workflowVersion
    }
    status
    type
    updatedOn
    workflow {
      ref
      version
    }
    workflowRef
    workflowVersion
  }
}

Variables

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

inputobject
attributesarray<object>3 fields
destinationLocationobject1 fields
lodgedLocationobject1 fields
pickupAddressobject11 fields
refstringrequired
returnFulfilmentItemsarray<object>4 fields
returnOrderobjectrequired2 fields
statusstring
json
{
  "input": {
    "ref": "string",
    "returnOrder": {
      "ref": "string",
      "retailer": {
        "id": "string"
      }
    },
    "attributes": [
      {
        "name": "string",
        "type": "string",
        "value": "string"
      }
    ],
    "destinationLocation": {
      "ref": "string"
    },
    "lodgedLocation": {
      "ref": "string"
    },
    "pickupAddress": {
      "city": "string",
      "companyName": "string",
      "country": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "postcode": "string",
      "region": "string",
      "state": "string",
      "street": "string",
      "timeZone": "string"
    },
    "returnFulfilmentItems": [
      {
        "ref": "string",
        "attributes": "string",
        "product": "string",
        "unitQuantity": "string"
      }
    ],
    "status": "string"
  }
}

Response

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

attributesarray<object>
nameobject
typeobject
valueobject
createdOnstring
destinationLocationobject
refstring
idstring
lodgedLocationobject
refstring
pickupAddressobject
citystring
companyNamestring
countrystring
latitudenumber
longitudenumber
namestring
postcodestring
regionstring
statestring
streetstring
timeZonestring
refstring
returnOrderobject
attributesarray<object>
createdOnstring
creditMemoobject1 fields
currencyobject1 fields
customerobject1 fields
defaultTaxTypeobject3 fields
destinationLocationobject1 fields
exchangeOrderobject2 fields
idstring
lodgedLocationobject1 fields
orderobject2 fields
pickupAddressobject11 fields
refstring
retailerobject1 fields
returnAuthorisationDispositionobject2 fields
returnAuthorisationKeystring
returnAuthorisationKeyExpirystring
statusstring
subTotalAmountobject3 fields
totalAmountobject3 fields
totalTaxobject3 fields
typestring
updatedOnstring
workflowobject2 fields
workflowRefstring
workflowVersionnumber
statusstring
typestring
updatedOnstring
workflowobject
refstring
versionnumber
workflowRefstring
workflowVersionnumber

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