Jump to content

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


jbike
 Share

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

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