Jump to content

Webservice combinations not updating into the backoffice


joel0101

Recommended Posts

Dear friends,

I am developping a Java module for my client that needs to update his inventory on the PS platform periodically from the quantities in his POS system. I am using Java with JAXB/Jersey libraries to get the combinations and update them. The Http PUT request goes well and the combination gets updated along with a 200 - OK response and no error

 
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<combination>
<id><![CDATA[170]]></id>
<id_product xlink:href="LINK"><![CDATA[52]]></id_product>
....
<quantity><![CDATA[3]]></quantity>
.....
</combination>
</prestashop>
 
On a GET request I see the quantity field takes my new value; however the change is not reflected in the backoffice. I tried on these two URIs
HTTP PUT on mysite.com/api/combinations/170
HTTP PUT on mysite.com/api/combinations/170?schema=synopsis
 
Any idea why it would not gets updated? Is there like a commit call that I have to do or something? Any help is appreciated.
Regards,
Joel 
Edited by joel0101 (see edit history)
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...