I am facing a very puzzling aspect of the REST API of Magento. Seemingly, the GET /Orders response does not return any date. This can't be right, sales orders are dated.
What am I missing here?
apirest
I am facing a very puzzling aspect of the REST API of Magento. Seemingly, the GET /Orders response does not return any date. This can't be right, sales orders are dated.
What am I missing here?
Best Answer
You are right. You should get the order date back. The field is called
created_at
.In case you are not getting it, check if it is allowed in the Attributes section.
System->Web Services->REST Attributes
and click on the user typeAdmin
.If you didn't test, and just looked at the link you mentioned in the question then you should try it. I think that link just offers an example. It's not the real thing.
I just did a test and here is what came back:
Notice the
created_at
field.I tested with JSON format, but I don't think that makes a difference.