Skip to main content

What an app can read

The wishlist API is a read-only view of the products customers have saved in a store. Use it to show a merchant what shoppers are saving, to power a back-in-stock or price-drop alert, or to re-fetch the wishlist a wishlist webhook pointed at. Wishlist writes are shopper actions on the storefront, so there are no create, update or delete routes here. An app reads a wishlist; it never edits one.

Authentication and scope

The store comes from the installation bound to your token, never from a header or query parameter. Both routes require the READ_WISHLIST scope. A call without it is refused with 403 naming the missing scope. READ_WISHLIST is its own scope, separate from READ_CUSTOMERS. It grants the saved products and the populated shopper identity (name, email, avatar) shown below.

Endpoints

All paths are under https://api.salesive.com/api/v1.

List wishlists

There is one wishlist per customer per store, so the list has at most one row per shopper. Rows are ordered by updatedAt, newest first.

Wishlist fields

Item fields

Items have no id of their own. Address a saved product by its product._id (and variant when present). A populated product is null if the product has since been deleted.

Get one wishlist

data is the same wishlist object shown above, not a list:
The lookup is scoped to your store, so a wishlist id from another store returns 404.

When to call it

  • After a wishlist webhook. wishlists/item_added and wishlists/item_removed carry the wishlist id as resourceId, not the product id. Call GET /wishlist/:id to read the current saved products. The event is notify-only and carries no items, and the same id is used for both add and remove, so one re-fetch works for either.
  • To watch saved products. List the store’s wishlists and compare each one with the current catalog to spot a product that is about to go out of stock or has dropped in price.
  • To show a merchant demand. Count how often a product appears across the store’s wishlists.

Errors

Next steps

Webhooks

The wishlist topics and the per-topic payload additions.

Carts

Read the cart a shopper is building right now.

Products

Resolve a saved product id to its current catalog values.

Money and units

How product prices and every other amount is expressed.