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
| Argument | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | The ID of the cart to update the note for |
| note | String | Yes | The 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
}
}
}