Skip to Content

cartNoteUpdate

Updates the note for an existing cart.

Authentication

Public Access: Accessible with the public API key

Mutation Structure

mutation { cartNoteUpdate(id: String!, note: String!) { cart { # Cart fields } userErrors { # UserError fields } } }

Input Arguments

ArgumentTypeRequiredDescription
idStringYesThe ID of the cart to update the note for
noteStringYesThe new note for the cart

Return Type

CartNoteUpdatePayload - Payload returned by the cartNoteUpdate mutation. Contains the updated cart and any user errors that occurred during the operation.

Example

mutation { cartNoteUpdate(id: "eyJhbGciOiJIUzI1NiJ9...", note: "Please leave at front door") { cart { id note } userErrors { field message } } }