POST api/GoodsReceipt/Insert

Request Information

URI Parameters

None.

Body Parameters

GoodsReceiptModel
NameDescriptionTypeAdditional information
GRNID

integer

None.

GRNNumber

string

None.

GRNDate

date

None.

POID

integer

None.

PONumber

string

None.

InvoiceID

integer

None.

InvoiceNumber

string

None.

OtherReference

string

None.

LocationID

integer

None.

LocationName

string

None.

VehicleNumber

string

None.

EwayBillNumber

string

None.

VendorID

integer

None.

VendorName

string

None.

InventoryType

string

None.

Remarks

string

None.

ItemDetails

Collection of GoodsReceiptDetailModel

None.

lstInwards

Collection of GoodsInwardViewModel

None.

LoginId

integer

None.

CompanyDetailID

integer

None.

TotalReceivedQty

integer

None.

ImagePath1

string

None.

ImagePath2

string

None.

ImagePath3

string

None.

ImagePath4

string

None.

GRNType

string

None.

VendorWarehouseID

integer

None.

TrackingNumber

string

None.

GRNStatus

string

None.

Request Formats

application/json, text/json

Sample:
{
  "GRNID": 1,
  "GRNNumber": "sample string 2",
  "GRNDate": "2025-12-16T11:05:04.1336249+00:00",
  "POID": 4,
  "PONumber": "sample string 5",
  "InvoiceID": 6,
  "InvoiceNumber": "sample string 7",
  "OtherReference": "sample string 8",
  "LocationID": 9,
  "LocationName": "sample string 10",
  "VehicleNumber": "sample string 11",
  "EwayBillNumber": "sample string 12",
  "VendorID": 13,
  "VendorName": "sample string 14",
  "InventoryType": "sample string 15",
  "Remarks": "sample string 16",
  "ItemDetails": [
    {
      "GRNDetailID": 1,
      "GRNID": 2,
      "CompanyDetailID": 3,
      "ItemID": 4,
      "ItemCode": "sample string 5",
      "ItemDescription": "sample string 6",
      "VendorItemCode": "sample string 7",
      "TotalReceivedQty": 8,
      "InventorySellableQty": 9,
      "InventoryShortageQty": 10,
      "InventoryDamageQty": 11,
      "InventoryOthersQty": 12,
      "ShortageRemarks": "sample string 13",
      "DamageRemarks": "sample string 14",
      "OthersRemarks": "sample string 15",
      "PDFFilePath": "sample string 16",
      "LocationName": "sample string 17",
      "JenniferItemSerial": "sample string 18",
      "POQTY": 19,
      "AvailableQty": 20,
      "GRNQty": 21,
      "ImagePath": "sample string 22"
    },
    {
      "GRNDetailID": 1,
      "GRNID": 2,
      "CompanyDetailID": 3,
      "ItemID": 4,
      "ItemCode": "sample string 5",
      "ItemDescription": "sample string 6",
      "VendorItemCode": "sample string 7",
      "TotalReceivedQty": 8,
      "InventorySellableQty": 9,
      "InventoryShortageQty": 10,
      "InventoryDamageQty": 11,
      "InventoryOthersQty": 12,
      "ShortageRemarks": "sample string 13",
      "DamageRemarks": "sample string 14",
      "OthersRemarks": "sample string 15",
      "PDFFilePath": "sample string 16",
      "LocationName": "sample string 17",
      "JenniferItemSerial": "sample string 18",
      "POQTY": 19,
      "AvailableQty": 20,
      "GRNQty": 21,
      "ImagePath": "sample string 22"
    }
  ],
  "lstInwards": [
    {
      "GRNInwardID": 1,
      "CompanyDetailID": 2,
      "GRNDetailID": 3,
      "VendorItemSerialType": "sample string 4",
      "VendorItemSerialNumber": "sample string 5",
      "ItemID": 6,
      "JenniferItemSerial": "sample string 7",
      "LoginId": 8,
      "GRNNumber": "sample string 9",
      "InventoryType": "sample string 10",
      "ItemCode": "sample string 11",
      "ItemName": "sample string 12",
      "GRNID": 13,
      "IsDeleteAllowed": true
    },
    {
      "GRNInwardID": 1,
      "CompanyDetailID": 2,
      "GRNDetailID": 3,
      "VendorItemSerialType": "sample string 4",
      "VendorItemSerialNumber": "sample string 5",
      "ItemID": 6,
      "JenniferItemSerial": "sample string 7",
      "LoginId": 8,
      "GRNNumber": "sample string 9",
      "InventoryType": "sample string 10",
      "ItemCode": "sample string 11",
      "ItemName": "sample string 12",
      "GRNID": 13,
      "IsDeleteAllowed": true
    }
  ],
  "LoginId": 17,
  "CompanyDetailID": 18,
  "TotalReceivedQty": 19,
  "ImagePath1": "sample string 20",
  "ImagePath2": "sample string 21",
  "ImagePath3": "sample string 22",
  "ImagePath4": "sample string 23",
  "GRNType": "sample string 24",
  "VendorWarehouseID": 25,
  "TrackingNumber": "sample string 26",
  "GRNStatus": "sample string 27"
}

application/xml, text/xml

