I've been trying to get this working for hours now but can't figure it out.
What I want to do is, via REST, change the status of an Order object from '2' to '9'. Actually, I'd just like to be able to change anything on an Order at this point. Nothing appears to be working.
I've tried submitting the following through the REST Test interface:
<data>
<COM_Order>
<OrderNote>9</OrderNote>
</COM_Order>
</data>
The URL it was submitted to: /rest/ecommerce.order/547
If I do a GET on that URL I receive:
<data><COM_Order>
<OrderID>547</OrderID>
...<snip>...
<OrderStatusID>2</OrderStatusID>
<OrderCurrencyID>1</OrderCurrencyID>
<OrderCustomerID>3</OrderCustomerID>
<OrderCreatedByUserID>53</OrderCreatedByUserID>
<OrderNote>Test</OrderNote>
...<snip>...
I cut out some of the fields to keep it short.
I thought I had everything done right according to the specs. Aside from using the REST Testing UI I also cooked up a way to submit them via the command line in Linux. That's not working either, but it does allow me to view all of the HTTP headers.
The request headers:
PUT /rest/ecommerce.order/547?format=xml HTTP/1.1
Authorization: Basic [REDACTED]
User-Agent: curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
Host: [REDACTED]
Accept: */*
Content-Type: text/xml
Content-Length: 67
Expect: 100-continue
And then I get a 100 continue and HTTP 200 OK message back from IIS.
I've tried some other stuff too. PUTting to a URL of /rest/ecommerece.order/<order guid>
I have tried ?format=xml on the URL, tried with it off, also tried JSON but that didn't fly either.
I've tried keeping the OrderID in the XML package too. I've also tried the GUID.
At one point McBeev and I fired up SQL profiler just to see if it was doing ANYTHING on the server and couldn't detect any action.
Software version is v6.0.4323.
If anybody has an idea I'm all ears.