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

# Orders Feed

> Pull recent restaurant orders into reporting, accounting, or delivery systems.

The order feed returns recent orders for the API key workspace.

Use it for scheduled exports, lightweight reporting syncs, and accounting integrations.

## REST Request

```text theme={null}
GET /api/v1/orders/external-feed
```

```bash theme={null}
curl "https://api.plato.ae/api/v1/orders/external-feed?apiKey=$PLATO_API_KEY&date=2026-06-17"
```

## Query Parameters

| Parameter | Type   | Notes                                                |
| --------- | ------ | ---------------------------------------------------- |
| `apiKey`  | string | Required for the REST route.                         |
| `date`    | string | Optional start date. Uses the workspace time zone.   |
| `endDate` | string | Optional end date. Date ranges cannot exceed 5 days. |

## Permissions

The API key role needs:

```text theme={null}
restaurant:order:read
```

## Response

```json theme={null}
{
  "count": 2,
  "workspaceId": "workspace_123",
  "data": [
    {
      "id": "order_123",
      "referenceNumber": 1042,
      "status": "COMPLETED",
      "subTotal": 120,
      "vatAmount": 6,
      "promoCodeDiscount": 0,
      "discount": 0,
      "totalPriceWithoutDiscount": 126,
      "totalWithoutCharges": 126,
      "totalPrice": 126,
      "chargesDiscountable": [],
      "chargesNonDiscountable": [],
      "payments": [
        {
          "id": "payment_123",
          "type": "SALE",
          "method": "CARD",
          "totalAmount": 126,
          "currency": "AED",
          "status": "PAID",
          "refundMetadata": null
        }
      ],
      "createdAt": "2026-06-17T08:20:00.000Z"
    }
  ]
}
```

## Limits

* The feed returns up to 50 orders per request.
* Date ranges cannot exceed 5 days.
* The REST route is rate limited. If you receive `429`, wait before retrying.

## Good Sync Pattern

1. Run the feed on a schedule.
2. Store the last successful date range in your system.
3. Pull a small date range.
4. Upsert orders by `id`.
5. Keep payment ids for reconciliation.

Use the workspace time zone when choosing date windows.
