POST api/v1/InvoiceGenerationFromKOT

Request Information

URI Parameters

None.

Body Parameters

InvoiceFromKOTInput
NameDescriptionTypeAdditional information
Mode

string

None.

LocID

integer

None.

DeliveryID

integer

None.

DiscVal

decimal number

None.

DiscID

decimal number

None.

CompID

integer

None.

TableNo

string

None.

UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Mode": "sample string 1",
  "LocID": 2,
  "DeliveryID": 3,
  "DiscVal": 4.0,
  "DiscID": 5.0,
  "CompID": 6,
  "TableNo": "sample string 7",
  "UserID": 8
}

application/xml, text/xml

Sample:
<InvoiceFromKOTInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CompID>6</CompID>
  <DeliveryID>3</DeliveryID>
  <DiscID>5</DiscID>
  <DiscVal>4</DiscVal>
  <LocID>2</LocID>
  <Mode>sample string 1</Mode>
  <TableNo>sample string 7</TableNo>
  <UserID>8</UserID>
</InvoiceFromKOTInput>

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

Response Information

Resource Description

InvGenerationFromKOTModel
NameDescriptionTypeAdditional information
Errcode

integer

None.

Msg

string

None.

LocName

string

None.

TableNo

string

None.

TableID

integer

None.

BasicAmount

decimal number

None.

GTotAmount

decimal number

None.

TotQty

decimal number

None.

TotalKOT

integer

None.

CancelKOT

integer

None.

TotCGST

decimal number

None.

TotSGST

decimal number

None.

MobileNo

string

None.

CustName

string

None.

Roff

decimal number

None.

NoOfPax

integer

None.

InvKOTItemDetails

Collection of InvKOTDetailModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Errcode": 1,
  "Msg": "sample string 2",
  "LocName": "sample string 3",
  "TableNo": "sample string 4",
  "TableID": 5,
  "BasicAmount": 6.0,
  "GTotAmount": 7.0,
  "TotQty": 8.0,
  "TotalKOT": 9,
  "CancelKOT": 10,
  "TotCGST": 11.0,
  "TotSGST": 12.0,
  "MobileNo": "sample string 13",
  "CustName": "sample string 14",
  "Roff": 15.0,
  "NoOfPax": 16,
  "InvKOTItemDetails": [
    {
      "ItemID": 1,
      "UOM": "sample string 2",
      "ItemName": "sample string 3",
      "ItemRate": 4.0,
      "BasicAmt": 5.0,
      "GSTPer": 6.0,
      "DiscAmt": 7.0,
      "Qty": 8.0,
      "TotalAmt": 9.0,
      "CGSTAmt": 10.0,
      "SGSTAmt": 11.0,
      "SaleRateID": 12
    },
    {
      "ItemID": 1,
      "UOM": "sample string 2",
      "ItemName": "sample string 3",
      "ItemRate": 4.0,
      "BasicAmt": 5.0,
      "GSTPer": 6.0,
      "DiscAmt": 7.0,
      "Qty": 8.0,
      "TotalAmt": 9.0,
      "CGSTAmt": 10.0,
      "SGSTAmt": 11.0,
      "SaleRateID": 12
    }
  ]
}

application/xml, text/xml

Sample:
<InvGenerationFromKOTModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BasicAmount>6</BasicAmount>
  <CancelKOT>10</CancelKOT>
  <CustName>sample string 14</CustName>
  <Errcode>1</Errcode>
  <GTotAmount>7</GTotAmount>
  <InvKOTItemDetails>
    <InvKOTDetailModel>
      <BasicAmt>5</BasicAmt>
      <CGSTAmt>10</CGSTAmt>
      <DiscAmt>7</DiscAmt>
      <GSTPer>6</GSTPer>
      <ItemID>1</ItemID>
      <ItemName>sample string 3</ItemName>
      <ItemRate>4</ItemRate>
      <Qty>8</Qty>
      <SGSTAmt>11</SGSTAmt>
      <SaleRateID>12</SaleRateID>
      <TotalAmt>9</TotalAmt>
      <UOM>sample string 2</UOM>
    </InvKOTDetailModel>
    <InvKOTDetailModel>
      <BasicAmt>5</BasicAmt>
      <CGSTAmt>10</CGSTAmt>
      <DiscAmt>7</DiscAmt>
      <GSTPer>6</GSTPer>
      <ItemID>1</ItemID>
      <ItemName>sample string 3</ItemName>
      <ItemRate>4</ItemRate>
      <Qty>8</Qty>
      <SGSTAmt>11</SGSTAmt>
      <SaleRateID>12</SaleRateID>
      <TotalAmt>9</TotalAmt>
      <UOM>sample string 2</UOM>
    </InvKOTDetailModel>
  </InvKOTItemDetails>
  <LocName>sample string 3</LocName>
  <MobileNo>sample string 13</MobileNo>
  <Msg>sample string 2</Msg>
  <NoOfPax>16</NoOfPax>
  <Roff>15</Roff>
  <TableID>5</TableID>
  <TableNo>sample string 4</TableNo>
  <TotCGST>11</TotCGST>
  <TotQty>8</TotQty>
  <TotSGST>12</TotSGST>
  <TotalKOT>9</TotalKOT>
</InvGenerationFromKOTModel>