Creates a cart and place an order with Full Cart API features
first_name (string): Customer’s first namelast_name (string): Customer’s last nameemail (string): Email addressphone (string): Phone numberaddress1 (string): Primary address linecity (string): City namestate_or_province (string): State/province codecountry (string): Country name or codepostal_code (string): ZIP or postal codeaddress2 (string): Secondary address linecompany (string): Company nameadd_to_cart_ref (object, required): Product reference
variant_id (string, required): Variant identifierproduct_id (string, optional): Product identifiervariant_handles (array[string], optional): Variant handle pathquantity (number, required): Quantity to purchase (minimum: 1)sse=true, the endpoint streams progress events:
creating-cart - Cart creation starteditem-added - Item added to cart (includes cart data)shipping-updated - Shipping info set (includes cart data)order-placed - Order successfully placed (includes order data)error - Error occurred (includes error details)| Code | Description |
|---|---|
ErrorInvalidInputBody | Request validation failed |
ErrorProductNotFound | Product reference not found |
ErrorNotEnoughStock | Insufficient inventory |
ErrorPaymentDeclined | Payment was declined |
ErrorStoreUnavailable | Merchant temporarily unavailable |