Customer API giving different response
-
i guess there is same problem in params too , i tried every tabs in post to send data
-
Shivam i have checked i guess there is problem in validation of a request
if i give right credentials with proper password 6digit and unique emailID then api works, if i try to register with emailID which my DB already exist , and password is less than 6 digit then this problem comesi have updated the code in
packages/Webkul/API/Http/Controllers/Shop/CustomerController.php
check this out -
Hi @Ashishaxat ,
Yes when You create the customer through api request you need to follow the validation rules as well like email must be in valid form and password should be 6 character long, then if you don't follow validation rule it return the error message in response.
Thanks
-
customers get api giving same html response,
-
same is with add to cart api as well
i guess api should json response , why its showing some html data ?
-
I am also concerned with the above. I have been testing this but API is not responding with correct error messages. So making difficult for any integrations.
-
@Ashishaxat ,
Yes @Ashishaxat i got your issue but you can't access the customer listing without login first you need to login through customer/login api then you can access those api.Thnaks
-
Here you have to choose the product variant like if you want to add simple product in cart then you only need to pass only product id but when you want to add configurable product in cart then you need to pass the product_id as well as product variant.
Thanks
-
Thanks @shivam-webkul and noted
how API will check whether customer is logged In ? as u can see response of login api , there is no token in response
-
You can also get token of logged in customer
please have a look : https://forums.bagisto.com/topic/149/i-need-to-deliver-the-api-token-from-the-json-response-not-the-header
let me know if you still found any issue regarding this.
Thanks