POST api/GRNHeaderLine?autoGRNflag={autoGRNflag}&Barcodeflag={Barcodeflag}&GRNRemark={GRNRemark}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
autoGRNflag | boolean |
Required |
|
Barcodeflag | boolean |
Required |
|
GRNRemark | string |
Required |
Body Parameters
Z_GRNHeaderLineRequestName | Description | Type | Additional information |
---|---|---|---|
grnHeader | Collection of P_GRNHeader |
None. |
|
grnLine | Collection of P_GRNLine |
None. |
|
inventTrans | Collection of C_InventTrans |
None. |
|
inventBatchTrans | Collection of C_InventBatchTrans |
None. |
|
inventBatchTransDetail | Collection of C_InventBatchTransDetail |
None. |
|
Warrantyline | Collection of C_ItemWarrantyDetails |
None. |
Request Formats
application/json, text/json
Sample:
{ "grnHeader": [ { "Id": 1, "GRNNo": "sample string 2", "POId": "sample string 3", "PoLineNumber": 4, "ItemCode": "sample string 5", "TotalOrderQty": 1.0, "TotalPendingQty": 1.0, "TotalReceivedQty": 1.0, "TotalAcceptQty": 1.0, "TotalRejectQty": 1.0, "PackingSlipNo": "sample string 6", "PostingFlag": "sample string 7", "BranchCode": 8, "TransId": "sample string 9", "CreatedBy": 10, "CreatedOn": "2025-03-28T19:24:22.8708771+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T19:24:22.8708771+00:00", "ItemTypeFlag": "sample string 12", "PortCode": "sample string 13", "BillOfEntry": "sample string 14", "BillOfEntryDate": "2025-03-28T19:24:22.8708771+00:00" }, { "Id": 1, "GRNNo": "sample string 2", "POId": "sample string 3", "PoLineNumber": 4, "ItemCode": "sample string 5", "TotalOrderQty": 1.0, "TotalPendingQty": 1.0, "TotalReceivedQty": 1.0, "TotalAcceptQty": 1.0, "TotalRejectQty": 1.0, "PackingSlipNo": "sample string 6", "PostingFlag": "sample string 7", "BranchCode": 8, "TransId": "sample string 9", "CreatedBy": 10, "CreatedOn": "2025-03-28T19:24:22.8708771+00:00", "ModifiedBy": 1, "ModifiedOn": "2025-03-28T19:24:22.8708771+00:00", "ItemTypeFlag": "sample string 12", "PortCode": "sample string 13", "BillOfEntry": "sample string 14", "BillOfEntryDate": "2025-03-28T19:24:22.8708771+00:00" } ], "grnLine": [ { "Id": 1, "GRNNo": "sample string 2", "GRNLineNumber": 1, "BatchNo": "sample string 3", "PoLineNumber": 1, "ItemCode": "sample string 4", "OrderQty": 1.0, "ReceivedQty": 1.0, "AcceptedQty": 1.0, "RejectedQty": 1.0, "BranchCode": 5 }, { "Id": 1, "GRNNo": "sample string 2", "GRNLineNumber": 1, "BatchNo": "sample string 3", "PoLineNumber": 1, "ItemCode": "sample string 4", "OrderQty": 1.0, "ReceivedQty": 1.0, "AcceptedQty": 1.0, "RejectedQty": 1.0, "BranchCode": 5 } ], "inventTrans": [ { "Id": 1, "TransId": "sample string 2", "ItemCode": "sample string 3", "VoucherNo": "sample string 4", "TransType": "sample string 5", "OpeningQty": 1.0, "TransQty": 1.0, "ClosingQty": 1.0, "TransDate": "2025-03-28T19:24:22.8708771+00:00", "BranchCode": 6, "UpdatedByIT": "sample string 7" }, { "Id": 1, "TransId": "sample string 2", "ItemCode": "sample string 3", "VoucherNo": "sample string 4", "TransType": "sample string 5", "OpeningQty": 1.0, "TransQty": 1.0, "ClosingQty": 1.0, "TransDate": "2025-03-28T19:24:22.8708771+00:00", "BranchCode": 6, "UpdatedByIT": "sample string 7" } ], "inventBatchTrans": [ { "Id": 1, "TransId": "sample string 2", "ItemCode": "sample string 3", "VoucherNo": "sample string 4", "TransType": "sample string 5", "BatchNo": "sample string 6", "BatchOpeningQty": 1.0, "BatchTransQty": 1.0, "BatchClosingQty": 1.0, "TransDate": "2025-03-28T19:24:22.8708771+00:00", "WarehouseId": 7, "SupplierCode": "sample string 8", "STSupplierCode": "sample string 9", "FinalStockFlag": "sample string 10", "ActualRate": 1.0, "ExciseRate": 1.0, "CostRate": 1.0, "TotalRate": 11.0, "PostTransId": "sample string 12", "BranchCode": 13, "PurchaseDate": "2025-03-28T19:24:22.8708771+00:00", "UpdatedByIT": "sample string 14" }, { "Id": 1, "TransId": "sample string 2", "ItemCode": "sample string 3", "VoucherNo": "sample string 4", "TransType": "sample string 5", "BatchNo": "sample string 6", "BatchOpeningQty": 1.0, "BatchTransQty": 1.0, "BatchClosingQty": 1.0, "TransDate": "2025-03-28T19:24:22.8708771+00:00", "WarehouseId": 7, "SupplierCode": "sample string 8", "STSupplierCode": "sample string 9", "FinalStockFlag": "sample string 10", "ActualRate": 1.0, "ExciseRate": 1.0, "CostRate": 1.0, "TotalRate": 11.0, "PostTransId": "sample string 12", "BranchCode": 13, "PurchaseDate": "2025-03-28T19:24:22.8708771+00:00", "UpdatedByIT": "sample string 14" } ], "inventBatchTransDetail": [ { "Id": 1, "TransId": "sample string 2", "ItemCode": "sample string 3", "BatchNo": "sample string 4", "Qty": 1.0, "Barcode": "sample string 5", "OuterNo": "sample string 6", "PalletNo": "sample string 7", "UnitId": 1, "BarcodeCreatedDate": "2025-03-28T19:24:22.8708771+00:00", "OuterCreatedDate": "2025-03-28T19:24:22.8708771+00:00", "PalletCreatedDate": "2025-03-28T19:24:22.8708771+00:00", "SOID": "sample string 9", "InvoiceNo": "sample string 10", "PackingSlipId": "sample string 11", "BarcodePrint": "sample string 12", "OuterPrint": "sample string 13", "PalletPrint": "sample string 14", "TransDate": "2025-03-28T19:24:22.8708771+00:00", "BranchCode": 15, "VoucherNo": "sample string 16", "InventBatchId": 17, "SupplierGRNNo": "sample string 18", "UpdatedByIT": "sample string 19" }, { "Id": 1, "TransId": "sample string 2", "ItemCode": "sample string 3", "BatchNo": "sample string 4", "Qty": 1.0, "Barcode": "sample string 5", "OuterNo": "sample string 6", "PalletNo": "sample string 7", "UnitId": 1, "BarcodeCreatedDate": "2025-03-28T19:24:22.8708771+00:00", "OuterCreatedDate": "2025-03-28T19:24:22.8708771+00:00", "PalletCreatedDate": "2025-03-28T19:24:22.8708771+00:00", "SOID": "sample string 9", "InvoiceNo": "sample string 10", "PackingSlipId": "sample string 11", "BarcodePrint": "sample string 12", "OuterPrint": "sample string 13", "PalletPrint": "sample string 14", "TransDate": "2025-03-28T19:24:22.8708771+00:00", "BranchCode": 15, "VoucherNo": "sample string 16", "InventBatchId": 17, "SupplierGRNNo": "sample string 18", "UpdatedByIT": "sample string 19" } ], "Warrantyline": [ { "Id": 1, "GRNNO": "sample string 2", "SupplierCode": "sample string 3", "ItemCode": "sample string 4", "BatchNo": "sample string 5", "ItemFlag": "sample string 6", "PONo": "sample string 7", "WarrantyMonths": 8, "WarrantyValidityDate": "2025-03-28T19:24:22.8708771+00:00", "BranchCode": 9 }, { "Id": 1, "GRNNO": "sample string 2", "SupplierCode": "sample string 3", "ItemCode": "sample string 4", "BatchNo": "sample string 5", "ItemFlag": "sample string 6", "PONo": "sample string 7", "WarrantyMonths": 8, "WarrantyValidityDate": "2025-03-28T19:24:22.8708771+00:00", "BranchCode": 9 } ] }
application/xml, text/xml
Sample:
<Z_GRNHeaderLineRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models"> <Warrantyline> <C_ItemWarrantyDetails> <BatchNo>sample string 5</BatchNo> <BranchCode>9</BranchCode> <GRNNO>sample string 2</GRNNO> <Id>1</Id> <ItemCode>sample string 4</ItemCode> <ItemFlag>sample string 6</ItemFlag> <PONo>sample string 7</PONo> <SupplierCode>sample string 3</SupplierCode> <WarrantyMonths>8</WarrantyMonths> <WarrantyValidityDate>2025-03-28T19:24:22.8708771+00:00</WarrantyValidityDate> </C_ItemWarrantyDetails> <C_ItemWarrantyDetails> <BatchNo>sample string 5</BatchNo> <BranchCode>9</BranchCode> <GRNNO>sample string 2</GRNNO> <Id>1</Id> <ItemCode>sample string 4</ItemCode> <ItemFlag>sample string 6</ItemFlag> <PONo>sample string 7</PONo> <SupplierCode>sample string 3</SupplierCode> <WarrantyMonths>8</WarrantyMonths> <WarrantyValidityDate>2025-03-28T19:24:22.8708771+00:00</WarrantyValidityDate> </C_ItemWarrantyDetails> </Warrantyline> <grnHeader> <P_GRNHeader> <BillOfEntry>sample string 14</BillOfEntry> <BillOfEntryDate>2025-03-28T19:24:22.8708771+00:00</BillOfEntryDate> <BranchCode>8</BranchCode> <CreatedBy>10</CreatedBy> <CreatedOn>2025-03-28T19:24:22.8708771+00:00</CreatedOn> <GRNNo>sample string 2</GRNNo> <Id>1</Id> <ItemCode>sample string 5</ItemCode> <ItemTypeFlag>sample string 12</ItemTypeFlag> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T19:24:22.8708771+00:00</ModifiedOn> <POId>sample string 3</POId> <PackingSlipNo>sample string 6</PackingSlipNo> <PoLineNumber>4</PoLineNumber> <PortCode>sample string 13</PortCode> <PostingFlag>sample string 7</PostingFlag> <TotalAcceptQty>1</TotalAcceptQty> <TotalOrderQty>1</TotalOrderQty> <TotalPendingQty>1</TotalPendingQty> <TotalReceivedQty>1</TotalReceivedQty> <TotalRejectQty>1</TotalRejectQty> <TransId>sample string 9</TransId> </P_GRNHeader> <P_GRNHeader> <BillOfEntry>sample string 14</BillOfEntry> <BillOfEntryDate>2025-03-28T19:24:22.8708771+00:00</BillOfEntryDate> <BranchCode>8</BranchCode> <CreatedBy>10</CreatedBy> <CreatedOn>2025-03-28T19:24:22.8708771+00:00</CreatedOn> <GRNNo>sample string 2</GRNNo> <Id>1</Id> <ItemCode>sample string 5</ItemCode> <ItemTypeFlag>sample string 12</ItemTypeFlag> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2025-03-28T19:24:22.8708771+00:00</ModifiedOn> <POId>sample string 3</POId> <PackingSlipNo>sample string 6</PackingSlipNo> <PoLineNumber>4</PoLineNumber> <PortCode>sample string 13</PortCode> <PostingFlag>sample string 7</PostingFlag> <TotalAcceptQty>1</TotalAcceptQty> <TotalOrderQty>1</TotalOrderQty> <TotalPendingQty>1</TotalPendingQty> <TotalReceivedQty>1</TotalReceivedQty> <TotalRejectQty>1</TotalRejectQty> <TransId>sample string 9</TransId> </P_GRNHeader> </grnHeader> <grnLine> <P_GRNLine> <AcceptedQty>1</AcceptedQty> <BatchNo>sample string 3</BatchNo> <BranchCode>5</BranchCode> <GRNLineNumber>1</GRNLineNumber> <GRNNo>sample string 2</GRNNo> <Id>1</Id> <ItemCode>sample string 4</ItemCode> <OrderQty>1</OrderQty> <PoLineNumber>1</PoLineNumber> <ReceivedQty>1</ReceivedQty> <RejectedQty>1</RejectedQty> </P_GRNLine> <P_GRNLine> <AcceptedQty>1</AcceptedQty> <BatchNo>sample string 3</BatchNo> <BranchCode>5</BranchCode> <GRNLineNumber>1</GRNLineNumber> <GRNNo>sample string 2</GRNNo> <Id>1</Id> <ItemCode>sample string 4</ItemCode> <OrderQty>1</OrderQty> <PoLineNumber>1</PoLineNumber> <ReceivedQty>1</ReceivedQty> <RejectedQty>1</RejectedQty> </P_GRNLine> </grnLine> <inventBatchTrans> <C_InventBatchTrans> <ActualRate>1</ActualRate> <BatchClosingQty>1</BatchClosingQty> <BatchNo>sample string 6</BatchNo> <BatchOpeningQty>1</BatchOpeningQty> <BatchTransQty>1</BatchTransQty> <BranchCode>13</BranchCode> <CostRate>1</CostRate> <ExciseRate>1</ExciseRate> <FinalStockFlag>sample string 10</FinalStockFlag> <Id>1</Id> <ItemCode>sample string 3</ItemCode> <PostTransId>sample string 12</PostTransId> <PurchaseDate>2025-03-28T19:24:22.8708771+00:00</PurchaseDate> <STSupplierCode>sample string 9</STSupplierCode> <SupplierCode>sample string 8</SupplierCode> <TotalRate>11</TotalRate> <TransDate>2025-03-28T19:24:22.8708771+00:00</TransDate> <TransId>sample string 2</TransId> <TransType>sample string 5</TransType> <UpdatedByIT>sample string 14</UpdatedByIT> <VoucherNo>sample string 4</VoucherNo> <WarehouseId>7</WarehouseId> </C_InventBatchTrans> <C_InventBatchTrans> <ActualRate>1</ActualRate> <BatchClosingQty>1</BatchClosingQty> <BatchNo>sample string 6</BatchNo> <BatchOpeningQty>1</BatchOpeningQty> <BatchTransQty>1</BatchTransQty> <BranchCode>13</BranchCode> <CostRate>1</CostRate> <ExciseRate>1</ExciseRate> <FinalStockFlag>sample string 10</FinalStockFlag> <Id>1</Id> <ItemCode>sample string 3</ItemCode> <PostTransId>sample string 12</PostTransId> <PurchaseDate>2025-03-28T19:24:22.8708771+00:00</PurchaseDate> <STSupplierCode>sample string 9</STSupplierCode> <SupplierCode>sample string 8</SupplierCode> <TotalRate>11</TotalRate> <TransDate>2025-03-28T19:24:22.8708771+00:00</TransDate> <TransId>sample string 2</TransId> <TransType>sample string 5</TransType> <UpdatedByIT>sample string 14</UpdatedByIT> <VoucherNo>sample string 4</VoucherNo> <WarehouseId>7</WarehouseId> </C_InventBatchTrans> </inventBatchTrans> <inventBatchTransDetail> <C_InventBatchTransDetail> <Barcode>sample string 5</Barcode> <BarcodeCreatedDate>2025-03-28T19:24:22.8708771+00:00</BarcodeCreatedDate> <BarcodePrint>sample string 12</BarcodePrint> <BatchNo>sample string 4</BatchNo> <BranchCode>15</BranchCode> <Id>1</Id> <InventBatchId>17</InventBatchId> <InvoiceNo>sample string 10</InvoiceNo> <ItemCode>sample string 3</ItemCode> <OuterCreatedDate>2025-03-28T19:24:22.8708771+00:00</OuterCreatedDate> <OuterNo>sample string 6</OuterNo> <OuterPrint>sample string 13</OuterPrint> <PackingSlipId>sample string 11</PackingSlipId> <PalletCreatedDate>2025-03-28T19:24:22.8708771+00:00</PalletCreatedDate> <PalletNo>sample string 7</PalletNo> <PalletPrint>sample string 14</PalletPrint> <Qty>1</Qty> <SOID>sample string 9</SOID> <SupplierGRNNo>sample string 18</SupplierGRNNo> <TransDate>2025-03-28T19:24:22.8708771+00:00</TransDate> <TransId>sample string 2</TransId> <UnitId>1</UnitId> <UpdatedByIT>sample string 19</UpdatedByIT> <VoucherNo>sample string 16</VoucherNo> </C_InventBatchTransDetail> <C_InventBatchTransDetail> <Barcode>sample string 5</Barcode> <BarcodeCreatedDate>2025-03-28T19:24:22.8708771+00:00</BarcodeCreatedDate> <BarcodePrint>sample string 12</BarcodePrint> <BatchNo>sample string 4</BatchNo> <BranchCode>15</BranchCode> <Id>1</Id> <InventBatchId>17</InventBatchId> <InvoiceNo>sample string 10</InvoiceNo> <ItemCode>sample string 3</ItemCode> <OuterCreatedDate>2025-03-28T19:24:22.8708771+00:00</OuterCreatedDate> <OuterNo>sample string 6</OuterNo> <OuterPrint>sample string 13</OuterPrint> <PackingSlipId>sample string 11</PackingSlipId> <PalletCreatedDate>2025-03-28T19:24:22.8708771+00:00</PalletCreatedDate> <PalletNo>sample string 7</PalletNo> <PalletPrint>sample string 14</PalletPrint> <Qty>1</Qty> <SOID>sample string 9</SOID> <SupplierGRNNo>sample string 18</SupplierGRNNo> <TransDate>2025-03-28T19:24:22.8708771+00:00</TransDate> <TransId>sample string 2</TransId> <UnitId>1</UnitId> <UpdatedByIT>sample string 19</UpdatedByIT> <VoucherNo>sample string 16</VoucherNo> </C_InventBatchTransDetail> </inventBatchTransDetail> <inventTrans> <C_InventTrans> <BranchCode>6</BranchCode> <ClosingQty>1</ClosingQty> <Id>1</Id> <ItemCode>sample string 3</ItemCode> <OpeningQty>1</OpeningQty> <TransDate>2025-03-28T19:24:22.8708771+00:00</TransDate> <TransId>sample string 2</TransId> <TransQty>1</TransQty> <TransType>sample string 5</TransType> <UpdatedByIT>sample string 7</UpdatedByIT> <VoucherNo>sample string 4</VoucherNo> </C_InventTrans> <C_InventTrans> <BranchCode>6</BranchCode> <ClosingQty>1</ClosingQty> <Id>1</Id> <ItemCode>sample string 3</ItemCode> <OpeningQty>1</OpeningQty> <TransDate>2025-03-28T19:24:22.8708771+00:00</TransDate> <TransId>sample string 2</TransId> <TransQty>1</TransQty> <TransType>sample string 5</TransType> <UpdatedByIT>sample string 7</UpdatedByIT> <VoucherNo>sample string 4</VoucherNo> </C_InventTrans> </inventTrans> </Z_GRNHeaderLineRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |