Jump to content

Got "Invalid new order status" when add order via web service


Recommended Posts

I'm trying to create an order via Web Service but always get back "Invalid new order status" error message.

 

Appreciate if someone could point out my mistake.

 

Below are the Order XML I sent:

 

 

<?xml version="1.0" encoding="UTF-8"?>

<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">

<order>

<id></id>

<id_address_delivery>2</id_address_delivery>

<id_address_invoice>2</id_address_invoice>

<id_cart>8</id_cart>

<id_currency>1</id_currency>

<id_lang>2</id_lang>

<id_customer>1</id_customer>

<id_carrier></id_carrier>

<module>cheque</module>

<invoice_number>0</invoice_number>

<invoice_date>0000-00-00 00:00:00</invoice_date>

<delivery_number>0</delivery_number>

<delivery_date></delivery_date>

<valid>0</valid>

<current_state>2</current_state>

<secure_key>47ce86627c1f3c792a80773c5d2deaf8</secure_key>

<payment>Chèque</payment>

<recyclable></recyclable>

<gift></gift>

<gift_message></gift_message>

<total_discounts></total_discounts>

<total_paid>100</total_paid>

<total_paid_real>100</total_paid_real>

<total_products></total_products>

<total_products_wt></total_products_wt>

<total_shipping></total_shipping>

<carrier_tax_rate></carrier_tax_rate>

<total_wrapping></total_wrapping>

<shipping_number></shipping_number>

<conversion_rate></conversion_rate>

<associations>

<order_rows>

<order_row>

<id></id>

<product_id>7</product_id>

<product_attribute_id>0</product_attribute_id>

<product_quantity>1</product_quantity>

<product_name></product_name>

<product_price></product_price>

</order_row>

<order_row>

<id></id>

<product_id>9</product_id>

<product_attribute_id>0</product_attribute_id>

<product_quantity>1</product_quantity>

<product_name></product_name>

<product_price></product_price>

</order_row>

</order_rows>

</associations>

</order>

</prestashop>

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...