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
from | string | |
---|---|---|
to | string |
Responses
200 OK
startDate | string | |
---|---|---|
endDate | string | |
totalIncome | number | |
totalCostOfSales | number | |
totalExpenses | number | |
totalOtherIncome | number | |
totalOtherExpenses | number | |
netOtherIncome | number | |
grossProfit | number | |
netProfit | number | |
incomes | array[object] | |
name | string | |
amount | number | |
costOfSales | array[object] | |
name | string | |
amount | number | |
expenses | array[object] | |
name | string | |
amount | number | |
otherIncomes | array[object] | |
name | string | |
amount | number | |
otherExpenses | array[object] | |
name | string | |
amount | number |
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
}
]
}