Sample:
<GoodsReceiptModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAL.ViewModel">
  <CompanyDetailID>18</CompanyDetailID>
  <EwayBillNumber>sample string 12</EwayBillNumber>
  <GRNDate>2025-12-16T11:05:04.1336249+00:00</GRNDate>
  <GRNID>1</GRNID>
  <GRNNumber>sample string 2</GRNNumber>
  <GRNStatus>sample string 27</GRNStatus>
  <GRNType>sample string 24</GRNType>
  <ImagePath1>sample string 20</ImagePath1>
  <ImagePath2>sample string 21</ImagePath2>
  <ImagePath3>sample string 22</ImagePath3>
  <ImagePath4>sample string 23</ImagePath4>
  <InventoryType>sample string 15</InventoryType>
  <InvoiceID>6</InvoiceID>
  <InvoiceNumber>sample string 7</InvoiceNumber>
  <ItemDetails>
    <GoodsReceiptDetailModel>
      <AvailableQty>20</AvailableQty>
      <CompanyDetailID>3</CompanyDetailID>
      <DamageRemarks>sample string 14</DamageRemarks>
      <GRNDetailID>1</GRNDetailID>
      <GRNID>2</GRNID>
      <GRNQty>21</GRNQty>
      <ImagePath>sample string 22</ImagePath>
      <InventoryDamageQty>11</InventoryDamageQty>
      <InventoryOthersQty>12</InventoryOthersQty>
      <InventorySellableQty>9</InventorySellableQty>
      <InventoryShortageQty>10</InventoryShortageQty>
      <ItemCode>sample string 5</ItemCode>
      <ItemDescription>sample string 6</ItemDescription>
      <ItemID>4</ItemID>
      <JenniferItemSerial>sample string 18</JenniferItemSerial>
      <LocationName>sample string 17</LocationName>
      <OthersRemarks>sample string 15</OthersRemarks>
      <PDFFilePath>sample string 16</PDFFilePath>
      <POQTY>19</POQTY>
      <ShortageRemarks>sample string 13</ShortageRemarks>
      <TotalReceivedQty>8</TotalReceivedQty>
      <VendorItemCode>sample string 7</VendorItemCode>
    </GoodsReceiptDetailModel>
    <GoodsReceiptDetailModel>
      <AvailableQty>20</AvailableQty>
      <CompanyDetailID>3</CompanyDetailID>
      <DamageRemarks>sample string 14</DamageRemarks>
      <GRNDetailID>1</GRNDetailID>
      <GRNID>2</GRNID>
      <GRNQty>21</GRNQty>
      <ImagePath>sample string 22</ImagePath>
      <InventoryDamageQty>11</InventoryDamageQty>
      <InventoryOthersQty>12</InventoryOthersQty>
      <InventorySellableQty>9</InventorySellableQty>
      <InventoryShortageQty>10</InventoryShortageQty>
      <ItemCode>sample string 5</ItemCode>
      <ItemDescription>sample string 6</ItemDescription>
      <ItemID>4</ItemID>
      <JenniferItemSerial>sample string 18</JenniferItemSerial>
      <LocationName>sample string 17</LocationName>
      <OthersRemarks>sample string 15</OthersRemarks>
      <PDFFilePath>sample string 16</PDFFilePath>
      <POQTY>19</POQTY>
      <ShortageRemarks>sample string 13</ShortageRemarks>
      <TotalReceivedQty>8</TotalReceivedQty>
      <VendorItemCode>sample string 7</VendorItemCode>
    </GoodsReceiptDetailModel>
  </ItemDetails>
  <LocationID>9</LocationID>
  <LocationName>sample string 10</LocationName>
  <LoginId>17</LoginId>
  <OtherReference>sample string 8</OtherReference>
  <POID>4</POID>
  <PONumber>sample string 5</PONumber>
  <Remarks>sample string 16</Remarks>
  <TotalReceivedQty>19</TotalReceivedQty>
  <TrackingNumber>sample string 26</TrackingNumber>
  <VehicleNumber>sample string 11</VehicleNumber>
  <VendorID>13</VendorID>
  <VendorName>sample string 14</VendorName>
  <VendorWarehouseID>25</VendorWarehouseID>
  <lstInwards>
    <GoodsInwardViewModel>
      <CompanyDetailID>2</CompanyDetailID>
      <GRNDetailID>3</GRNDetailID>
      <GRNID>13</GRNID>
      <GRNInwardID>1</GRNInwardID>
      <GRNNumber>sample string 9</GRNNumber>
      <InventoryType>sample string 10</InventoryType>
      <IsDeleteAllowed>true</IsDeleteAllowed>
      <ItemCode>sample string 11</ItemCode>
      <ItemID>6</ItemID>
      <ItemName>sample string 12</ItemName>
      <JenniferItemSerial>sample string 7</JenniferItemSerial>
      <LoginId>8</LoginId>
      <VendorItemSerialNumber>sample string 5</VendorItemSerialNumber>
      <VendorItemSerialType>sample string 4</VendorItemSerialType>
    </GoodsInwardViewModel>
    <GoodsInwardViewModel>
      <CompanyDetailID>2</CompanyDetailID>
      <GRNDetailID>3</GRNDetailID>
      <GRNID>13</GRNID>
      <GRNInwardID>1</GRNInwardID>
      <GRNNumber>sample string 9</GRNNumber>
      <InventoryType>sample string 10</InventoryType>
      <IsDeleteAllowed>true</IsDeleteAllowed>
      <ItemCode>sample string 11</ItemCode>
      <ItemID>6</ItemID>
      <ItemName>sample string 12</ItemName>
      <JenniferItemSerial>sample string 7</JenniferItemSerial>
      <LoginId>8</LoginId>
      <VendorItemSerialNumber>sample string 5</VendorItemSerialNumber>
      <VendorItemSerialType>sample string 4</VendorItemSerialType>
    </GoodsInwardViewModel>
  </lstInwards>
</GoodsReceiptModel>

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.