Skip to content

Update cart line

PATCH/store/v1/carts/{cart_id}/lines/{line_id}

    Change a line's quantity; 0 removes it.

    Path parameters

    • cart_idstringrequired

      The cart's ID, like cart_01k8qs5s….

    • line_idstringrequired

      The cart line's ID, like cline_01k8qs5s….

    Headers

    • X-Cart-Tokenstringrequired

      The cart's token

    • shop-api-versionYYYY-MM

      The version to answer in. Without it, your app’s pinned version, else the newest.

    Body

    • quantityintegerrequired

      0 removes the line.

    Returns

    200 The updated cart.

    Errors

    • 404not_foundNo such cart or line.
    • 409A payment is in progress, or the cart is completed.
    • 422validation_failedInvalid quantity.