playmono Posted December 13, 2013 Share Posted December 13, 2013 (edited) Hi all,I'm new in Prestashop and I need to add some products via webservice.I have already added some customers but I'm unable to add products, every time I'm getting this error: This call to PrestaShop Web Services failed and returned an HTTP status of 400. That means: Bad Request. That dont explains so much what's happening.So, can someone post a good example to add a product?Thanks community. SOLVED:-In the file that includes "PrestaShopWebservice" class, for example, if you want to know what is wrong doing an "add", you need to do this before self::checkStatusCode(): var_dump($request['response']); Same in every function you want to know the result instead the HTTP ERROR. Edited December 16, 2013 by playmono (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now