M Mukdi Docs

Storefront forms

Verified · Theme API 1

Exact Theme API 1 contracts (verified against Go storefront).

Add to cart

POST /cart/add

Field Required Notes
id yes Variant id (not variant_id)
quantity no Defaults to 1

Update line

POST /cart/update

Field Required
line 1-based line index or id (variant id)
quantity absolute quantity

Remove / change

POST /cart/change — same fields; quantity=0 removes the line.

Checkout

POST /checkout — email, optional discount_code, optional country (ISO-2). Redirects to Stripe.

Account

POST /account/login (email), POST /account/verify (email, code), POST /account/logout.


Blueprint source: complete Theme Documentation Specification. Features not labeled Verified are not guaranteed.