Skip to content

Customer Recent Order Items

Up to 5 most-recent distinct products the customer has ordered — the right-sidebar "Recent Order Items" panel on the Create-Order screen.

EndpointMethod
/api/admin/customers/{customerId}/recent-order-itemsGET

Mirrors the monolith: distinct product_id from order_items joined to orders, parent_id IS NULL, ordered by orders.created_at DESC, limited to 5. Each row carries the product type so the client can render type-specific UI. Requires an admin Bearer token.

Released under the MIT License.