Skip to content

fix(storefront): capture the cart id - #43

Merged
roncodes merged 1 commit into
mainfrom
fix/capture-cart-id
Aug 12, 2026
Merged

fix(storefront): capture the cart id#43
roncodes merged 1 commit into
mainfrom
fix/capture-cart-id

Conversation

@roncodes

Copy link
Copy Markdown
Member

Nothing in the collection ever set {{cart_id}}, so every request addressing a cart sent the literal placeholder. The run shows it plainly:

POST /storefront/v1/carts/%7B%7Bcart_id%7D%7D/product_nhunqzhu2g

Note the product resolved and the cart did not — which is why the endpoint answered "Invalid product provided" rather than anything about the cart, and why this took a while to spot.

Add Item to Cart, Update item in Cart, Remove item from cart, Empty cart, Delete Cart and the checkout requests that price the cart all address it.

Retrieve or Create Cart returns the cart it retrieved or created and runs first, so it is the source.

🤖 Generated with Claude Code

Nothing in the collection ever set {{cart_id}}, so every request addressing a cart
sent the literal placeholder. The run shows it plainly:

  POST /storefront/v1/carts/%7B%7Bcart_id%7D%7D/product_nhunqzhu2g

Add Item to Cart, Update item in Cart, Remove item from cart, Empty cart, Delete
Cart and the checkout requests that price the cart all address it.

Retrieve or Create Cart returns the cart it retrieved or created, and runs first,
so it is the source.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@roncodes
roncodes merged commit 979cc8d into main Aug 12, 2026
1 check passed
@roncodes
roncodes deleted the fix/capture-cart-id branch August 12, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant