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

Response Fields

Returns the standard { data, meta } envelope. Each row in data:

FieldTypeDescription
idintegerOrder item ID.
productIdintegerThe product.
skustringProduct SKU.
typestringProduct type — lets the client render type-specific UI.
namestringProduct name.
pricenumberUnit price.
formattedPricestringCurrency-formatted unit price.
productImagestring | nullProduct thumbnail URL.
additionalobject | nullExtra item attributes.

The list is the most-recently ordered products, distinct by product, newest first, limited to 5. Requires an admin Bearer token.

TIP

For how the Create-Order helper panels fit together, see the Create-Order Helpers overview.

Released under the MIT License.