cartLinesUpdate
Updates merchandise lines in an existing cart.
Authentication
Public Access: Accessible with the public API key
Mutation Structure
mutation {
cartLinesUpdate(id: String!, lines: [CartLinesUpdateInput]!) {
cart {
# Cart fields
}
userErrors {
# UserError fields
}
}
}Input Arguments
Return Type
CartLinesUpdatePayload - Payload returned by the cartLinesUpdate mutation. Contains the updated cart and any errors that occurred during the update operation.
Example
mutation {
cartLinesUpdate(
id: "eyJhbGciOiJIUzI1NiJ9..."
lines: [
{
id: "line-123"
quantity: 2
}
]
) {
cart {
id
lines {
id
quantity
}
}
userErrors {
field
message
}
}
}