POST api/Transaction/SendReceipt?email={email}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
email

string

Required

Body Parameters

LiteAllTransactionsForJob
NameDescriptionTypeAdditional information
jobTransactions

Collection of LiteJobTransaction

None.

transaction

LiteTransaction

None.

transactions

Collection of LiteTransaction

None.

CompanyName

string

None.

GSTNumber

string

None.

Request 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-12-09T16:08:20.7963377+00:00",
    "Id": 3,
    "IsCashedOut": true,
    "Reference": "sample string 5",
    "Type": 64,
    "JobTypeId": 7,
    "JobId": 8,
    "DateFromActual": "2019-12-09T16:08:20.7963377+00:00",
    "DateToActual": "2019-12-09T16:08:20.7963377+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-12-09T16:08:20.7963377+00:00",
      "Id": 3,
      "IsCashedOut": true,
      "Reference": "sample string 5",
      "Type": 64,
      "JobTypeId": 7,
      "JobId": 8,
      "DateFromActual": "2019-12-09T16:08:20.7963377+00:00",
      "DateToActual": "2019-12-09T16:08:20.7963377+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-12-09T16:08:20.7963377+00:00",
      "Id": 3,
      "IsCashedOut": true,
      "Reference": "sample string 5",
      "Type": 64,
      "JobTypeId": 7,
      "JobId": 8,
      "DateFromActual": "2019-12-09T16:08:20.7963377+00:00",
      "DateToActual": "2019-12-09T16:08:20.7963377+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-12-09T16:08:20.7963377+00:00</Date>
    <DateFromActual>2019-12-09T16:08:20.7963377+00:00</DateFromActual>
    <DateToActual>2019-12-09T16:08:20.7963377+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-12-09T16:08:20.7963377+00:00</Date>
      <DateFromActual>2019-12-09T16:08:20.7963377+00:00</DateFromActual>
      <DateToActual>2019-12-09T16:08:20.7963377+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-12-09T16:08:20.7963377+00:00</Date>
      <DateFromActual>2019-12-09T16:08:20.7963377+00:00</DateFromActual>
      <DateToActual>2019-12-09T16:08:20.7963377+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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.