Jump to content

Webservices output_format=JSON error


sjgoodz

Recommended Posts

Hey, I think I found a bug

This works - https://<webservice key>@<prestashop base url>/api/products/?display=[id,price,name]

This doesn't work - https://<webservice key>@<prestashop base url>/api/products/?display=[id,price,name]/?output_format=JSON

 

The error I get is saying 'The 'display' syntax is wrong.', does anyone know if I'm doing anything wrong?

Many thanks,

S

 

 

Link to comment
Share on other sites

  • 1 month later...

Hey,

You need to replace this :

https://<webservice key>@<prestashop base url>/api/products/?display=[id,price,name]/?output_format=JSON

By :

https://<webservice key>@<prestashop base url>/api/products/?display=[id,price,name]&output_format=JSON

 

You can use several parameters like that : yoururl/api/products/?param1=value1&param2=value2&.....

 

Best regards,

David

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...