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": "01/12/2020 03:27"
}

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>2020-12-01T03:27:30.251+01:00</StartDate>
  <Value>6</Value>
  <YearlyIntrest>8</YearlyIntrest>
  <Years>9</Years>
</Debt>