Add a product to the customer's wishlist
POST
/customers/me/wishlist
Idempotent: 201 + added: true when saved, 200 + added: false when it was already there. The product must be visible on the storefront, else 404 PRODUCT_NOT_FOUND. A vendor SOURCE product id is accepted and resolved to the marketplace copy the storefront lists — the stored (and returned) productId is always the listed one. At most 500 items per customer: beyond that 409 WISHLIST_FULL (re-adding an existing item still answers 200). The customer is the token's; any other body field is rejected (400).
Auth: Bearer JWT required; allowed realms: customer.
Authorizations
bearerAuth
Jeton client obtenu par POST /auth/login (ou /auth/register), renouvelé par POST /auth/refresh.
Type
HTTP (bearer)
Request Body
application/json
JSON "productId": "string"
{
}
Responses
Already in the wishlist (idempotent replay).
application/json
JSON "ok": true, "data": { "productId": "string", "added": true, "count": 0 }
{
}