magento-module-wishlist-api icon indicating copy to clipboard operation
magento-module-wishlist-api copied to clipboard

Unable to add product in wishlist for new customer

Open dodiya-divyarajsinh opened this issue 6 years ago • 1 comments

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

  1. Magento 2 with mediaman/module-wishlist-api Module

Steps to reproduce

  1. POST /V1/customers with Payload { "customer": { "email": "[email protected]", "firstname": "John", "lastname": "Doe" }, "password": "test@123" }

  2. POST /V1/integration/customer/token with Payload { "username": "[email protected]", "password": "test@123" } this will return token

  3. PUT /V1/wishlist/24-MG04 here 24-MG04 is SKU and pass Token in Header Like 'authorization' => 'Bearer jtsyyalej4eavh931tc663x4qro7cyws'

Expected result

  1. true

Actual result

  1. { "message": "We can't specify a wish list." }

dodiya-divyarajsinh avatar Nov 14 '17 10:11 dodiya-divyarajsinh