GET api/Cost/Get

Gets all the costs of the current user.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Type": 2,
    "Description": "sample string 3",
    "Entity": 4,
    "Amount": 5.0,
    "StartDate": "27/11/2020 03:48",
    "EndDate": "27/11/2020 03:48",
    "EndDateType": 0,
    "Frequency": 0,
    "Amortize": true,
    "Inflation": true,
    "Indexation": true,
    "Evolutions": [
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      },
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      },
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      }
    ]
  },
  {
    "ID": 1,
    "Type": 2,
    "Description": "sample string 3",
    "Entity": 4,
    "Amount": 5.0,
    "StartDate": "27/11/2020 03:48",
    "EndDate": "27/11/2020 03:48",
    "EndDateType": 0,
    "Frequency": 0,
    "Amortize": true,
    "Inflation": true,
    "Indexation": true,
    "Evolutions": [
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      },
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      },
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      }
    ]
  },
  {
    "ID": 1,
    "Type": 2,
    "Description": "sample string 3",
    "Entity": 4,
    "Amount": 5.0,
    "StartDate": "27/11/2020 03:48",
    "EndDate": "27/11/2020 03:48",
    "EndDateType": 0,
    "Frequency": 0,
    "Amortize": true,
    "Inflation": true,
    "Indexation": true,
    "Evolutions": [
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      },
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      },
      {
        "ID": 1,
        "StartDate": "27/11/2020 03:48",
        "EndDate": "27/11/2020 03:48",
        "EndDateType": 0,
        "Percentage": 3.0,
        "Amount": 4.0,
        "Description": "sample string 5",
        "Frequency": 0,
        "ResumeAfter": true
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CapitalPlanner.Data.Models">
  <Cost>
    <Amortize>true</Amortize>
    <Amount>5</Amount>
    <Description>sample string 3</Description>
    <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
    <EndDateType>SixtyFiveYears</EndDateType>
    <Entity>4</Entity>
    <Evolutions>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
    </Evolutions>
    <Frequency>Once</Frequency>
    <ID>1</ID>
    <Indexation>true</Indexation>
    <Inflation>true</Inflation>
    <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
    <Type>2</Type>
  </Cost>
  <Cost>
    <Amortize>true</Amortize>
    <Amount>5</Amount>
    <Description>sample string 3</Description>
    <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
    <EndDateType>SixtyFiveYears</EndDateType>
    <Entity>4</Entity>
    <Evolutions>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
    </Evolutions>
    <Frequency>Once</Frequency>
    <ID>1</ID>
    <Indexation>true</Indexation>
    <Inflation>true</Inflation>
    <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
    <Type>2</Type>
  </Cost>
  <Cost>
    <Amortize>true</Amortize>
    <Amount>5</Amount>
    <Description>sample string 3</Description>
    <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
    <EndDateType>SixtyFiveYears</EndDateType>
    <Entity>4</Entity>
    <Evolutions>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
      <Evolution>
        <Amount>4</Amount>
        <Description>sample string 5</Description>
        <EndDate>2020-11-27T03:48:25.365875+01:00</EndDate>
        <EndDateType>SixtyFiveYears</EndDateType>
        <Frequency>Once</Frequency>
        <ID>1</ID>
        <Percentage>3</Percentage>
        <ResumeAfter>true</ResumeAfter>
        <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
      </Evolution>
    </Evolutions>
    <Frequency>Once</Frequency>
    <ID>1</ID>
    <Indexation>true</Indexation>
    <Inflation>true</Inflation>
    <StartDate>2020-11-27T03:48:25.365875+01:00</StartDate>
    <Type>2</Type>
  </Cost>
</ArrayOfCost>