Issue: Cart Transform function’s update operation returns InvalidOutputError when including a price field, despite documentation indicating price updates are supported.
What was attempted:
Environment: Tested on both a Dev store and a Plus store.
Payload: Update operations included cartLineId, title, and price.adjustment.fixedPricePerUnit.amount.
Result: Validation errors for each operation: path [operations, n, update, price], explanation “Field is not defined on UpdateOperation.”
Observed behavior:
Updating non-price fields (e.g., title) succeeds.
Adding price causes the error. Image updates were suggested but not confirmed; title was verified to work.
Context/technical notes:
Cart Transform is a Shopify Functions extension to modify cart lines; UpdateOperation is expected (per docs) to accept fields like price/title/image.
The attached JSON payloads and error messages are central to the issue.
Status and next steps:
No resolution yet. The discrepancy suggests either a documentation mismatch or current API limitation.
Awaiting confirmation from Shopify on whether price is currently supported in UpdateOperation and any required conditions or flags.
[
{
"path": [
"operations",
0,
"update",
"price"
],
"explanation": "Field is not defined on UpdateOperation"
},
{
"path": [
"operations",
1,
"update",
"price"
],
"explanation": "Field is not defined on UpdateOperation"
}
]