GET api/Transaction/Get?jobId={jobId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
jobId

integer

Required

Body Parameters

None.

Response Information

Resource Description

LiteAllTransactionsForJob
NameDescriptionTypeAdditional information
jobTransactions

Collection of LiteJobTransaction

None.

transaction

LiteTransaction

None.

transactions

Collection of LiteTransaction

None.

CompanyName

string

None.

GSTNumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "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
    }
  ],
  "transaction": {
    "Amount": 1.0,
    "Date": "2019-09-16T18:47:23.9644126+00:00",
    "Id": 3,
    "IsCashedOut": true,
    "Reference": "sample string 5",
    "Type": 64,
    "JobTypeId": 7,
    "JobId": 8,
    "DateFromActual": "2019-09-16T18:47:23.9644126+00:00",
    "DateToActual": "2019-09-16T18:47:23.9644126+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
      }
    ]
  },
  "transactions": [
    {
      "Amount": 1.0,
      "Date": "2019-09-16T18:47:23.9644126+00:00",
      "Id": 3,
      "IsCashedOut": true,
      "Reference": "sample string 5",
      "Type": 64,
      "JobTypeId": 7,
      "JobId": 8,
      "DateFromActual": "2019-09-16T18:47:23.9644126+00:00",
      "DateToActual": "2019-09-16T18:47:23.9644126+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:47:23.9644126+00:00",
      "Id": 3,
      "IsCashedOut": true,
      "Reference": "sample string 5",
      "Type": 64,
      "JobTypeId": 7,
      "JobId": 8,
      "DateFromActual": "2019-09-16T18:47:23.9644126+00:00",
      "DateToActual": "2019-09-16T18:47:23.9644126+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
        }
      ]
    }
  ],
  "CompanyName": "sample string 1",
  "GSTNumber": "sample string 2"
}

application/xml, text/xml

Sample:
<LiteAllTransactionsForJob xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <CompanyName>sample string 1</CompanyName>
  <GSTNumber>sample string 2</GSTNumber>
  <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>
  <transaction>
    <Amount>1</Amount>
    <Date>2019-09-16T18:47:23.9644126+00:00</Date>
    <DateFromActual>2019-09-16T18:47:23.9644126+00:00</DateFromActual>
    <DateToActual>2019-09-16T18:47:23.9644126+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>
  </transaction>
  <transactions>
    <LiteTransaction>
      <Amount>1</Amount>
      <Date>2019-09-16T18:47:23.9644126+00:00</Date>
      <DateFromActual>2019-09-16T18:47:23.9644126+00:00</DateFromActual>
      <DateToActual>2019-09-16T18:47:23.9644126+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:47:23.9644126+00:00</Date>
      <DateFromActual>2019-09-16T18:47:23.9644126+00:00</DateFromActual>
      <DateToActual>2019-09-16T18:47:23.9644126+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>
</LiteAllTransactionsForJob>