POST api/GRN/AddorUpdateGRN

Request Information

URI Parameters

None.

Body Parameters

GRNEntities
NameDescriptionTypeAdditional information
UserId

integer

None.

GrnId

integer

None.

GrnNo

string

None.

GrnDate

date

None.

PoId

integer

None.

PoDate

date

None.

SupplierId

integer

None.

SupplierName

string

None.

SupplierInvNo

string

None.

SupplierInvAmt

decimal number

None.

SupplierInvDate

date

None.

City

string

None.

PoNo

string

None.

TransportId

integer

None.

LR_No

string

None.

LR_Date

date

None.

No_of_Packages

string

None.

Total

decimal number

None.

TaxAmount

decimal number

None.

GrandTotal

decimal number

None.

PendAmount

decimal number

None.

RecAmount

decimal number

None.

Discount

decimal number

None.

GRNDetails

Collection of GRNDetailsEntities

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "GrnId": 2,
  "GrnNo": "sample string 3",
  "GrnDate": "2021-09-26T20:47:36.1833784+05:30",
  "PoId": 5,
  "PoDate": "2021-09-26T20:47:36.1833784+05:30",
  "SupplierId": 7,
  "SupplierName": "sample string 8",
  "SupplierInvNo": "sample string 9",
  "SupplierInvAmt": 10.0,
  "SupplierInvDate": "2021-09-26T20:47:36.1833784+05:30",
  "City": "sample string 12",
  "PoNo": "sample string 13",
  "TransportId": 14,
  "LR_No": "sample string 15",
  "LR_Date": "2021-09-26T20:47:36.1833784+05:30",
  "No_of_Packages": "sample string 17",
  "Total": 18.0,
  "TaxAmount": 19.0,
  "GrandTotal": 20.0,
  "PendAmount": 21.0,
  "RecAmount": 22.0,
  "Discount": 23.0,
  "GRNDetails": [
    {
      "GrnDetId": 1,
      "GrnId": 2,
      "GrnNo": "sample string 3",
      "CategoryId": 4,
      "CategoryName": "sample string 5",
      "SubcategoryId": 6,
      "SubCategoryName": "sample string 7",
      "BrandId": 8,
      "BrandName": "sample string 9",
      "ProductId": 10,
      "ProductName": "sample string 11",
      "SizeId": 12,
      "Size": "sample string 13",
      "ColorId": 14,
      "Color": "sample string 15",
      "Unit": "sample string 16",
      "TaxInclusive": 17,
      "Qty": "sample string 18",
      "Rate": 19.0,
      "PurchaseQty": "sample string 20",
      "PurchaseRate": 21.0,
      "RecieveQty": "sample string 22",
      "MRP": 23.0,
      "Discount": 24.0,
      "Expiry": "sample string 25",
      "SaleRate": 26.0,
      "TaxId": 27,
      "TaxName": "sample string 28",
      "TaxAmount": 29.0,
      "Total": 30.0,
      "GrandAmount": 31.0
    },
    {
      "GrnDetId": 1,
      "GrnId": 2,
      "GrnNo": "sample string 3",
      "CategoryId": 4,
      "CategoryName": "sample string 5",
      "SubcategoryId": 6,
      "SubCategoryName": "sample string 7",
      "BrandId": 8,
      "BrandName": "sample string 9",
      "ProductId": 10,
      "ProductName": "sample string 11",
      "SizeId": 12,
      "Size": "sample string 13",
      "ColorId": 14,
      "Color": "sample string 15",
      "Unit": "sample string 16",
      "TaxInclusive": 17,
      "Qty": "sample string 18",
      "Rate": 19.0,
      "PurchaseQty": "sample string 20",
      "PurchaseRate": 21.0,
      "RecieveQty": "sample string 22",
      "MRP": 23.0,
      "Discount": 24.0,
      "Expiry": "sample string 25",
      "SaleRate": 26.0,
      "TaxId": 27,
      "TaxName": "sample string 28",
      "TaxAmount": 29.0,
      "Total": 30.0,
      "GrandAmount": 31.0
    }
  ]
}

text/html

Sample:
{"UserId":1,"GrnId":2,"GrnNo":"sample string 3","GrnDate":"2021-09-26T20:47:36.1833784+05:30","PoId":5,"PoDate":"2021-09-26T20:47:36.1833784+05:30","SupplierId":7,"SupplierName":"sample string 8","SupplierInvNo":"sample string 9","SupplierInvAmt":10.0,"SupplierInvDate":"2021-09-26T20:47:36.1833784+05:30","City":"sample string 12","PoNo":"sample string 13","TransportId":14,"LR_No":"sample string 15","LR_Date":"2021-09-26T20:47:36.1833784+05:30","No_of_Packages":"sample string 17","Total":18.0,"TaxAmount":19.0,"GrandTotal":20.0,"PendAmount":21.0,"RecAmount":22.0,"Discount":23.0,"GRNDetails":[{"GrnDetId":1,"GrnId":2,"GrnNo":"sample string 3","CategoryId":4,"CategoryName":"sample string 5","SubcategoryId":6,"SubCategoryName":"sample string 7","BrandId":8,"BrandName":"sample string 9","ProductId":10,"ProductName":"sample string 11","SizeId":12,"Size":"sample string 13","ColorId":14,"Color":"sample string 15","Unit":"sample string 16","TaxInclusive":17,"Qty":"sample string 18","Rate":19.0,"PurchaseQty":"sample string 20","PurchaseRate":21.0,"RecieveQty":"sample string 22","MRP":23.0,"Discount":24.0,"Expiry":"sample string 25","SaleRate":26.0,"TaxId":27,"TaxName":"sample string 28","TaxAmount":29.0,"Total":30.0,"GrandAmount":31.0},{"GrnDetId":1,"GrnId":2,"GrnNo":"sample string 3","CategoryId":4,"CategoryName":"sample string 5","SubcategoryId":6,"SubCategoryName":"sample string 7","BrandId":8,"BrandName":"sample string 9","ProductId":10,"ProductName":"sample string 11","SizeId":12,"Size":"sample string 13","ColorId":14,"Color":"sample string 15","Unit":"sample string 16","TaxInclusive":17,"Qty":"sample string 18","Rate":19.0,"PurchaseQty":"sample string 20","PurchaseRate":21.0,"RecieveQty":"sample string 22","MRP":23.0,"Discount":24.0,"Expiry":"sample string 25","SaleRate":26.0,"TaxId":27,"TaxName":"sample string 28","TaxAmount":29.0,"Total":30.0,"GrandAmount":31.0}]}

