POST api/Invoice/GenerateReport

Request Information

URI Parameters

None.

Body Parameters

GenerateInvoiceSearch
NameDescriptionTypeAdditional information
ReporterEmail

string

Required

StaffName

string

None.

ChargeType

string

None.

StartDate

date

Required

EndDate

date

Required

InvoiceNumber

string

None.

ShedId

integer

None.

VoidStatus

integer

Range: inclusive between 0 and 2

Request Formats

application/json, text/json

Sample:
{
  "ReporterEmail": "sample string 1",
  "StaffName": "sample string 2",
  "ChargeType": "sample string 3",
  "StartDate": "2025-08-29T02:10:08.5540022+00:00",
  "EndDate": "2025-08-29T02:10:08.5540022+00:00",
  "InvoiceNumber": "sample string 4",
  "ShedId": 5,
  "VoidStatus": 6
}

application/xml, text/xml

Sample:
<GenerateInvoiceSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cargo.Data.Entities">
  <ChargeType>sample string 3</ChargeType>
  <EndDate>2025-08-29T02:10:08.5540022+00:00</EndDate>
  <InvoiceNumber>sample string 4</InvoiceNumber>
  <ReporterEmail>sample string 1</ReporterEmail>
  <ShedId>5</ShedId>
  <StaffName>sample string 2</StaffName>
  <StartDate>2025-08-29T02:10:08.5540022+00:00</StartDate>
  <VoidStatus>6</VoidStatus>
</GenerateInvoiceSearch>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GenerateInvoiceSearch'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.