# 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/marketfront/orders/validate`** — the cart attached to the order has zero line items.
- **`POST /v1/marketfront/orders/place`** — placement attempted on an empty cart.

## Recommended Action

Add at least one line item to the cart before resubmitting:

1. Re-open the menu (`GET /v1/marketfront/catalog-sets/{catalogSetId}`) and let the user select an item.
2. Add it via your cart-mutation flow.
3. Resubmit `validate` / `place`.

A retry without modifying the cart will fail with the same error.

## Example

```json
{
  "type": "https://developer.gett-tech.com/errors/CART_EMPTY",
  "title": "Bad Request",
  "status": 400,
  "detail": "The cart has no line items.",
  "instance": "/v1/marketfront/orders/validate",
  "requestId": "req_abc123",
  "timestamp": "2026-04-27T14:30:00.000Z",
  "errorCode": "CART_EMPTY",
  "errorCategory": "validation",
  "retryable": false
}
```