application/xml, text/xml

Sample:
<GRNEntities xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Meridukan_API.Entities.GRN">
  <City>sample string 12</City>
  <Discount>23</Discount>
  <GRNDetails>
    <GRNDetailsEntities>
      <BrandId>8</BrandId>
      <BrandName>sample string 9</BrandName>
      <CategoryId>4</CategoryId>
      <CategoryName>sample string 5</CategoryName>
      <Color>sample string 15</Color>
      <ColorId>14</ColorId>
      <Discount>24</Discount>
      <Expiry>sample string 25</Expiry>
      <GrandAmount>31</GrandAmount>
      <GrnDetId>1</GrnDetId>
      <GrnId>2</GrnId>
      <GrnNo>sample string 3</GrnNo>
      <MRP>23</MRP>
      <ProductId>10</ProductId>
      <ProductName>sample string 11</ProductName>
      <PurchaseQty>sample string 20</PurchaseQty>
      <PurchaseRate>21</PurchaseRate>
      <Qty>sample string 18</Qty>
      <Rate>19</Rate>
      <RecieveQty>sample string 22</RecieveQty>
      <SaleRate>26</SaleRate>
      <Size>sample string 13</Size>
      <SizeId>12</SizeId>
      <SubCategoryName>sample string 7</SubCategoryName>
      <SubcategoryId>6</SubcategoryId>
      <TaxAmount>29</TaxAmount>
      <TaxId>27</TaxId>
      <TaxInclusive>17</TaxInclusive>
      <TaxName>sample string 28</TaxName>
      <Total>30</Total>
      <Unit>sample string 16</Unit>
    </GRNDetailsEntities>
    <GRNDetailsEntities>
      <BrandId>8</BrandId>
      <BrandName>sample string 9</BrandName>
      <CategoryId>4</CategoryId>
      <CategoryName>sample string 5</CategoryName>
      <Color>sample string 15</Color>
      <ColorId>14</ColorId>
      <Discount>24</Discount>
      <Expiry>sample string 25</Expiry>
      <GrandAmount>31</GrandAmount>
      <GrnDetId>1</GrnDetId>
      <GrnId>2</GrnId>
      <GrnNo>sample string 3</GrnNo>
      <MRP>23</MRP>
      <ProductId>10</ProductId>
      <ProductName>sample string 11</ProductName>
      <PurchaseQty>sample string 20</PurchaseQty>
      <PurchaseRate>21</PurchaseRate>
      <Qty>sample string 18</Qty>
      <Rate>19</Rate>
      <RecieveQty>sample string 22</RecieveQty>
      <SaleRate>26</SaleRate>
      <Size>sample string 13</Size>
      <SizeId>12</SizeId>
      <SubCategoryName>sample string 7</SubCategoryName>
      <SubcategoryId>6</SubcategoryId>
      <TaxAmount>29</TaxAmount>
      <TaxId>27</TaxId>
      <TaxInclusive>17</TaxInclusive>
      <TaxName>sample string 28</TaxName>
      <Total>30</Total>
      <Unit>sample string 16</Unit>
    </GRNDetailsEntities>
  </GRNDetails>
  <GrandTotal>20</GrandTotal>
  <GrnDate>2021-09-26T20:47:36.1833784+05:30</GrnDate>
  <GrnId>2</GrnId>
  <GrnNo>sample string 3</GrnNo>
  <LR_Date>2021-09-26T20:47:36.1833784+05:30</LR_Date>
  <LR_No>sample string 15</LR_No>
  <No_of_Packages>sample string 17</No_of_Packages>
  <PendAmount>21</PendAmount>
  <PoDate>2021-09-26T20:47:36.1833784+05:30</PoDate>
  <PoId>5</PoId>
  <PoNo>sample string 13</PoNo>
  <RecAmount>22</RecAmount>
  <SupplierId>7</SupplierId>
  <SupplierInvAmt>10</SupplierInvAmt>
  <SupplierInvDate>2021-09-26T20:47:36.1833784+05:30</SupplierInvDate>
  <SupplierInvNo>sample string 9</SupplierInvNo>
  <SupplierName>sample string 8</SupplierName>
  <TaxAmount>19</TaxAmount>
  <Total>18</Total>
  <TransportId>14</TransportId>
  <UserId>1</UserId>
</GRNEntities>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.