younifyd
Menu

fulfillmentOrderClose

Marks an in-progress fulfillment order as incomplete, indicating the fulfillment service is unable to ship any remaining items, and closes the fulfillment request.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the fulfillmentOrderClose action (under Fulfillment).
  3. Fill in the fields below, then reference the result from later steps as {{fulfillmentorderclose.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 FulfillmentOrderClose($id: ID!, $message: String) {
  fulfillmentOrderClose(id: $id, message: $message) {
    fulfillmentOrder {
      assignedLocation {
        address1
        address2
        city
        countryCode
        location
        name
        phone
        province
        zip
      }
      channelId
      createdAt
      deliveryMethod {
        additionalInformation
        brandedPromise
        id
        maxDeliveryDateTime
        methodType
        minDeliveryDateTime
        presentedName
        serviceCode
        sourceReference
      }
      destination {
        address1
        address2
        city
        company
        countryCode
        email
        firstName
        id
        lastName
        location
        phone
        province
        zip
      }
      fulfillAt
      fulfillBy
      fulfillmentHolds {
        displayReason
        handle
        heldByApp
        heldByRequestingApp
        id
        reason
        reasonNotes
      }
      id
      internationalDuties {
        incoterm
      }
      order {
        additionalFees
        alerts
        app
        attribution
        billingAddress
        billingAddressMatchesShippingAddress
        canMarkAsPaid
        canNotifyCustomer
        cancelReason
        cancellation
        cancelledAt
        capturable
        cartDiscountAmount
        cartDiscountAmountSet
        cartToken
        channel
        channelInformation
        checkoutToken
        clientIp
        closed
        closedAt
        confirmationNumber
        confirmed
        createdAt
        currencyCode
        currentCartDiscountAmountSet
        currentShippingPriceSet
        currentSubtotalLineItemsQuantity
        currentSubtotalPriceSet
        currentTaxLines
        currentTotalAdditionalFeesSet
        currentTotalDiscountsSet
        currentTotalDutiesSet
        currentTotalPriceSet
        currentTotalTaxSet
        currentTotalWeight
        customAttributes
        customer
        customerAcceptsMarketing
        customerJourney
        customerJourneySummary
        customerLocale
        discountCode
        discountCodes
        displayAddress
        displayFinancialStatus
        displayFulfillmentStatus
        disputes
        dutiesIncluded
        edited
        email
        estimatedTaxes
        fulfillable
        fulfillmentsCount
        fullyPaid
        hasTimelineComment
        id
        landingPageDisplayText
        landingPageUrl
        legacyResourceId
        merchantBusinessEntity
        merchantEditable
        merchantEditableErrors
        merchantOfRecordApp
        name
        netPayment
        netPaymentSet
        note
        number
        originalTotalAdditionalFeesSet
        originalTotalDutiesSet
        originalTotalPriceSet
        paymentCollectionDetails
        paymentGatewayNames
        paymentTerms
        phone
        physicalLocation
        poNumber
        presentmentCurrencyCode
        processedAt
        productNetwork
        publication
        purchasingEntity
        referralCode
        referrerDisplayText
        referrerUrl
        refundDiscrepancySet
        refundable
        registeredSourceUrl
        requiresShipping
        restockable
        retailLocation
        returnStatus
        risk
        riskLevel
        shippingAddress
        shippingLine
        shopifyProtect
        sourceIdentifier
        sourceName
        staffMember
        subtotalLineItemsQuantity
        subtotalPrice
        subtotalPriceSet
        tags
        taxExempt
        taxLines
        taxesIncluded
        test
        totalCapturable
        totalCapturableSet
        totalCashRoundingAdjustment
        totalDiscounts
        totalDiscountsSet
        totalOutstandingSet
        totalPrice
        totalPriceSet
        totalReceived
        totalReceivedSet
        totalRefunded
        totalRefundedSet
        totalRefundedShippingSet
        totalShippingPrice
        totalShippingPriceSet
        totalTax
        totalTaxSet
        totalTipReceived
        totalTipReceivedSet
        totalWeight
        transactionsCount
        unpaid
        updatedAt
      }
      orderId
      orderName
      orderProcessedAt
      remainingLineItemsWeight {
        unit
        value
      }
      requestStatus
      status
      supportedActions {
        action
        externalUrl
      }
      updatedAt
    }
    userErrors {
      field
      message
    }
  }
}

Variables

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

idstringrequired

The ID of the fulfillment order to mark as incomplete.

messagestring

An optional reason for marking the fulfillment order as incomplete.

json
{
  "id": "string",
  "message": "string"
}

Response

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

fulfillmentOrderobject
assignedLocationobject9 fields
channelIdstring
createdAtstring
deliveryMethodobject9 fields
destinationobject13 fields
fulfillAtstring
fulfillBystring
fulfillmentHoldsarray<object>
idstring
internationalDutiesobject1 fields
orderobject40 fields
orderIdstring
orderNamestring
orderProcessedAtstring
remainingLineItemsWeightobject2 fields
requestStatusstring

One ofUNSUBMITTEDSUBMITTEDACCEPTEDREJECTEDCANCELLATION_REQUESTEDCANCELLATION_ACCEPTEDCANCELLATION_REJECTEDCLOSED

statusstring

One ofOPENIN_PROGRESSCANCELLEDINCOMPLETECLOSEDSCHEDULEDON_HOLD

supportedActionsarray<object>
updatedAtstring
userErrorsarray<object>
fieldobject
messageobject

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