Retrieving Sales Reporting Data

Follow

Retrieve Data for Sales Monthly

URL Query Parameters

  • year - (Optional) Year - in the format of 1999 or 2014
  • month - (Optional) Month - in the format of 01 to 12
  • direction - (Optional) prev or next, goes back or month from the current month

Call

GET /rest/reports/orders/monthly.json

Response

{
  "success":"1",
  "status":"We have fetched a monthly sales report",
  "count":4,
  "orders":{
    "days":[
      {
        "day":"3",
        "total":"463.52",
        "currency":"EUR",
        "count":"4"
      },
      {
        "day":"24",
        "total":"170.85",
        "currency":"EUR",
        "count":"1"
      }
    ],
    "days_in_month":"31",
    "month":"July",
    "year":"2013"
  }
}

Retrieve Data for Sales Yearly

 

URL Query Parameters

  • year - (Optional) Year - in the format of 1999 or 2014
  • direction - (Optional) prev or next, goes back or forward a year from current year

Call

GET /rest/reports/orders/yearly.json

Response

{
   "success":1,
   "status":"We have fetched a yearly sales report",
   "count":3,
   "orders":{
      "months":[
         {
            "month":"5",
            "total":"409.34",
            "currency":"GBP",
            "count":"18",
"days_in_month: "31",
            "days":[
               {
                  "day":"8",
                  "total":"23.44",
                  "currency":"GBP",
                  "count":"1"
               }
            ]
         },
         {
            "month":"7",
            "total":"805.80",
            "currency":"GBP",
            "count":"4",
"days_in_month: "31",
            "days":[
               {
                  "day":"21",
                  "total":"511.13",
                  "currency":"GBP",
                  "count":"2"
               }
            ]
         },
         {
            "month":"4",
            "total":"1,547.09",
            "currency":"GBP",
            "count":"11",
"days_in_month: "30",
            "days":[
               {
                  "day":"10",
                  "total":"1,547.09",
                  "currency":"GBP",
                  "count":"11"
               }
            ]
         },
         {
            "month":"1",
            "total":"1,450.99",
            "currency":"GBP",
            "count":"11",
"days_in_month: "31",
            "days":[
               {
                  "day":"29",
                  "total":"1,189.83",
                  "currency":"GBP",
                  "count":"9"
               }
            ]
         }
      ],
      "months_in_year":12,
      "year":"2014",
      "years" : "5"
   }
}
Have more questions? Submit a request

Comments

Powered by Zendesk