---
title: >-
  New and updated operations for the Cart Transform API - Shopify developer
  changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/new-and-updated-operations-for-the-cart-transform-api
  md: >-
    https://shopify.dev/changelog/new-and-updated-operations-for-the-cart-transform-api.md
metadata:
  effectiveApiVersion: 2024-01
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2023-12-18T14:11:16-05:00'
  postedAt: '2024-01-02T17:00:00-05:00'
  updatedAt: '2024-12-13T17:24:40-05:00'
  effectiveAt: '2024-01-02T17:00:00-05:00'
---

January 2, 2024

Tags:

* API
* 2024-01

# New and updated operations for the Cart Transform API

Previously, the Cart Transform Function API allowed percentage based adjustments to the cost of a bundle when using `expand` operations. The \[weight price algorithm]\(<http://shopify.dev/docs/api/functions/reference/cart-transform/developer-preview#/weight-> price-algorithm) would then allocate the bundle price to its component lines based on the weight of each component line (unit price \* quantity).

As of the `2024-01` Cart Transform Function API version, `expand` operations will also allow you to set fixed prices on each component of the bundle, resulting in a bundle price that is the sum of each component. Additionally, the `expand` operation will now allow you to define a custom title and image for each parent line item. This gives you more control over bundle pricing and enables bundles to be used for add-on products.

A new `update` operation will allow you to override the price, title, and image of a given line item. This gives you more more flexibility to make additional customizations to items in the cart. The `update` operation is only available for Plus merchants.

To see what operations are available for a shop, you can [query](https://shopify.dev/docs/api/admin-graphql/unstable/objects/ShopFeatures) the `cartTransform` field on `ShopFeatures`.

Finally, the CartTransformCreate mutation in the Admin API now supports a `blockOnFailure` field that determines if cart and checkout operations should be blocked if the CartTransform function fails to run. This can be used as a safeguard if the Cart Transform is considered a critical component in resolving merchandise attributes (e.g. price, title, image).

More information can be found in the Cart Transform API [documentation](https://shopify.dev/docs/api/functions/reference/cart-transform) and the [CartTransformCreate mutation](https://shopify.dev/docs/api/admin-graphql/2024-01/mutations/cartTransformCreate).
