POST api/Report/GenerateInvoicePdfById

Request Information

URI Parameters

None.

Body Parameters

PdfGenModel
NameDescriptionTypeAdditional information
InvoiceId

globally unique identifier

None.

ConnectionString

string

None.

RatingFilterModel

RatingFilterModel

None.

SettingId

integer

None.

CurrentUserTimeZone

string

None.

CurrentUser

string

None.

UserId

globally unique identifier

None.

CallList

string

None.

FileName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": "a4c7fa82-1ea5-4743-a55e-5716e57dfeb3",
  "ConnectionString": "sample string 2",
  "RatingFilterModel": {
    "PeriodType": "sample string 1",
    "Period": "sample string 2",
    "FromDate": "2026-09-12T11:58:18.8201915+00:00",
    "ToDate": "2026-09-12T11:58:18.8201915+00:00",
    "TicketType": "sample string 3",
    "CardId": "7a91f480-c916-4079-8a72-deef3469493b",
    "LocationId": "64a4e472-8d72-42fe-9c2a-04b0648dc5be",
    "ListOfRates": [
      {
        "Rating": 1,
        "RatingName": "sample string 2",
        "NoOfTicket": 3,
        "TotalTicket": 4,
        "RatingPercentage": 5.0,
        "IsChecked": true
      },
      {
        "Rating": 1,
        "RatingName": "sample string 2",
        "NoOfTicket": 3,
        "TotalTicket": 4,
        "RatingPercentage": 5.0,
        "IsChecked": true
      }
    ],
    "Start": 4,
    "Length": 5
  },
  "SettingId": 3,
  "CurrentUserTimeZone": "sample string 4",
  "CurrentUser": "sample string 5",
  "UserId": "1f97307c-ba02-471e-85f4-13e39d3d763d",
  "CallList": "sample string 7",
  "FileName": "sample string 8"
}

application/xml, text/xml

Sample:
<PdfGenModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ThisSolution.ServiceTree.Model.PDF">
  <CallList>sample string 7</CallList>
  <ConnectionString>sample string 2</ConnectionString>
  <CurrentUser>sample string 5</CurrentUser>
  <CurrentUserTimeZone>sample string 4</CurrentUserTimeZone>
  <FileName>sample string 8</FileName>
  <InvoiceId>a4c7fa82-1ea5-4743-a55e-5716e57dfeb3</InvoiceId>
  <RatingFilterModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/ThisSolution.ServiceTree.Model">
    <d2p1:CardId>7a91f480-c916-4079-8a72-deef3469493b</d2p1:CardId>
    <d2p1:FromDate>2026-09-12T11:58:18.8201915+00:00</d2p1:FromDate>
    <d2p1:Length>5</d2p1:Length>
    <d2p1:ListOfRates>
      <d2p1:RatingWiseTicketModel>
        <d2p1:IsChecked>true</d2p1:IsChecked>
        <d2p1:NoOfTicket>3</d2p1:NoOfTicket>
        <d2p1:Rating>1</d2p1:Rating>
        <d2p1:RatingName>sample string 2</d2p1:RatingName>
        <d2p1:RatingPercentage>5</d2p1:RatingPercentage>
        <d2p1:TotalTicket>4</d2p1:TotalTicket>
      </d2p1:RatingWiseTicketModel>
      <d2p1:RatingWiseTicketModel>
        <d2p1:IsChecked>true</d2p1:IsChecked>
        <d2p1:NoOfTicket>3</d2p1:NoOfTicket>
        <d2p1:Rating>1</d2p1:Rating>
        <d2p1:RatingName>sample string 2</d2p1:RatingName>
        <d2p1:RatingPercentage>5</d2p1:RatingPercentage>
        <d2p1:TotalTicket>4</d2p1:TotalTicket>
      </d2p1:RatingWiseTicketModel>
    </d2p1:ListOfRates>
    <d2p1:LocationId>64a4e472-8d72-42fe-9c2a-04b0648dc5be</d2p1:LocationId>
    <d2p1:Period>sample string 2</d2p1:Period>
    <d2p1:PeriodType>sample string 1</d2p1:PeriodType>
    <d2p1:Start>4</d2p1:Start>
    <d2p1:TicketType>sample string 3</d2p1:TicketType>
    <d2p1:ToDate>2026-09-12T11:58:18.8201915+00:00</d2p1:ToDate>
  </RatingFilterModel>
  <SettingId>3</SettingId>
  <UserId>1f97307c-ba02-471e-85f4-13e39d3d763d</UserId>
</PdfGenModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Value2ModelList
NameDescriptionTypeAdditional information
Text2

string

None.

Id

integer

None.

GId

globally unique identifier

None.

Text

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Text2": "sample string 1",
  "Id": 2,
  "GId": "3640bf6e-1a00-48e6-8ccd-13797713d411",
  "Text": "sample string 4"
}

application/xml, text/xml

Sample:
<Value2ModelList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ThisSolution.ServiceTree.CommonModel">
  <GId>3640bf6e-1a00-48e6-8ccd-13797713d411</GId>
  <Id>2</Id>
  <Text>sample string 4</Text>
  <Text2>sample string 1</Text2>
</Value2ModelList>