Jump to content

How to correctly change the status of your order by WebService ?


Recommended Posts

Hi there,
I have a problem with the change of status of the order in PS. I still get the same error:


<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[85]]></code>
<message><![CDATA[Validation error: "Property Order->id_address_delivery is not valid"]]></message>
</error>
</errors>
</prestashop>
 

 

I tried to solve it in different ways, eg :
 

1. Test
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<order>
<id>
8
</id>
<id_address_delivery xlink:href="http://myshop/api/addresses/8">
8
</id_address_delivery>

 

2. Test

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<order>
<id>
8
</id>
<id_address_delivery>
8
</id_address_delivery>

 

3.Test

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<order>
<id>
8
</id>
<id_address_delivery xlink:href="http://myshop/api/addresses/8">

</id_address_delivery>

 

4.Test

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<order>
<id>
8
</id>
<id_address_delivery/>

Response :
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<errors>
<error>
<code><![CDATA[85]]></code>
<message><![CDATA[Validation error: "Property Order->id_address_delivery is empty"]]></message>
</error>
</errors>
</prestashop>


Please help

Edited by jbike (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...