I am creating some code which will receive orders from a database, parse the order object into JSON and then create an order on a Woocommerce site using the Woocommerce python API. I get a response of 201, along with some links, however the order is not created correctly. I can see in the dashboard on Wordpress of the Woocommerce app that a new order has been added, along with an ID for it, however the shipping information, billing information or total cost has not been added, despite my JSON containing those fields. If I click on some of the links, I JSON for the newly-created order - again, without any shipping information or billing information.
I would be extremely grateful if any of you could point me to a solution for this problem. Here is my code:
Hi all,
I am creating some code which will receive orders from a database, parse the order object into JSON and then create an order on a Woocommerce site using the Woocommerce python API. I get a response of 201, along with some links, however the order is not created correctly. I can see in the dashboard on Wordpress of the Woocommerce app that a new order has been added, along with an ID for it, however the shipping information, billing information or total cost has not been added, despite my JSON containing those fields. If I click on some of the links, I JSON for the newly-created order - again, without any shipping information or billing information.
I would be extremely grateful if any of you could point me to a solution for this problem. Here is my code:
The response:
What I see from the links:
Any help will be greatly appreciated.
Thank you in advance,
Heemogoblin