GET api/Debt/Get?id={id}

Gets a specific debt.

Request Information

Parameters

NameDescriptionAdditional information
id
The ID of the debt.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "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": "26/04/2024 10:40"
}

application/xml, text/xml

Sample:
<Debt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <CostType>3</CostType>
  <Description>sample string 5</Description>
  <Entity>2</Entity>
  <ID>1</ID>
  <LoanedAmount>7</LoanedAmount>
  <PropertyType>4</PropertyType>
  <RepaymentType>FixedPayment</RepaymentType>
  <StartDate>2024-04-26T22:40:04.272375+02:00</StartDate>
  <Value>6</Value>
  <YearlyIntrest>8</YearlyIntrest>
  <Years>9</Years>
</Debt>