> ## Documentation Index
> Fetch the complete documentation index at: https://developers-docs.easyorders.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Missed orders

> Read the checkouts shoppers left unfinished, update the customer's details, and mark them completed.

Scopes: `read_missed_orders` to read, `write_missed_orders` to change (it includes `read_missed_orders`). Both are [protected](https://developers-docs.easyorders.ai/scopes.md): EasyOrders reviews your app's reason for them before they work for real merchants.

## What a missed order is

When a shopper fills part of the checkout form and leaves without ordering, the storefront saves what they typed as a **missed order**, so the merchant (or your app) can follow up and recover the sale.

* The storefront creates missed orders; an app cannot create one.
* A missed order is **deleted 30 days after it was created**. An app cannot delete one.
* Your app hears of new and changed missed orders through the `missed_orders/created` and `missed_orders/updated` events.

## The missed order

```json theme={"dark"}
{
  "id": "3e7a9c2d-5b8f-4e1a-9c6d-2b7f0e3a5c8d",
  "full_name": "Mona Hassan",
  "email": "",
  "phone": "+201001234567",
  "phone_alt": "",
  "country": "Egypt",
  "city": "Cairo",
  "address": "12 Tahrir St, Downtown",
  "sa_national_address": "",
  "payment_method": "cod",
  "note": "",
  "utm_source": "facebook",
  "utm_campaign": "winter-sale",
  "metadata": {},
  "funnel_id": null,
  "custom_currency": "",
  "is_digital": false,
  "products": ["Cotton Hoodie"],
  "reason": "",
  "can_convert_to_order": true,
  "is_completed": false,
  "masked": false,
  "masked_reason": null,
  "items": [
    { "id": "5c8d...", "product_id": "0b6f...", "variant_id": null, "product_name": "Cotton Hoodie", "quantity": 1, "price": 450, "is_upsell": false, "metadata": {} }
  ],
  "created_at": "2026-12-04T10:15:00Z",
  "updated_at": "2026-12-04T10:15:00Z"
}
```

The names follow [orders](https://developers-docs.easyorders.ai/api-reference/orders/overview.md): `city` is the governorate (the [shipping area](https://developers-docs.easyorders.ai/api-reference/shipping/overview.md)), and `items` are the cart items, each `price` the unit price. A missed order is what the shopper typed, so any field may be empty.

* `can_convert_to_order` is `true` when it has a name, a phone or an email, an address and a cart item: enough to turn it into an order.
* `is_completed` is its status: `true` once it is recovered or no longer to follow.

## Listing

[List missed orders](https://developers-docs.easyorders.ai/api-reference/missed-orders/list-missed-orders.md) is [paginated by cursor](https://developers-docs.easyorders.ai/concepts/pagination.md), oldest first unless `sort=created_at,DESC`. It takes no `filter`; its parameters are `limit`, `cursor`, `sort`, `created_since` and `updated_since` (RFC 3339 times, at or after). To keep your system in step, read with `updated_since` set to the time of your last read.

## Updating

[Update a missed order](https://developers-docs.easyorders.ai/api-reference/missed-orders/update-a-missed-order.md) changes only these fields, only the ones you send:

| Field | Rule |
| - | - |
| `full_name`, `country`, `city` | Up to 255 characters, one line, no `<`. |
| `address`, `sa_national_address` | Up to 1000 characters, one line, no `<`. |
| `phone`, `phone_alt` | 7 to 15 digits, optionally after `+`, separated by spaces, dashes, dots or parentheses. |
| `email` | A plain address, up to 255 characters. |
| `note` | Up to 2000 characters. Line breaks are kept; no `<`. |
| `is_completed` | Only `true`: a completed missed order cannot be reopened. |

* `null` is refused, and `""` empties a field. Text is trimmed.
* The cart items, payment method and metadata are read only.
* A request that changes nothing leaves `updated_at` as it was.

## Where missed orders live

Missed orders are kept by a separate EasyOrders service; the API passes your request on to it. When that service cannot be reached, every endpoint answers `503`, and you retry later. After a `503` on an update, read the missed order before retrying: the change may have been made.

```json theme={"dark"}
{
  "error": {
    "code": "service_unavailable",
    "message": "Missed orders are unavailable right now, try again later"
  }
}
```

## Hidden customer details

While a store has unpaid dues, its missed orders answer `masked: true` and `masked_reason: "store_overdue"`: the name keeps its first 2 letters then `****`; the email, phones, country, city and addresses are empty, and so is the metadata of the missed order and of its items.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.