Product updated_at field constantly updated without changes to product fields

Adamantike
New Member
1 0 0

Hello,

 

We have found that for some Products, the payload we receive in the "products/update" webhooks are similar, except for the `updated_at` field, which constantly gets updated and sends the current timestamp.

 

In an attempt to find any other updated fields that explain this change, we have used the REST API, but only `updated_at` changes between calls. This is using endpoint https://<shop_domain>.myshopify.com/admin/api/2022-04/products/<product_id>.json

 

Not sure if it's a coincidence, but considering the last 7 days of webhooks we have received, it was found that the products generating the most webhook traffic have `published_at = null`. Using the GraphQL with the following query shows that the only other field changing constantly is `onlineStorePreviewUrl` (same URL, but `preview_key` URL param being updated).

 

{
  product(id: "gid://shopify/Product/<product_id>") {
    collections(first: 5) {
      edges {
        node {
          handle
        }
      }
    }
    createdAt
    defaultCursor
    description
    descriptionHtml
    featuredImage {
      id
    }
    feedback {
      details {
        messages {
          message
        }
      }
    }
    giftCardTemplateSuffix
    handle
    hasOnlyDefaultVariant
    hasOutOfStockVariants
    id
    images(first: 5) {
      edges {
        node {
          id
        }
      }
    }
    isGiftCard
    legacyResourceId
    metafield(key: "app_key", namespace: "affiliates") {
      description
    }
    metafields(first: 5) {
      edges {
        node {
          description
        }
      }
    }
    onlineStorePreviewUrl
    onlineStoreUrl
    options {
      name
    }
    priceRange {
      maxVariantPrice {
        amount
      }
      minVariantPrice {
        amount
      }
    }
    productType
    publishedAt
    seo {
      title
    }
    storefrontId
    tags
    templateSuffix
    title
    totalInventory
    totalVariants
    tracksInventory
    updatedAt
    variants(first: 5) {
      edges {
        node {
          displayName
        }
      }
    }
    vendor
  }
}

 

We are trying to reduce the processing load in our systems, but without being able to use `updated_at`, we would need to deduplicate messages considering the entire payload, comparing against previously received webhooks.

 

If needed, we can provide more information about the specific shop_id/product_id we used for the current investigation.

 

Thanks in advance for the support,

Replies 0 (0)