Jump to content

Problema Api Webservice Nella Creazione Di Un Order_Slip


gmacario
 Share

Recommended Posts

Buongiorno,

Utilizzando le Api Webservice messe a disposizione, stiamo cercando di creare una nota di credito per un ordine.

Facendo un test preventivo utilizzando un REST/HTTP API CLIENT ci viene restituito questo errore :

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[123]]></code>
<message><![CDATA[Parameter "total_products_tax_excl" can't be set to the object "OrderSlip"]]></message>
</error>
<error>
<code><![CDATA[123]]></code>
<message><![CDATA[Parameter "total_products_tax_incl" can't be set to the object "OrderSlip"]]></message>
</error>
<error>
<code><![CDATA[123]]></code>
<message><![CDATA[Parameter "total_shipping_tax_excl" can't be set to the object "OrderSlip"]]></message>
</error>
<error>
<code><![CDATA[123]]></code>
<message><![CDATA[Parameter "total_shipping_tax_incl" can't be set to the object "OrderSlip"]]></message>
</error>
</errors>
</prestashop>
  HttpStatusCode: BadRequest

Provando ad escludere invece la parte riguardante i suddetti campi ovviamente (come da schema presente nelle api dove i campi sono required) ci restituisce :

<?xml version="1.0" encoding="UTF-8" ?>
<prestashopxmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code>
<![CDATA[41]]>
</code>
<message>
<![CDATA[parameter "total_products_tax_excl" required]]>
</message>
</error>
</errors>
</prestashop>

Siamo in una fase di stallo. Qualcuno è riuscito a creare una order_slip via Webservice? Avete qualche suggerimento su come procedere?

Grazie.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More