POST api/Invoice/Search

Request Information

URI Parameters

None.

Body Parameters

InvoiceSearch
NameDescriptionTypeAdditional information
StaffName

string

None.

ChargeType

string

None.

StartDate

date

Required

EndDate

date

Required

InvoiceNumber

string

None.

ShedId

integer

None.

PageSize

integer

Required

Range: inclusive between 1 and 2147483647

PageNumber

integer

Required

Range: inclusive between 1 and 2147483647

VoidStatus

integer

Range: inclusive between 0 and 2

Request Formats

application/json, text/json

Sample:
{
  "StaffName": "sample string 1",
  "ChargeType": "sample string 2",
  "StartDate": "2025-08-29T02:09:46.7214529+00:00",
  "EndDate": "2025-08-29T02:09:46.7214529+00:00",
  "InvoiceNumber": "sample string 3",
  "ShedId": 1,
  "PageSize": 1,
  "PageNumber": 1,
  "VoidStatus": 4
}

application/xml, text/xml

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

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 'InvoiceSearch'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.