Hello,
Can you please confirm if product/n_day_sales is ref the sales by sku of the current day server time (not 24 hour period) based on the timestamp of the pull?
Thanks,
Sergio
It’s based on the CST now() timestamp - the delta of n days.
Thank you, Sophie.
- Would you please provide us an example of how to call it?
While http://api.ordoro.com/product/n_day_sales/ works, http://api.ordoro.com/product/n_day_sales/2/ will not work. What is the correct way to inform the delta of n days?
Regards!
Sergio
Shopie
,
looks like we have figured it out:
/product/n_day_sales/?days=10
Just to make sure, when we say 10 days from today June-19, 5 PM CST (), does is go back up to Jun-9 00:00 AM CST or to Jun-9
2 PM CST?
Thanks,
Sophie, in addition to this question
- Just to make sure, when we say 10 days from today June-19, 5 PM CST (), does is go back up to Jun-9 00:00 AM CST or to Jun-9
2 PM CST?
- We are not being able to conciliate what we see under the Analytics tab and the API response.
The attached image shows the highest selling products from Jun-19-29 to Jun-19-18 and the API queries no days what I suppose should be today as the n days delta to the current day should be 0 (/?days=0) won’t work.
As you can observe, the values will not match: https://screencast.com/t/nNmk5nSYk
- when the API is called without the days parameter, does it mean “today”?
Thanks in advance!!!
Sergio
Hello, Sophie! Do you have any updates?
thanks!
Hi Sergio,
- Just to make sure, when we say 10 days from today June-19, 5 PM CST (), does is go back up to Jun-9 00:00 AM CST or to Jun-9 2 PM CST?
If you call it with days=10 on June 19 at 5 PM CST, it would go back to June 9 at 5 PM CST.
- We are not being able to conciliate what we see under the Analytics tab and the API response.
The attached image shows the highest selling products from Jun-19-29 to Jun-19-18 and the API queries no days what I suppose should be today as the n days delta to the current day should be 0 (/?days=0) won’t work.
The analytics tab uses a different internal service and API (which, unfortunately, is not readily available for public consumption). In the provided screenshot, you are seeing the analytics page results for only the day of June 18. The /n_day_sales
query is returning the previous 30 days worth of sales.
- when the API is called without the days parameter, does it mean “today”?
If it is called without the days parameter, it defaults to 30 days.
We got it now. Thank you for your reply.