---
title: "Get a customer's recent order items"
method: GET
path: "/customers/{customerId}/recent-order-items"
tags: ["Admin Customers"]
---

# Get a customer's recent order items

`GET /customers/{customerId}/recent-order-items`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/customers/{customerId}/recent-order-items`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/customers/:customerId/recent-order-items/get.ts> (a function with typed inputs; its response is checked against the schema)

Top-level (`parent_id IS NULL`) items from the customer's most-recent orders, distinct by product, limited to 5.

## Path parameters

- `customerId` integer, required

## Response `200`

Up to 5 recent items.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
