Wishlists
The lists of products the visitors of the website saved with the heart of the storefront — a guest's one list, a signed-in customer's default list and named ones — read as they are. :top_products reports the products saved most, by how many visitors keep them. Read only: a list is its visitor's to change.
List wishlists
Lists the website's lists of saved products — the guests' and the customers' — the most recently changed first, without their products. filter takes customer_id — every list of one customer: their default list and their named ones — and update_time; order_by takes update_time.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: update_time desc. Sortable: update_time.
filterAIP-160 subset (§8). Filterable: customer_id, update_time. A field outside the list is INVALID_ARGUMENT.
List wishlists › Responses
One page of wishlists.
This page of wishlists, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Get wishlist
A list of products a visitor of the website saved with the heart of the storefront: a guest's one list, or one of a signed-in customer's — their default list and up to 10 named ones. Its visitor changes it on the storefront; here it is only read, its products a page at a time. A product deleted from the catalog leaves every list.
path Parameters
website_idId of the parent website.
wishlist_idId of the parent wishlist.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get wishlist › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
customer_idThe website's customer whose list it is; absent on a guest's. customer_id = "…" lists every list of one customer: their default list and up to 10 named ones.
display_nameThe name the customer gave a named list, 1 to 60 characters, never twice among one customer's lists. Empty on the default list — a guest's one list, and the first of a customer's — which the storefront calls «Favorites».
is_defaultWhether this is its visitor's default list: the one without a name. A guest's list always is; a customer has one.
item_countHow many products the list holds, at most 250 — read them with the list's items.
expire_timeWhen a guest's list is deleted unless its visitor changes it before: 90 days after its last change. Absent on a customer's list, which lives as long as the customer.
Top products (wishlists)
The report of the products the website's visitors saved most: products[], each {product_id, display_name, sku, visitor_count, latest_add_time}, by visitor_count — how many visitors keep the product in at least one of their lists — down, products of one count by product_id. A customer is one visitor however many of their lists hold the product, and every guest's list is a visitor of its own; latest_add_time is when it was last saved into any list. display_name and sku are the catalog's at the moment of the read, sku only on a product of a single variant. 50 products a page, at most 100 (page_size), the next with next_page_token, how many there are in all in total_size; neither filter nor order_by is taken. Nothing is stored: every call counts the lists as they are.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeHow many products a page holds: 50 by default, at most 100 — more is clamped (§8).
page_tokenThe next_page_token of the previous page, for the next one.
Top products (wishlists) › Responses
The method’s own response object (§10).