Errors
CART_EMPTY
CART_EMPTY
The request operates on an order whose cart contains no line items. Validation and placement both require at least one line item.
Reserved error code — not currently emitted by any endpoint. Partners may begin handling it defensively; backend will start emitting once wired in.
Summary
| Field | Value |
|---|---|
| HTTP status | 400 |
errorCategory | validation |
retryable | false |
When This Fires
POST /v1/marketplace/orders/validate— the cart attached to the order has zero line items.POST /v1/marketplace/orders/place— placement attempted on an empty cart.
Recommended Action
Add at least one line item to the cart before resubmitting:
- Re-open the menu (
GET /v1/marketplace/stores/{storeId}/catalog) and let the user select an item. - Add it via your cart-mutation flow.
- Resubmit
validate/place.
A retry without modifying the cart will fail with the same error.
Example
Code