Skip to main content

Add Product to Wishlist

PUT 

/api/portal/wishlist/items/:product

Add a product to the account wishlist, creating the wishlist on first use. Idempotent: adding a product that is already on it changes nothing. Returns the wishlist state: list_id, count (products on the wishlist) and in_wishlist (true).

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

Returns 404 when the product is not in the account's catalog. Refused with 403 during a merchant staff view-as session, and for a buyer with the Viewer role.

Authentication: Requires a portal Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type