Report Profit And Loss GET

GET /api/account/{account}/accounting/{platform}/{id}/report/profitandloss

Run Profit and Loss Report.

URL Parameters

account*Account
platform*Connection Platform
id*Connection ID

Query Parameters

fromstring
tostring

Responses

200 OK
startDatestring
endDatestring
totalIncomenumber
totalCostOfSalesnumber
totalExpensesnumber
totalOtherIncomenumber
totalOtherExpensesnumber
netOtherIncomenumber
grossProfitnumber
netProfitnumber
incomesarray[object]
namestring
amountnumber
costOfSalesarray[object]
namestring
amountnumber
expensesarray[object]
namestring
amountnumber
otherIncomesarray[object]
namestring
amountnumber
otherExpensesarray[object]
namestring
amountnumber
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error

Example Success Response

{
  "startDate": "string",
  "endDate": "string",
  "totalIncome": 1,
  "totalCostOfSales": 1,
  "totalExpenses": 1,
  "totalOtherIncome": 1,
  "totalOtherExpenses": 1,
  "netOtherIncome": 1,
  "grossProfit": 1,
  "netProfit": 1,
  "incomes": [
    {
      "name": "string",
      "amount": 1
    }
  ],
  "costOfSales": [
    {
      "name": "string",
      "amount": 1
    }
  ],
  "expenses": [
    {
      "name": "string",
      "amount": 1
    }
  ],
  "otherIncomes": [
    {
      "name": "string",
      "amount": 1
    }
  ],
  "otherExpenses": [
    {
      "name": "string",
      "amount": 1
    }
  ]
}