GET api/Debt/Get

Gets all the debts of the current user.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "Debt": {
      "ID": 1,
      "Entity": 2,
      "CostType": 3,
      "PropertyType": 4,
      "Description": "sample string 5",
      "Value": 6.0,
      "LoanedAmount": 7.0,
      "RepaymentType": 0,
      "YearlyIntrest": 8.0,
      "Years": 9,
      "StartDate": "24/04/2024 08:47"
    },
    "CurrentDebt": 1.0,
    "EndDate": "24/04/2033 08:47",
    "IntrestTotal": 2.0,
    "DebtTotal": 9.0
  },
  {
    "Debt": {
      "ID": 1,
      "Entity": 2,
      "CostType": 3,
      "PropertyType": 4,
      "Description": "sample string 5",
      "Value": 6.0,
      "LoanedAmount": 7.0,
      "RepaymentType": 0,
      "YearlyIntrest": 8.0,
      "Years": 9,
      "StartDate": "24/04/2024 08:47"
    },
    "CurrentDebt": 1.0,
    "EndDate": "24/04/2033 08:47",
    "IntrestTotal": 2.0,
    "DebtTotal": 9.0
  },
  {
    "Debt": {
      "ID": 1,
      "Entity": 2,
      "CostType": 3,
      "PropertyType": 4,
      "Description": "sample string 5",
      "Value": 6.0,
      "LoanedAmount": 7.0,
      "RepaymentType": 0,
      "YearlyIntrest": 8.0,
      "Years": 9,
      "StartDate": "24/04/2024 08:47"
    },
    "CurrentDebt": 1.0,
    "EndDate": "24/04/2033 08:47",
    "IntrestTotal": 2.0,
    "DebtTotal": 9.0
  }
]

application/xml, text/xml

Sample:
<ArrayOfDebtVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.API.Models">
  <DebtVM>
    <CurrentDebt>1</CurrentDebt>
    <Debt xmlns:d3p1="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
      <d3p1:CostType>3</d3p1:CostType>
      <d3p1:Description>sample string 5</d3p1:Description>
      <d3p1:Entity>2</d3p1:Entity>
      <d3p1:ID>1</d3p1:ID>
      <d3p1:LoanedAmount>7</d3p1:LoanedAmount>
      <d3p1:PropertyType>4</d3p1:PropertyType>
      <d3p1:RepaymentType>FixedPayment</d3p1:RepaymentType>
      <d3p1:StartDate>2024-04-24T20:47:51.378125+02:00</d3p1:StartDate>
      <d3p1:Value>6</d3p1:Value>
      <d3p1:YearlyIntrest>8</d3p1:YearlyIntrest>
      <d3p1:Years>9</d3p1:Years>
    </Debt>
    <IntrestTotal>2</IntrestTotal>
  </DebtVM>
  <DebtVM>
    <CurrentDebt>1</CurrentDebt>
    <Debt xmlns:d3p1="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
      <d3p1:CostType>3</d3p1:CostType>
      <d3p1:Description>sample string 5</d3p1:Description>
      <d3p1:Entity>2</d3p1:Entity>
      <d3p1:ID>1</d3p1:ID>
      <d3p1:LoanedAmount>7</d3p1:LoanedAmount>
      <d3p1:PropertyType>4</d3p1:PropertyType>
      <d3p1:RepaymentType>FixedPayment</d3p1:RepaymentType>
      <d3p1:StartDate>2024-04-24T20:47:51.378125+02:00</d3p1:StartDate>
      <d3p1:Value>6</d3p1:Value>
      <d3p1:YearlyIntrest>8</d3p1:YearlyIntrest>
      <d3p1:Years>9</d3p1:Years>
    </Debt>
    <IntrestTotal>2</IntrestTotal>
  </DebtVM>
  <DebtVM>
    <CurrentDebt>1</CurrentDebt>
    <Debt xmlns:d3p1="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
      <d3p1:CostType>3</d3p1:CostType>
      <d3p1:Description>sample string 5</d3p1:Description>
      <d3p1:Entity>2</d3p1:Entity>
      <d3p1:ID>1</d3p1:ID>
      <d3p1:LoanedAmount>7</d3p1:LoanedAmount>
      <d3p1:PropertyType>4</d3p1:PropertyType>
      <d3p1:RepaymentType>FixedPayment</d3p1:RepaymentType>
      <d3p1:StartDate>2024-04-24T20:47:51.378125+02:00</d3p1:StartDate>
      <d3p1:Value>6</d3p1:Value>
      <d3p1:YearlyIntrest>8</d3p1:YearlyIntrest>
      <d3p1:Years>9</d3p1:Years>
    </Debt>
    <IntrestTotal>2</IntrestTotal>
  </DebtVM>
</ArrayOfDebtVM>