POST api/GenerateInvoicesByInventory

Request Information

URI Parameters

None.

Body Parameters

GenerateInvoiceVm
NameDescriptionTypeAdditional information
Month

integer

None.

Year

integer

None.

ReservationId

integer

None.

InventoryId

integer

None.

Remark

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Month": 1,
  "Year": 2,
  "ReservationId": 3,
  "InventoryId": 4,
  "Remark": "sample string 5"
}

application/xml, text/xml

Sample:
<GenerateInvoiceVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Services.Invoice">
  <InventoryId>4</InventoryId>
  <Month>1</Month>
  <Remark>sample string 5</Remark>
  <ReservationId>3</ReservationId>
  <Year>2</Year>
</GenerateInvoiceVm>

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

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Description

string

None.

Data

Object

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Description": "sample string 3",
  "Data": {},
  "Count": 5
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models">
  <Count>5</Count>
  <Data />
  <Description>sample string 3</Description>
  <Message>sample string 2</Message>
  <Success>true</Success>
</Response>