which field to use as the timestamp from sales object

mhafeezmhafeez Member Posts: 1

I am using the following query to generate a custom sales report.

https://api.merchantos.com/API/Account/xxxxx/Sale.xml?load_relations=["SaleLines"]&createTime=>,2019-11-25 2019&shopID=1&completed=true&orderby=createTime&limit=100

I load saleLines as a relation. The sale object has timestamp, createTime, completeTime, and updateTime. The saleLines object also has fields timestamp, createTime, completeTime, and updateTime. I am looking for only completed sales. Which field should I used to determine when the sales was created (sale .createTime , sale.timestamp, saleLines .createTime , or saleLines.timestamp)?

Thank you.

1 comment

Sign In or Register to comment.