JavaScript
import { createSpreeClient } from '@spree/sdk' const client = createSpreeClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const wishlist = await client.store.wishlists.get('wl_abc123', { expand: 'wished_items', }, { bearerToken: '<token>', })
{ "id": "wl_UkLWZg9DAJ", "name": "My Wishlist", "token": "Z9ceWN6JEScradeaE1xhS6ic", "created_at": "2026-03-06T16:06:51.758Z", "updated_at": "2026-03-06T16:06:51.758Z", "is_default": false, "is_private": true }
Publishable API key for store access
JWT token for authenticated customers
Expand wished_items
Comma-separated list of fields to include (e.g., name,slug,price). id is always included.
wishlist found
Show child attributes
Was this page helpful?