Creates a cart and places an order in a single operation
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 namesse=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 | Variant ID not found |
ErrorNotEnoughStock | Insufficient inventory |
ErrorPaymentDeclined | Payment was declined |
ErrorStoreUnavailable | Merchant temporarily unavailable |