Cart Transform Function API overview

The Cart Transform API enables you to write functions that modify the pricing and merchandising of cart line items. You can expand a single cart line item to form a bundle of components or add-on products, merge multiple cart lines into a single line that represents a bundle, and update line items to override the price, title, or image.

The API includes the RunInput object, which represents the cart, and the FunctionRunResult object, which represents the operations to perform on the cart.