GET api/Calculation/GetCostFromDebts

Get all the cost items generated by the debts.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Type": 2,
    "Description": "sample string 3",
    "Entity": 4,
    "Amount": 5.0,
    "StartDate": "23/04/2024 11:57",
    "EndDate": "23/04/2024 11:57"
  },
  {
    "ID": 1,
    "Type": 2,
    "Description": "sample string 3",
    "Entity": 4,
    "Amount": 5.0,
    "StartDate": "23/04/2024 11:57",
    "EndDate": "23/04/2024 11:57"
  },
  {
    "ID": 1,
    "Type": 2,
    "Description": "sample string 3",
    "Entity": 4,
    "Amount": 5.0,
    "StartDate": "23/04/2024 11:57",
    "EndDate": "23/04/2024 11:57"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDebtCostVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.API.Models">
  <DebtCostVM>
    <Amount>5</Amount>
    <Description>sample string 3</Description>
    <EndDate>2024-04-23T11:57:10.055375+02:00</EndDate>
    <Entity>4</Entity>
    <ID>1</ID>
    <StartDate>2024-04-23T11:57:10.055375+02:00</StartDate>
    <Type>2</Type>
  </DebtCostVM>
  <DebtCostVM>
    <Amount>5</Amount>
    <Description>sample string 3</Description>
    <EndDate>2024-04-23T11:57:10.055375+02:00</EndDate>
    <Entity>4</Entity>
    <ID>1</ID>
    <StartDate>2024-04-23T11:57:10.055375+02:00</StartDate>
    <Type>2</Type>
  </DebtCostVM>
  <DebtCostVM>
    <Amount>5</Amount>
    <Description>sample string 3</Description>
    <EndDate>2024-04-23T11:57:10.055375+02:00</EndDate>
    <Entity>4</Entity>
    <ID>1</ID>
    <StartDate>2024-04-23T11:57:10.055375+02:00</StartDate>
    <Type>2</Type>
  </DebtCostVM>
</ArrayOfDebtCostVM>