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, containing the updated cart and any errors that occurred during the operation.

Example

mutation { cartNoteUpdate(id: "eyJhbGciOiJIUzI1NiJ9...", note: "Please deliver after 5 PM") { cart { id note } userErrors { field message } } }