Skip to main content
GET
/
{shopId}
/
analytics
Get revenue
curl --request GET \
  --url http://staging.qshop.ng/apiv2/{shopId}/analytics
{
  "data": {
    "orderTotal": [
      {
        "_id": null,
        "total": 5000
      }
    ],
    "product": 58,
    "revenue": [
      {
        "_id": null,
        "total": 10008000
      }
    ]
  },
  "msg": "Revenue aggregation successful",
  "success": true
}

Query Parameters

startDate
string
Example:

"2022-01-01"

endDate
string
Example:

"2022-11-21"

limit
string
Example:

"nolimit"

type
string
Example:

"revenue"

page
string
Example:

"1"

group
string
Example:

"month"

Response

200 - application/json

200

data
object
msg
string
Example:

"Revenue aggregation successful"

success
boolean
Example:

true