Customer wishlist containing products they want to purchase later. Supports named wishlists, public/private visibility, and multiple items. Used for gift registries and saved-for-later functionality.
https://api.mockly.codes/wishlists?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/wishlistsGet a collection of wishlists
/commerce/wishlists/wishlists/:idGet a single wishlist by ID
/commerce/wishlists/:id/wishlists/metaGet resource metadata and schema
/commerce/wishlists/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/wishlists?q=laptopGET https://api.mockly.codes/wishlists?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 wishlists
fetch('https://api.mockly.codes/wishlists?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/wishlists?count=10'
)
data = response.json()curl "https://api.mockly.codes/wishlists?count=10"fetch('https://api.mockly.codes/wishlists?nocache=true')idintegerUnique identifier for the wishlist
random_intuser_idintegerForeign key reference to the user who owns this wishlist
random_intnamestringName or title of the wishlist (e.g., Birthday Wishlist, Wedding Registry, My Favorites)
sentenceitemsarrayArray of product identifiers or names saved in this wishlist
tagsis_publicbooleanWhether the wishlist is publicly visible and shareable, or private to the user
booleancreated_atstringTimestamp when the wishlist was created
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request