Charts and dashboard data

Cashflow chart data

POST /statistic/cash_flow
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
{
  "from_date": "2014-01-01",
  "to_date": "2014-12-31"
}
Name Required Type Description
callback optional string Javascript-Callback
Name Required Type Description
from_date optional date (Format yyyy-mm-dd)
to_date optional date (Format yyyy-mm-dd)

The following scopes are needed:

  • finance_reports
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 920
Content-Type: application/json
{
  "values": [
    {
      "year": "2014",
      "month": "1",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "2",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "3",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "4",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "5",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "6",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "7",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "8",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "9",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "10",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "11",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    },
    {
      "year": "2014",
      "month": "12",
      "incoming": 0,
      "outgoing": 0,
      "balance": 0
    }
  ],
  "total": {
    "startDate": "2014-01-01",
    "endDate": "2014-12-31",
    "startBalance": 0,
    "endBalance": 0,
    "income": 0,
    "expense": 0
  }
}

Income & Expense chart data

POST /statistic/income_expense
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
{
  "from_date": "2014-01-01",
  "to_date": "2014-12-31"
}
Name Required Type Description
callback optional string Javascript-Callback
Name Required Type Description
from_date optional date (Format yyyy-mm-dd)
to_date optional date (Format yyyy-mm-dd)

The following scopes are needed:

  • finance_reports
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 660
Content-Type: application/json
{
  "values": [
    {
      "year": "2014",
      "month": "1",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "2",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "3",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "4",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "5",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "6",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "7",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "8",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "9",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "10",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "11",
      "income": 0,
      "expense": 0
    },
    {
      "year": "2014",
      "month": "12",
      "income": 0,
      "expense": 0
    }
  ],
  "total": {
    "income": 0,
    "expense": 0
  }
}

Top expenses chart data

POST /statistic/top_expenses
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
{
  "from_date": "2014-01-01",
  "to_date": "2014-12-31"
}
Name Required Type Description
callback optional string Javascript-Callback
Name Required Type Description
from_date optional date (Format yyyy-mm-dd)
to_date optional date (Format yyyy-mm-dd)

The following scopes are needed:

  • finance_reports
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 36
Content-Type: application/json
{
  "values": [

  ],
  "total": {
    "expenses": 0
  }
}

Total estimates chart data

POST /statistic/total_estimates
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
{
  "from_date": "2014-01-01",
  "to_date": "2014-12-31"
}
Name Required Type Description
callback optional string Javascript-Callback
Name Required Type Description
from_date optional date (Format yyyy-mm-dd)
to_date optional date (Format yyyy-mm-dd)

The following scopes are needed:

  • general
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 647
Content-Type: application/json
{
  "values": [
    {
      "year": "2014",
      "month": "1",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "2",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "3",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "4",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "5",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "6",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "7",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "8",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "9",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "10",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "11",
      "sent": 0,
      "accepted": 0
    },
    {
      "year": "2014",
      "month": "12",
      "sent": 0,
      "accepted": 0
    }
  ],
  "total": {
    "sent": 0,
    "accepted": 0
  }
}

Total payables chart data

POST /statistic/total_payables
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
callback optional string Javascript-Callback

The following scopes are needed:

  • general
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 259
Content-Type: application/json
{
  "values": [
    {
      "startDay": 0,
      "endDay": 30,
      "value": null,
      "percent": 0
    },
    {
      "startDay": 30,
      "endDay": 60,
      "value": null,
      "percent": 0
    },
    {
      "startDay": 60,
      "endDay": 90,
      "value": null,
      "percent": 0
    },
    {
      "startDay": 90,
      "endDay": null,
      "value": null,
      "percent": 0
    }
  ],
  "total": {
    "current": 0,
    "overdue": 0
  }
}

Total receivables chart data

POST /statistic/total_receivables
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
callback optional string Javascript-Callback

The following scopes are needed:

  • general
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 259
Content-Type: application/json
{
  "values": [
    {
      "startDay": 0,
      "endDay": 30,
      "value": null,
      "percent": 0
    },
    {
      "startDay": 30,
      "endDay": 60,
      "value": null,
      "percent": 0
    },
    {
      "startDay": 60,
      "endDay": 90,
      "value": null,
      "percent": 0
    },
    {
      "startDay": 90,
      "endDay": null,
      "value": null,
      "percent": 0
    }
  ],
  "total": {
    "current": 0,
    "overdue": 0
  }
}