younifyd
Menu

abandonmentUpdateActivitiesDeliveryStatuses

Updates the marketing activities delivery statuses for an abandonment.

Use it in a workflow

  1. Add a step and choose the Shopify connector.
  2. Pick the abandonmentUpdateActivitiesDeliveryStatuses action (under Abandonment).
  3. Fill in the fields below, then reference the result from later steps as {{abandonmentupdateactivitiesdeliverystatuses.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 AbandonmentUpdateActivitiesDeliveryStatuses($abandonmentId: ID!, $marketingActivityId: ID!, $deliveryStatus: AbandonmentDeliveryState!, $deliveredAt: DateTime, $deliveryStatusChangeReason: String) {
  abandonmentUpdateActivitiesDeliveryStatuses(
    abandonmentId: $abandonmentId
    marketingActivityId: $marketingActivityId
    deliveryStatus: $deliveryStatus
    deliveredAt: $deliveredAt
    deliveryStatusChangeReason: $deliveryStatusChangeReason
  ) {
    abandonment {
      abandonedCheckoutPayload {
        abandonedCheckoutUrl
        billingAddress
        completedAt
        createdAt
        customAttributes
        customer
        defaultCursor
        discountCodes
        id
        lineItemsQuantity
        name
        note
        shippingAddress
        subtotalPriceSet
        taxLines
        taxesIncluded
        totalDiscountSet
        totalDutiesSet
        totalLineItemsPriceSet
        totalPriceSet
        totalTaxSet
        updatedAt
      }
      abandonmentType
      app {
        apiKey
        appStoreAppUrl
        appStoreDeveloperUrl
        availableAccessScopes
        banner
        description
        developerName
        developerType
        developerUrl
        embedded
        failedRequirements
        features
        feedback
        handle
        icon
        id
        installUrl
        installation
        isPostPurchaseAppInUse
        launchUrl
        navigationItems
        optionalAccessScopes
        previouslyInstalled
        pricingDetails
        pricingDetailsSummary
        privacyPolicyUrl
        publicCategory
        published
        requestedAccessScopes
        screenshots
        shopifyDeveloped
        title
        uninstallMessage
        uninstallUrl
        webhookApiVersion
      }
      cartUrl
      createdAt
      customer {
        amountSpent
        canDelete
        companyContactProfiles
        createdAt
        dataSaleOptOut
        defaultAddress
        defaultEmailAddress
        defaultPhoneNumber
        displayName
        email
        emailMarketingConsent
        firstName
        hasTimelineComment
        id
        identityProviderSubjects
        lastName
        lastOrder
        legacyResourceId
        lifetimeDuration
        locale
        market
        mergeable
        multipassIdentifier
        note
        numberOfOrders
        phone
        productSubscriberStatus
        smsMarketingConsent
        state
        statistics
        tags
        taxExempt
        taxExemptions
        taxSettings
        unsubscribeUrl
        updatedAt
        validEmailAddress
        verifiedEmail
      }
      customerHasNoDraftOrderSinceAbandonment
      customerHasNoOrderSinceAbandonment
      daysSinceLastAbandonmentEmail
      emailSentAt
      emailState
      hoursSinceLastAbandonedCheckout
      id
      inventoryAvailable
      isFromCustomStorefront
      isFromOnlineStore
      isFromShopApp
      isFromShopPay
      isMostSignificantAbandonment
      lastBrowseAbandonmentDate
      lastCartAbandonmentDate
      lastCheckoutAbandonmentDate
      mostRecentStep
      visitStartedAt
    }
    userErrors {
      code
      field
      message
    }
  }
}

Variables

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

abandonmentIdstringrequired

The ID of the abandonment that needs to be updated.

marketingActivityIdstringrequired

The ID of the marketing activity that needs to be updated.

deliveryStatusstringrequired

The new delivery status of the marketing activity for this abandonment.

One ofNOT_SENTSENTSCHEDULED

deliveredAtstring

The delivery timestamp if the activity delivered.

deliveryStatusChangeReasonstring

The reason why the activity was or was not delivered.

json
{
  "abandonmentId": "string",
  "marketingActivityId": "string",
  "deliveryStatus": "NOT_SENT",
  "deliveredAt": "string",
  "deliveryStatusChangeReason": "string"
}

Response

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

abandonmentobject
abandonedCheckoutPayloadobject22 fields
abandonmentTypestring

One ofBROWSECARTCHECKOUT

appobject35 fields
cartUrlstring
createdAtstring
customerobject38 fields
customerHasNoDraftOrderSinceAbandonmentboolean
customerHasNoOrderSinceAbandonmentboolean
daysSinceLastAbandonmentEmailnumber
emailSentAtstring
emailStatestring

One ofNOT_SENTSENTSCHEDULED

hoursSinceLastAbandonedCheckoutnumber
idstring
inventoryAvailableboolean
isFromCustomStorefrontboolean
isFromOnlineStoreboolean
isFromShopAppboolean
isFromShopPayboolean
isMostSignificantAbandonmentboolean
lastBrowseAbandonmentDatestring
lastCartAbandonmentDatestring
lastCheckoutAbandonmentDatestring
mostRecentStepstring

One ofBROWSECARTCHECKOUT

visitStartedAtstring
userErrorsarray<object>
codeobject
fieldobject
messageobject

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