E-Commerce Order Analysis: 1. Requirements
E-Commerce Order Analysis: 1. Requirements
1. Requirements:
YourtaskistoretrieveashopsordersfromtheTackThisAPIanddisplayusefuldata
analysisfrompastorders.
Youwillberequiredtousethefollowingtechnologies:
jQueryorAngularJSorotherjavascriptbasedframework
UsethistoreaddatafromTackThisAPI
Highcharts.js(
http://www.highcharts.com/
)
Usethistocreatejavascriptchart
Bootstrap(
http://getboostrap.com
)
UsethistobeautifullylayoutyourHTMLpage
ShopOrderAPIEndpoint:
Inthisexample,youwillbeusingshopordersfromthisendpoint:
http://api.tackthis.com/shop/1/orders?shop_id=1
Notethatthereareatotalof4pages.Toqueryforotherpagessuchaspage2,
http://api.tackthis.com/shop/1/orders?shop_id=1&page=2
Whatinformationdoesthemerchantneed?
1. PercentageDistributionofordersintermsofPaymentStatus.Thestatusesareas
follows:
'0'=>'AwaitingPayment',
'1'=>'PaymentReceived',
'2'=>'PaymentUpdated',
'3'=>'Completed',
'4'=>'Refunded',
'5'=>'Refunded(Partially)',
'6'=>'Cancelled',
'7'=>'Failed',
'8'=>'Expired'
Youshouldusethedatafromfieldname:
payment_status,
payment_status_text(optional)
2. Numberofordersforthepast6months,groupedbymonth.(October,November,
December,January,February,March)
Dateoforderislocatedinfieldname:
created_at
2. Submission:
Youmayeither:
Createarepoandpublishthesourcecodeon
http://github.com/
,or
sendusthezipfileoftheapplication.
Pleasesendusthelink/ziptothesourcecodeby
24thMarch,2015
.