POST api/invoice/create

Request Information

URI Parameters

None.

Body Parameters

CreateInvoiceRequest
NameDescriptionTypeAdditional information
CompID

integer

None.

FRID

integer

None.

InVdate

date

None.

OrderNumbers

string

None.

OrderDate

date

None.

PartyID

integer

None.

BilledBy

string

None.

CompSTCode

string

None.

PartySTCode

string

None.

BillPrefix

string

None.

DueDate

date

None.

Items

Collection of OrderItemDto

None.

Request Formats

application/json, text/json

Sample:
{
  "CompID": 1,
  "FRID": 2,
  "InVdate": "2026-06-08T20:24:50.2079337+05:30",
  "OrderNumbers": "sample string 4",
  "OrderDate": "2026-06-08T20:24:50.2089337+05:30",
  "PartyID": 5,
  "BilledBy": "sample string 6",
  "CompSTCode": "sample string 7",
  "PartySTCode": "sample string 8",
  "BillPrefix": "sample string 9",
  "DueDate": "2026-06-08T20:24:50.2089337+05:30",
  "Items": [
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "HSNCODE": "sample string 3",
      "QTY": 4.1,
      "MRP": 5.1,
      "DisType": "sample string 6",
      "Dis": 7.1,
      "Rate": 8.1,
      "GSTP": 9.1,
      "finalRate": 10.1,
      "FinalAmount": 11.1,
      "Taxable": 12.1,
      "GSTAmount": 13.1,
      "IGST": 14.1,
      "ItemCost": 15.1,
      "Points": 16,
      "WG": "sample string 17",
      "ImageUrl": "sample string 18",
      "ShopName": "sample string 19",
      "Contactno": "sample string 20",
      "partyST": "sample string 21",
      "ShopID": 22,
      "CompID": 23,
      "CompName": "sample string 24",
      "compST": "sample string 25"
    },
    {
      "ProductId": 1,
      "ProductName": "sample string 2",
      "HSNCODE": "sample string 3",
      "QTY": 4.1,
      "MRP": 5.1,
      "DisType": "sample string 6",
      "Dis": 7.1,
      "Rate": 8.1,
      "GSTP": 9.1,
      "finalRate": 10.1,
      "FinalAmount": 11.1,
      "Taxable": 12.1,
      "GSTAmount": 13.1,
      "IGST": 14.1,
      "ItemCost": 15.1,
      "Points": 16,
      "WG": "sample string 17",
      "ImageUrl": "sample string 18",
      "ShopName": "sample string 19",
      "Contactno": "sample string 20",
      "partyST": "sample string 21",
      "ShopID": 22,
      "CompID": 23,
      "CompName": "sample string 24",
      "compST": "sample string 25"
    }
  ]
}

text/html

Sample:
{"CompID":1,"FRID":2,"InVdate":"2026-06-08T20:24:50.2079337+05:30","OrderNumbers":"sample string 4","OrderDate":"2026-06-08T20:24:50.2089337+05:30","PartyID":5,"BilledBy":"sample string 6","CompSTCode":"sample string 7","PartySTCode":"sample string 8","BillPrefix":"sample string 9","DueDate":"2026-06-08T20:24:50.2089337+05:30","Items":[{"ProductId":1,"ProductName":"sample string 2","HSNCODE":"sample string 3","QTY":4.1,"MRP":5.1,"DisType":"sample string 6","Dis":7.1,"Rate":8.1,"GSTP":9.1,"finalRate":10.1,"FinalAmount":11.1,"Taxable":12.1,"GSTAmount":13.1,"IGST":14.1,"ItemCost":15.1,"Points":16,"WG":"sample string 17","ImageUrl":"sample string 18","ShopName":"sample string 19","Contactno":"sample string 20","partyST":"sample string 21","ShopID":22,"CompID":23,"CompName":"sample string 24","compST":"sample string 25"},{"ProductId":1,"ProductName":"sample string 2","HSNCODE":"sample string 3","QTY":4.1,"MRP":5.1,"DisType":"sample string 6","Dis":7.1,"Rate":8.1,"GSTP":9.1,"finalRate":10.1,"FinalAmount":11.1,"Taxable":12.1,"GSTAmount":13.1,"IGST":14.1,"ItemCost":15.1,"Points":16,"WG":"sample string 17","ImageUrl":"sample string 18","ShopName":"sample string 19","Contactno":"sample string 20","partyST":"sample string 21","ShopID":22,"CompID":23,"CompName":"sample string 24","compST":"sample string 25"}]}

application/xml, text/xml

Sample:
<GstInvoiceClass.CreateInvoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KeyCodeWebsApis.Models">
  <BillPrefix>sample string 9</BillPrefix>
  <BilledBy>sample string 6</BilledBy>
  <CompID>1</CompID>
  <CompSTCode>sample string 7</CompSTCode>
  <DueDate>2026-06-08T20:24:50.2089337+05:30</DueDate>
  <FRID>2</FRID>
  <InVdate>2026-06-08T20:24:50.2079337+05:30</InVdate>
  <Items>
    <GstInvoiceClass.OrderItemDto>
      <CompID>23</CompID>
      <CompName>sample string 24</CompName>
      <Contactno>sample string 20</Contactno>
      <Dis>7.1</Dis>
      <DisType>sample string 6</DisType>
      <FinalAmount>11.1</FinalAmount>
      <GSTAmount>13.1</GSTAmount>
      <GSTP>9.1</GSTP>
      <HSNCODE>sample string 3</HSNCODE>
      <IGST>14.1</IGST>
      <ImageUrl>sample string 18</ImageUrl>
      <ItemCost>15.1</ItemCost>
      <MRP>5.1</MRP>
      <Points>16</Points>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <QTY>4.1</QTY>
      <Rate>8.1</Rate>
      <ShopID>22</ShopID>
      <ShopName>sample string 19</ShopName>
      <Taxable>12.1</Taxable>
      <WG>sample string 17</WG>
      <compST>sample string 25</compST>
      <finalRate>10.1</finalRate>
      <partyST>sample string 21</partyST>
    </GstInvoiceClass.OrderItemDto>
    <GstInvoiceClass.OrderItemDto>
      <CompID>23</CompID>
      <CompName>sample string 24</CompName>
      <Contactno>sample string 20</Contactno>
      <Dis>7.1</Dis>
      <DisType>sample string 6</DisType>
      <FinalAmount>11.1</FinalAmount>
      <GSTAmount>13.1</GSTAmount>
      <GSTP>9.1</GSTP>
      <HSNCODE>sample string 3</HSNCODE>
      <IGST>14.1</IGST>
      <ImageUrl>sample string 18</ImageUrl>
      <ItemCost>15.1</ItemCost>
      <MRP>5.1</MRP>
      <Points>16</Points>
      <ProductId>1</ProductId>
      <ProductName>sample string 2</ProductName>
      <QTY>4.1</QTY>
      <Rate>8.1</Rate>
      <ShopID>22</ShopID>
      <ShopName>sample string 19</ShopName>
      <Taxable>12.1</Taxable>
      <WG>sample string 17</WG>
      <compST>sample string 25</compST>
      <finalRate>10.1</finalRate>
      <partyST>sample string 21</partyST>
    </GstInvoiceClass.OrderItemDto>
  </Items>
  <OrderDate>2026-06-08T20:24:50.2089337+05:30</OrderDate>
  <OrderNumbers>sample string 4</OrderNumbers>
  <PartyID>5</PartyID>
  <PartySTCode>sample string 8</PartySTCode>
</GstInvoiceClass.CreateInvoiceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.