AlphaAlpha Docs

Monthly Aggregate Report

API calls concerning monthly aggregate reports

Add a subsidiary to a monthly aggregate report

POST
/monthly-aggregate-report
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/monthly-aggregate-report" \  -H "Content-Type: application/json" \  -d '{    "balanceData": {      "cashAmounts": [        {          "amount": 0.1,          "currency": "string"        }      ],      "totalICTradePayable": 0.1,      "totalICTradeReceivable": 0.1,      "totalLoansPayable": 0.1,      "totalLoansReceivable": 0.1,      "totalRC": 0.1,      "totalRCsAndLoansPayable": 0.1,      "totalRCsAndLoansReceivable": 0.1,      "totalThirdPartyAP": 0.1,      "totalThirdPartyAR": 0.1    },    "month": "string",    "profitLossData": {      "cogs": 0.1,      "depreciationExpenses": 0.1,      "exchangeRateDifferences": 0.1,      "exchangeRateDifferencesUnrealized": 0.1,      "financialGain": 0.1,      "grossProfit": 0.1,      "housingExpenses": 0.1,      "interest": 0.1,      "netProfit": 0.1,      "operatingResult": 0.1,      "otherIncome": 0.1,      "otherOperatingExpenses": 0.1,      "personnelExpenses": 0.1,      "revenue": 0.1,      "revenueIC": 0.1,      "totalExpenses": 0.1,      "totalIncome": 0.1,      "totalRevenue": 0.1    },    "subsidiary": "string"  }'
{
  "aggregate": {
    "balanceData": {
      "cashAmounts": [
        {
          "amount": 0.1,
          "currency": "string"
        }
      ],
      "totalICTradePayable": 0.1,
      "totalICTradeReceivable": 0.1,
      "totalLoansPayable": 0.1,
      "totalLoansReceivable": 0.1,
      "totalRC": 0.1,
      "totalRCsAndLoansPayable": 0.1,
      "totalRCsAndLoansReceivable": 0.1,
      "totalThirdPartyAP": 0.1,
      "totalThirdPartyAR": 0.1
    },
    "profitLossData": {
      "cogs": 0.1,
      "depreciationExpenses": 0.1,
      "exchangeRateDifferences": 0.1,
      "exchangeRateDifferencesUnrealized": 0.1,
      "financialGain": 0.1,
      "grossProfit": 0.1,
      "housingExpenses": 0.1,
      "interest": 0.1,
      "netProfit": 0.1,
      "operatingResult": 0.1,
      "otherIncome": 0.1,
      "otherOperatingExpenses": 0.1,
      "personnelExpenses": 0.1,
      "revenue": 0.1,
      "revenueIC": 0.1,
      "totalExpenses": 0.1,
      "totalIncome": 0.1,
      "totalRevenue": 0.1
    },
    "subsidiary": "string"
  },
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "id": "string",
  "subsidiaryReport": [
    {
      "balanceData": {
        "cashAmounts": [
          {
            "amount": 0.1,
            "currency": "string"
          }
        ],
        "totalICTradePayable": 0.1,
        "totalICTradeReceivable": 0.1,
        "totalLoansPayable": 0.1,
        "totalLoansReceivable": 0.1,
        "totalRC": 0.1,
        "totalRCsAndLoansPayable": 0.1,
        "totalRCsAndLoansReceivable": 0.1,
        "totalThirdPartyAP": 0.1,
        "totalThirdPartyAR": 0.1
      },
      "profitLossData": {
        "cogs": 0.1,
        "depreciationExpenses": 0.1,
        "exchangeRateDifferences": 0.1,
        "exchangeRateDifferencesUnrealized": 0.1,
        "financialGain": 0.1,
        "grossProfit": 0.1,
        "housingExpenses": 0.1,
        "interest": 0.1,
        "netProfit": 0.1,
        "operatingResult": 0.1,
        "otherIncome": 0.1,
        "otherOperatingExpenses": 0.1,
        "personnelExpenses": 0.1,
        "revenue": 0.1,
        "revenueIC": 0.1,
        "totalExpenses": 0.1,
        "totalIncome": 0.1,
        "totalRevenue": 0.1
      },
      "subsidiary": "string"
    }
  ],
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete by list of ids in current tenant

DELETE
/monthly-aggregate-report
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/monthly-aggregate-report" \  -H "Content-Type: application/json" \  -d '[    "string"  ]'
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find by list of ids in current tenant

GET
/monthly-aggregate-report/find
AuthorizationBearer <token>

In: header

Query Parameters

ids*array<>

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/monthly-aggregate-report/find?ids=string"
[
  {
    "aggregate": {
      "balanceData": {
        "cashAmounts": [
          {
            "amount": 0.1,
            "currency": "string"
          }
        ],
        "totalICTradePayable": 0.1,
        "totalICTradeReceivable": 0.1,
        "totalLoansPayable": 0.1,
        "totalLoansReceivable": 0.1,
        "totalRC": 0.1,
        "totalRCsAndLoansPayable": 0.1,
        "totalRCsAndLoansReceivable": 0.1,
        "totalThirdPartyAP": 0.1,
        "totalThirdPartyAR": 0.1
      },
      "profitLossData": {
        "cogs": 0.1,
        "depreciationExpenses": 0.1,
        "exchangeRateDifferences": 0.1,
        "exchangeRateDifferencesUnrealized": 0.1,
        "financialGain": 0.1,
        "grossProfit": 0.1,
        "housingExpenses": 0.1,
        "interest": 0.1,
        "netProfit": 0.1,
        "operatingResult": 0.1,
        "otherIncome": 0.1,
        "otherOperatingExpenses": 0.1,
        "personnelExpenses": 0.1,
        "revenue": 0.1,
        "revenueIC": 0.1,
        "totalExpenses": 0.1,
        "totalIncome": 0.1,
        "totalRevenue": 0.1
      },
      "subsidiary": "string"
    },
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "id": "string",
    "subsidiaryReport": [
      {
        "balanceData": {
          "cashAmounts": [
            {
              "amount": 0.1,
              "currency": "string"
            }
          ],
          "totalICTradePayable": 0.1,
          "totalICTradeReceivable": 0.1,
          "totalLoansPayable": 0.1,
          "totalLoansReceivable": 0.1,
          "totalRC": 0.1,
          "totalRCsAndLoansPayable": 0.1,
          "totalRCsAndLoansReceivable": 0.1,
          "totalThirdPartyAP": 0.1,
          "totalThirdPartyAR": 0.1
        },
        "profitLossData": {
          "cogs": 0.1,
          "depreciationExpenses": 0.1,
          "exchangeRateDifferences": 0.1,
          "exchangeRateDifferencesUnrealized": 0.1,
          "financialGain": 0.1,
          "grossProfit": 0.1,
          "housingExpenses": 0.1,
          "interest": 0.1,
          "netProfit": 0.1,
          "operatingResult": 0.1,
          "otherIncome": 0.1,
          "otherOperatingExpenses": 0.1,
          "personnelExpenses": 0.1,
          "revenue": 0.1,
          "revenueIC": 0.1,
          "totalExpenses": 0.1,
          "totalIncome": 0.1,
          "totalRevenue": 0.1
        },
        "subsidiary": "string"
      }
    ],
    "tenantId": "string",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find all for current tenant

GET
/monthly-aggregate-report/find-all
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/monthly-aggregate-report/find-all"
[
  {
    "aggregate": {
      "balanceData": {
        "cashAmounts": [
          {
            "amount": 0.1,
            "currency": "string"
          }
        ],
        "totalICTradePayable": 0.1,
        "totalICTradeReceivable": 0.1,
        "totalLoansPayable": 0.1,
        "totalLoansReceivable": 0.1,
        "totalRC": 0.1,
        "totalRCsAndLoansPayable": 0.1,
        "totalRCsAndLoansReceivable": 0.1,
        "totalThirdPartyAP": 0.1,
        "totalThirdPartyAR": 0.1
      },
      "profitLossData": {
        "cogs": 0.1,
        "depreciationExpenses": 0.1,
        "exchangeRateDifferences": 0.1,
        "exchangeRateDifferencesUnrealized": 0.1,
        "financialGain": 0.1,
        "grossProfit": 0.1,
        "housingExpenses": 0.1,
        "interest": 0.1,
        "netProfit": 0.1,
        "operatingResult": 0.1,
        "otherIncome": 0.1,
        "otherOperatingExpenses": 0.1,
        "personnelExpenses": 0.1,
        "revenue": 0.1,
        "revenueIC": 0.1,
        "totalExpenses": 0.1,
        "totalIncome": 0.1,
        "totalRevenue": 0.1
      },
      "subsidiary": "string"
    },
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "id": "string",
    "subsidiaryReport": [
      {
        "balanceData": {
          "cashAmounts": [
            {
              "amount": 0.1,
              "currency": "string"
            }
          ],
          "totalICTradePayable": 0.1,
          "totalICTradeReceivable": 0.1,
          "totalLoansPayable": 0.1,
          "totalLoansReceivable": 0.1,
          "totalRC": 0.1,
          "totalRCsAndLoansPayable": 0.1,
          "totalRCsAndLoansReceivable": 0.1,
          "totalThirdPartyAP": 0.1,
          "totalThirdPartyAR": 0.1
        },
        "profitLossData": {
          "cogs": 0.1,
          "depreciationExpenses": 0.1,
          "exchangeRateDifferences": 0.1,
          "exchangeRateDifferencesUnrealized": 0.1,
          "financialGain": 0.1,
          "grossProfit": 0.1,
          "housingExpenses": 0.1,
          "interest": 0.1,
          "netProfit": 0.1,
          "operatingResult": 0.1,
          "otherIncome": 0.1,
          "otherOperatingExpenses": 0.1,
          "personnelExpenses": 0.1,
          "revenue": 0.1,
          "revenueIC": 0.1,
          "totalExpenses": 0.1,
          "totalIncome": 0.1,
          "totalRevenue": 0.1
        },
        "subsidiary": "string"
      }
    ],
    "tenantId": "string",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find by id in current tenant

GET
/monthly-aggregate-report/find/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/monthly-aggregate-report/find/string"
{
  "aggregate": {
    "balanceData": {
      "cashAmounts": [
        {
          "amount": 0.1,
          "currency": "string"
        }
      ],
      "totalICTradePayable": 0.1,
      "totalICTradeReceivable": 0.1,
      "totalLoansPayable": 0.1,
      "totalLoansReceivable": 0.1,
      "totalRC": 0.1,
      "totalRCsAndLoansPayable": 0.1,
      "totalRCsAndLoansReceivable": 0.1,
      "totalThirdPartyAP": 0.1,
      "totalThirdPartyAR": 0.1
    },
    "profitLossData": {
      "cogs": 0.1,
      "depreciationExpenses": 0.1,
      "exchangeRateDifferences": 0.1,
      "exchangeRateDifferencesUnrealized": 0.1,
      "financialGain": 0.1,
      "grossProfit": 0.1,
      "housingExpenses": 0.1,
      "interest": 0.1,
      "netProfit": 0.1,
      "operatingResult": 0.1,
      "otherIncome": 0.1,
      "otherOperatingExpenses": 0.1,
      "personnelExpenses": 0.1,
      "revenue": 0.1,
      "revenueIC": 0.1,
      "totalExpenses": 0.1,
      "totalIncome": 0.1,
      "totalRevenue": 0.1
    },
    "subsidiary": "string"
  },
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "id": "string",
  "subsidiaryReport": [
    {
      "balanceData": {
        "cashAmounts": [
          {
            "amount": 0.1,
            "currency": "string"
          }
        ],
        "totalICTradePayable": 0.1,
        "totalICTradeReceivable": 0.1,
        "totalLoansPayable": 0.1,
        "totalLoansReceivable": 0.1,
        "totalRC": 0.1,
        "totalRCsAndLoansPayable": 0.1,
        "totalRCsAndLoansReceivable": 0.1,
        "totalThirdPartyAP": 0.1,
        "totalThirdPartyAR": 0.1
      },
      "profitLossData": {
        "cogs": 0.1,
        "depreciationExpenses": 0.1,
        "exchangeRateDifferences": 0.1,
        "exchangeRateDifferencesUnrealized": 0.1,
        "financialGain": 0.1,
        "grossProfit": 0.1,
        "housingExpenses": 0.1,
        "interest": 0.1,
        "netProfit": 0.1,
        "operatingResult": 0.1,
        "otherIncome": 0.1,
        "otherOperatingExpenses": 0.1,
        "personnelExpenses": 0.1,
        "revenue": 0.1,
        "revenueIC": 0.1,
        "totalExpenses": 0.1,
        "totalIncome": 0.1,
        "totalRevenue": 0.1
      },
      "subsidiary": "string"
    }
  ],
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get page by page number and size with optional sorting based on field to sortBy and direction

GET
/monthly-aggregate-report/page
AuthorizationBearer <token>

In: header

Query Parameters

pageNumber?integer
Formatint32
pageSize?integer
Formatint32
sortBy?string
direction?string
Value in"ASC" | "DESC"
search?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/monthly-aggregate-report/page"
{
  "content": [
    {
      "aggregate": {
        "balanceData": {
          "cashAmounts": [
            {
              "amount": 0.1,
              "currency": "string"
            }
          ],
          "totalICTradePayable": 0.1,
          "totalICTradeReceivable": 0.1,
          "totalLoansPayable": 0.1,
          "totalLoansReceivable": 0.1,
          "totalRC": 0.1,
          "totalRCsAndLoansPayable": 0.1,
          "totalRCsAndLoansReceivable": 0.1,
          "totalThirdPartyAP": 0.1,
          "totalThirdPartyAR": 0.1
        },
        "profitLossData": {
          "cogs": 0.1,
          "depreciationExpenses": 0.1,
          "exchangeRateDifferences": 0.1,
          "exchangeRateDifferencesUnrealized": 0.1,
          "financialGain": 0.1,
          "grossProfit": 0.1,
          "housingExpenses": 0.1,
          "interest": 0.1,
          "netProfit": 0.1,
          "operatingResult": 0.1,
          "otherIncome": 0.1,
          "otherOperatingExpenses": 0.1,
          "personnelExpenses": 0.1,
          "revenue": 0.1,
          "revenueIC": 0.1,
          "totalExpenses": 0.1,
          "totalIncome": 0.1,
          "totalRevenue": 0.1
        },
        "subsidiary": "string"
      },
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "id": "string",
      "subsidiaryReport": [
        {
          "balanceData": {
            "cashAmounts": [
              {
                "amount": 0.1,
                "currency": "string"
              }
            ],
            "totalICTradePayable": 0.1,
            "totalICTradeReceivable": 0.1,
            "totalLoansPayable": 0.1,
            "totalLoansReceivable": 0.1,
            "totalRC": 0.1,
            "totalRCsAndLoansPayable": 0.1,
            "totalRCsAndLoansReceivable": 0.1,
            "totalThirdPartyAP": 0.1,
            "totalThirdPartyAR": 0.1
          },
          "profitLossData": {
            "cogs": 0.1,
            "depreciationExpenses": 0.1,
            "exchangeRateDifferences": 0.1,
            "exchangeRateDifferencesUnrealized": 0.1,
            "financialGain": 0.1,
            "grossProfit": 0.1,
            "housingExpenses": 0.1,
            "interest": 0.1,
            "netProfit": 0.1,
            "operatingResult": 0.1,
            "otherIncome": 0.1,
            "otherOperatingExpenses": 0.1,
            "personnelExpenses": 0.1,
            "revenue": 0.1,
            "revenueIC": 0.1,
            "totalExpenses": 0.1,
            "totalIncome": 0.1,
            "totalRevenue": 0.1
          },
          "subsidiary": "string"
        }
      ],
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete by id in current tenant

DELETE
/monthly-aggregate-report/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/monthly-aggregate-report/string"
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get all monthly aggregate reports

GET
/monthly-aggregate-report/{startDate}/{endDate}
AuthorizationBearer <token>

In: header

Path Parameters

startDate*string
endDate*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/monthly-aggregate-report/string/string"
[
  {
    "aggregate": {
      "balanceData": {
        "cashAmounts": [
          {
            "amount": 0.1,
            "currency": "string"
          }
        ],
        "totalICTradePayable": 0.1,
        "totalICTradeReceivable": 0.1,
        "totalLoansPayable": 0.1,
        "totalLoansReceivable": 0.1,
        "totalRC": 0.1,
        "totalRCsAndLoansPayable": 0.1,
        "totalRCsAndLoansReceivable": 0.1,
        "totalThirdPartyAP": 0.1,
        "totalThirdPartyAR": 0.1
      },
      "profitLossData": {
        "cogs": 0.1,
        "depreciationExpenses": 0.1,
        "exchangeRateDifferences": 0.1,
        "exchangeRateDifferencesUnrealized": 0.1,
        "financialGain": 0.1,
        "grossProfit": 0.1,
        "housingExpenses": 0.1,
        "interest": 0.1,
        "netProfit": 0.1,
        "operatingResult": 0.1,
        "otherIncome": 0.1,
        "otherOperatingExpenses": 0.1,
        "personnelExpenses": 0.1,
        "revenue": 0.1,
        "revenueIC": 0.1,
        "totalExpenses": 0.1,
        "totalIncome": 0.1,
        "totalRevenue": 0.1
      },
      "subsidiary": "string"
    },
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "id": "string",
    "subsidiaryReport": [
      {
        "balanceData": {
          "cashAmounts": [
            {
              "amount": 0.1,
              "currency": "string"
            }
          ],
          "totalICTradePayable": 0.1,
          "totalICTradeReceivable": 0.1,
          "totalLoansPayable": 0.1,
          "totalLoansReceivable": 0.1,
          "totalRC": 0.1,
          "totalRCsAndLoansPayable": 0.1,
          "totalRCsAndLoansReceivable": 0.1,
          "totalThirdPartyAP": 0.1,
          "totalThirdPartyAR": 0.1
        },
        "profitLossData": {
          "cogs": 0.1,
          "depreciationExpenses": 0.1,
          "exchangeRateDifferences": 0.1,
          "exchangeRateDifferencesUnrealized": 0.1,
          "financialGain": 0.1,
          "grossProfit": 0.1,
          "housingExpenses": 0.1,
          "interest": 0.1,
          "netProfit": 0.1,
          "operatingResult": 0.1,
          "otherIncome": 0.1,
          "otherOperatingExpenses": 0.1,
          "personnelExpenses": 0.1,
          "revenue": 0.1,
          "revenueIC": 0.1,
          "totalExpenses": 0.1,
          "totalIncome": 0.1,
          "totalRevenue": 0.1
        },
        "subsidiary": "string"
      }
    ],
    "tenantId": "string",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}