Skip to content

Search docs

Find pages, headings, and concepts. Press ⌘K or Ctrl+K to toggle.

Shop API

Org-scoped cart and checkout under /api/shop/[orgSlug].

Shop cart APIs live under /api/shop/[orgSlug]/ (not /api/v1). The path slug must match the authenticated org.

Endpoints

MethodPathDescription
POST/api/shop/[orgSlug]/cart/itemsAdd a variant to the user's cart.
PATCH/api/shop/[orgSlug]/cart/items/[itemId]Update quantity.
DELETE/api/shop/[orgSlug]/cart/items/[itemId]Remove a line.
POST/api/shop/[orgSlug]/cart/[cartId]/checkoutStart checkout for a cart snapshot.
POST/api/shop/webhooks/ucpMerchant UCP webhook (provider-verified, no session).

See Shop for the dashboard UI flows.