Customer API giving different response
i was trying customer registeration api,
something it gives 404 and sometimes it gives html page in response
expected response should be "Customer created successfully"
but response is very strange ,
Hio @Ashishaxat ,
Here you did all the steps right but you sending the wrong data
fill the all required data in Params not in body .
Let me know if you still facing the issue.
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 comes
i have updated the code in
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.
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 ?
eolykab last edited by
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.
shivam-webkul last edited by shivam-webkul
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 @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
let me know if you still found any issue regarding this.