Jump to content

TanvirSharif

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by TanvirSharif

  1. Here is my API url of a PUT method: https://{{api_key}}@prestashop.test/api/combinations/10 This is by body data in XML format: <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <combination> <id><![CDATA[10]]></id> <id_product xlink:href="https://prestashop.test/api/products/2"><![CDATA[2]]></id_product> <location><![CDATA[]]></location> <ean13><![CDATA[]]></ean13> <isbn><![CDATA[]]></isbn> <upc><![CDATA[]]></upc> <mpn><![CDATA[]]></mpn> <quantity>200</quantity> <reference><![CDATA[demo_3]]></reference> <supplier_reference><![CDATA[demo_3_63]]></supplier_reference> <wholesale_price><![CDATA[0.000000]]></wholesale_price> <price><![CDATA[0.000000]]></price> <ecotax><![CDATA[0.000000]]></ecotax> <weight><![CDATA[0.000000]]></weight> <unit_price_impact><![CDATA[0.000000]]></unit_price_impact> <minimal_quantity><![CDATA[1]]></minimal_quantity> <low_stock_threshold><![CDATA[]]></low_stock_threshold> <low_stock_alert><![CDATA[0]]></low_stock_alert> <default_on><![CDATA[]]></default_on> <available_date><![CDATA[0000-00-00]]></available_date> <associations> <product_option_values nodeType="product_option_value" api="product_option_values"> <product_option_value xlink:href="https://prestashop.test/api/product_option_values/2"> <id><![CDATA[2]]></id> </product_option_value> </product_option_values> <images nodeType="image" api="images/products"/> </associations> </combination> </prestashop> It gives me 200 ok but the quantity remains same as before. not updated to 200 as I need to set it. Can anyone tell me why and what I should do.
×
×
  • Create New...