Skip to content

Get Wishlist Items

Retrieve the authenticated customer's wishlist items for the current channel.

Endpoint

GET /api/shop/wishlists

Request Headers

HeaderRequiredDescription
Content-TypeYesapplication/json
X-STOREFRONT-KEYYesYour storefront API key
AuthorizationYesCustomer Bearer token (Bearer <accessToken>)

Query Parameters

ParameterRequiredDefaultDescription
sortNoidColumn to sort by — id or created_at. The compound form created_at-desc (<column>-<direction>) is also accepted.
orderNoascSort direction — asc or desc. Use desc to return the most recently added items first.

By default the wishlist is returned oldest-first (the order items were added). To show the newest item at the top, pass ?sort=created_at&order=desc (or the shorthand ?sort=created_at-desc).

Response Fields (200 OK)

FieldTypeDescription
idintegerWishlist item ID
productobjectAssociated product (id, name, sku, type, price, baseImageUrl)
customerobjectCustomer who added the item (id, email)
channelobjectChannel where the item was added (id, code)
createdAtstringTimestamp when the item was added
updatedAtstringTimestamp when the item was last updated

TIP

The response is a plain JSON array of wishlist items. Pagination metadata is exposed via the X-Total-Count / X-Page / X-Per-Page / X-Total-Pages response headers.

Use Cases

  • Display the customer's wishlist page
  • Show a wishlist count in navigation
  • Build saved-for-later product lists

Notes

  • Wishlist items are scoped to the customer and the current channel.
  • Guests cannot have wishlists — a valid customer token is required.

Released under the MIT License.