magento-module-wishlist-api
magento-module-wishlist-api copied to clipboard
Unable to add product in wishlist for new customer
Unable to add product in wishlist for new customer
When new user created using REST and than call add wishlist it will not add product in wishlist and gives error "We can't specify wishlist".
Preconditions
- Magento 2 with mediaman/module-wishlist-api Module
Steps to reproduce
-
POST /V1/customers
with Payload{ "customer": { "email": "[email protected]", "firstname": "John", "lastname": "Doe" }, "password": "test@123" }
-
POST /V1/integration/customer/token
with Payload{ "username": "[email protected]", "password": "test@123" }
this will return token -
PUT /V1/wishlist/24-MG04
here 24-MG04 is SKU and pass Token in Header Like'authorization' => 'Bearer jtsyyalej4eavh931tc663x4qro7cyws'
Expected result
-
true
Actual result
-
{ "message": "We can't specify a wish list." }