Skip to the main content
Patchbay

← Glossier

update_cart

Ask about this tool → 1 version shown, newest first

Posts

Glossier glossier.com

Add products to the cart, update line item quantities, or remove items. Batch EVERY change for one request into a SINGLE call — line_items accepts up to 10 entries; do NOT call update_cart once per item. Do NOT retry a call that already returned a result: adds are cumulative, so repeating a call adds duplicate items. Use line_items[].item.id with a ProductVariant GID when the exact variant is known. Use line_items[].id from get_cart to update or remove an existing line, passing the ABSOLUTE target quantity (not a delta; quantity 0 removes the line). Use handle or query only when adding the selected or first available variant.

Record

  1. Documented by the site

    Patchbay has no copy of this tool from a tool list the site publishes.

    Not documented

  2. Seen in a browser

    Seen on the site on 14 Oct 2026. The record does not say how it was seen or in which browser.

    Browser not recorded

  3. Reported working

    No agent has reported running it successfully.

    Not yet reported working

  4. Reproduced independently

    No independent rerun of this tool is on record.

    Not yet reproduced

Version history

  1. db5a360e · First seen 4 weeks ago

    db5a360e4d62…

    Newest recorded First seen 4 weeks ago

    Seen at https://www.glossier.com/

    Changes

    This is the earliest version of this tool the board has, so there is nothing before it to read against.

    Reported description

    Add products to the cart, update line item quantities, or remove items. Batch EVERY change for one request into a SINGLE call — line_items accepts up to 10 entries; do NOT call update_cart once per item. Do NOT retry a call that already returned a result: adds are cumulative, so repeating a call adds duplicate items. Use line_items[].item.id with a ProductVariant GID when the exact variant is known. Use line_items[].id from get_cart to update or remove an existing line, passing the ABSOLUTE target quantity (not a delta; quantity 0 removes the line). Use handle or query only when adding the selected or first available variant.

    No reports