Commerce Cart-preflight
Preflight an item into a fresh isolated commerce session without touching a customer cart. Sessions are ephemeral and payment/order creation is never attempted.
$0.004 / callPOST /commerce/cart-preflightx402 · Base
Use when
- can I add this item to a cart
- will this variant be accepted in the cart
- check cart quantity before checkout
Input example
{
"url": "https://shop.example/products/widget",
"variant_id": "123",
"quantity": 2
}
Canonical paid endpoint
https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/commerce/cart-preflight