GET api/Bank/GetAccountBalance?withRecentTransactions={withRecentTransactions}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
withRecentTransactions

boolean

Required

Body Parameters

None.

Response Information

Resource Description

LiteBank
NameDescriptionTypeAdditional information
AccountBalance

decimal number

None.

NextPayDate

date

None.

Transactions

Collection of LiteTransaction

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountBalance": 1.0,
  "NextPayDate": "2019-09-16T18:29:01.5509464+00:00",
  "Transactions": [
    {
      "Amount": 1.0,
      "Date": "2019-09-16T18:29:01.5509464+00:00",
      "Id": 3,
      "IsCashedOut": true,
      "Reference": "sample string 5",
      "Type": 64,
      "JobTypeId": 7,
      "JobId": 8,
      "DateFromActual": "2019-09-16T18:29:01.5509464+00:00",
      "DateToActual": "2019-09-16T18:29:01.5509464+00:00",
      "Hours": 1.0,
      "ParentFullName": "sample string 9",
      "JobTransactions": [
        {
          "Id": 1,
          "JobTransactionType": 2,
          "ItemAmount": 3.0,
          "ItemName": "sample string 4",
          "JobId": 5,
          "TransactionId": 6
        },
        {
          "Id": 1,
          "JobTransactionType": 2,
          "ItemAmount": 3.0,
          "ItemName": "sample string 4",
          "JobId": 5,
          "TransactionId": 6
        }
      ]
    },
    {
      "Amount": 1.0,
      "Date": "2019-09-16T18:29:01.5509464+00:00",
      "Id": 3,
      "IsCashedOut": true,
      "Reference": "sample string 5",
      "Type": 64,
      "JobTypeId": 7,
      "JobId": 8,
      "DateFromActual": "2019-09-16T18:29:01.5509464+00:00",
      "DateToActual": "2019-09-16T18:29:01.5509464+00:00",
      "Hours": 1.0,
      "ParentFullName": "sample string 9",
      "JobTransactions": [
        {
          "Id": 1,
          "JobTransactionType": 2,
          "ItemAmount": 3.0,
          "ItemName": "sample string 4",
          "JobId": 5,
          "TransactionId": 6
        },
        {
          "Id": 1,
          "JobTransactionType": 2,
          "ItemAmount": 3.0,
          "ItemName": "sample string 4",
          "JobId": 5,
          "TransactionId": 6
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<LiteBank xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <AccountBalance>1</AccountBalance>
  <NextPayDate>2019-09-16T18:29:01.5509464+00:00</NextPayDate>
  <Transactions>
    <LiteTransaction>
      <Amount>1</Amount>
      <Date>2019-09-16T18:29:01.5509464+00:00</Date>
      <DateFromActual>2019-09-16T18:29:01.5509464+00:00</DateFromActual>
      <DateToActual>2019-09-16T18:29:01.5509464+00:00</DateToActual>
      <Hours>1</Hours>
      <Id>3</Id>
      <IsCashedOut>true</IsCashedOut>
      <JobId>8</JobId>
      <JobTransactions>
        <LiteJobTransaction>
          <Id>1</Id>
          <ItemAmount>3</ItemAmount>
          <ItemName>sample string 4</ItemName>
          <JobId>5</JobId>
          <JobTransactionType>2</JobTransactionType>
          <TransactionId>6</TransactionId>
        </LiteJobTransaction>
        <LiteJobTransaction>
          <Id>1</Id>
          <ItemAmount>3</ItemAmount>
          <ItemName>sample string 4</ItemName>
          <JobId>5</JobId>
          <JobTransactionType>2</JobTransactionType>
          <TransactionId>6</TransactionId>
        </LiteJobTransaction>
      </JobTransactions>
      <JobTypeId>7</JobTypeId>
      <ParentFullName>sample string 9</ParentFullName>
      <Reference>sample string 5</Reference>
      <Type>64</Type>
    </LiteTransaction>
    <LiteTransaction>
      <Amount>1</Amount>
      <Date>2019-09-16T18:29:01.5509464+00:00</Date>
      <DateFromActual>2019-09-16T18:29:01.5509464+00:00</DateFromActual>
      <DateToActual>2019-09-16T18:29:01.5509464+00:00</DateToActual>
      <Hours>1</Hours>
      <Id>3</Id>
      <IsCashedOut>true</IsCashedOut>
      <JobId>8</JobId>
      <JobTransactions>
        <LiteJobTransaction>
          <Id>1</Id>
          <ItemAmount>3</ItemAmount>
          <ItemName>sample string 4</ItemName>
          <JobId>5</JobId>
          <JobTransactionType>2</JobTransactionType>
          <TransactionId>6</TransactionId>
        </LiteJobTransaction>
        <LiteJobTransaction>
          <Id>1</Id>
          <ItemAmount>3</ItemAmount>
          <ItemName>sample string 4</ItemName>
          <JobId>5</JobId>
          <JobTransactionType>2</JobTransactionType>
          <TransactionId>6</TransactionId>
        </LiteJobTransaction>
      </JobTransactions>
      <JobTypeId>7</JobTypeId>
      <ParentFullName>sample string 9</ParentFullName>
      <Reference>sample string 5</Reference>
      <Type>64</Type>
    </LiteTransaction>
  </Transactions>
</LiteBank>