POST api/grn/add
Request Information
URI Parameters
None.
Body Parameters
GRNEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| GRNId | integer |
None. |
|
| PurchaseOrderId | integer |
None. |
|
| GRNNumber | string |
None. |
|
| InvoiceNo | string |
None. |
|
| ReceivedDate | date |
None. |
|
| InvoiceDate | date |
None. |
|
| PurchaseOrderDetail | Collection of PurchaseOrderDetailEntity |
None. |
|
| SupplierId | integer |
None. |
|
| SupplierName | string |
None. |
|
| CreatedTime | date |
None. |
|
| AmountPaid | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| PaymentMode | string |
None. |
|
| PendingAmount | decimal number |
None. |
|
| VendorId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"GRNId": 1,
"PurchaseOrderId": 1,
"GRNNumber": "sample string 2",
"InvoiceNo": "sample string 3",
"ReceivedDate": "2025-12-31T16:36:32.8630591+05:30",
"InvoiceDate": "2025-12-31T16:36:32.8630591+05:30",
"PurchaseOrderDetail": [
{
"PurchaseOrderDetailsId": 1,
"OrderCost": 1.0,
"OrderQuantity": 1,
"ProductId": 1,
"ProductSKU": "sample string 2",
"ProductName": "sample string 3",
"SupplierId": 4,
"PurchaseOrderId": 5,
"ReceivedCost": 1.0,
"ReceivedQuantity": 1,
"RecommendedMRP": 6.0,
"VendorId": 7,
"LocationSpecificInventoryList": [
{
"LocationSpecificInventoryId": 1,
"VendorId": 2,
"LocationId": 3,
"ProductId": 4,
"ReorderLevel": 5,
"CurrentQuantity": 6,
"CreatedTime": "2025-12-31T16:36:32.8630591+05:30",
"Price": 1.0,
"UpdatedTime": "2025-12-31T16:36:32.8630591+05:30",
"IsDeleted": true,
"LocationName": "sample string 9",
"TaxType": "sample string 10"
},
{
"LocationSpecificInventoryId": 1,
"VendorId": 2,
"LocationId": 3,
"ProductId": 4,
"ReorderLevel": 5,
"CurrentQuantity": 6,
"CreatedTime": "2025-12-31T16:36:32.8630591+05:30",
"Price": 1.0,
"UpdatedTime": "2025-12-31T16:36:32.8630591+05:30",
"IsDeleted": true,
"LocationName": "sample string 9",
"TaxType": "sample string 10"
}
]
},
{
"PurchaseOrderDetailsId": 1,
"OrderCost": 1.0,
"OrderQuantity": 1,
"ProductId": 1,
"ProductSKU": "sample string 2",
"ProductName": "sample string 3",
"SupplierId": 4,
"PurchaseOrderId": 5,
"ReceivedCost": 1.0,
"ReceivedQuantity": 1,
"RecommendedMRP": 6.0,
"VendorId": 7,
"LocationSpecificInventoryList": [
{
"LocationSpecificInventoryId": 1,
"VendorId": 2,
"LocationId": 3,
"ProductId": 4,
"ReorderLevel": 5,
"CurrentQuantity": 6,
"CreatedTime": "2025-12-31T16:36:32.8630591+05:30",
"Price": 1.0,
"UpdatedTime": "2025-12-31T16:36:32.8630591+05:30",
"IsDeleted": true,
"LocationName": "sample string 9",
"TaxType": "sample string 10"
},
{
"LocationSpecificInventoryId": 1,
"VendorId": 2,
"LocationId": 3,
"ProductId": 4,
"ReorderLevel": 5,
"CurrentQuantity": 6,
"CreatedTime": "2025-12-31T16:36:32.8630591+05:30",
"Price": 1.0,
"UpdatedTime": "2025-12-31T16:36:32.8630591+05:30",
"IsDeleted": true,
"LocationName": "sample string 9",
"TaxType": "sample string 10"
}
]
}
],
"SupplierId": 1,
"SupplierName": "sample string 4",
"CreatedTime": "2025-12-31T16:36:32.8630591+05:30",
"AmountPaid": 5.0,
"TotalAmount": 6.0,
"PaymentMode": "sample string 7",
"PendingAmount": 8.0,
"VendorId": 1
}
application/xml, text/xml
Sample:
<GRNEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/pos_crm_api_DAL.Entities">
<AmountPaid>5</AmountPaid>
<CreatedTime>2025-12-31T16:36:32.8630591+05:30</CreatedTime>
<GRNId>1</GRNId>
<GRNNumber>sample string 2</GRNNumber>
<InvoiceDate>2025-12-31T16:36:32.8630591+05:30</InvoiceDate>
<InvoiceNo>sample string 3</InvoiceNo>
<PaymentMode>sample string 7</PaymentMode>
<PendingAmount>8</PendingAmount>
<PurchaseOrderDetail>
<PurchaseOrderDetailEntity>
<LocationSpecificInventoryList>
<LocationSpecificInventoryEntity>
<CreatedTime>2025-12-31T16:36:32.8630591+05:30</CreatedTime>
<CurrentQuantity>6</CurrentQuantity>
<IsDeleted>true</IsDeleted>
<LocationId>3</LocationId>
<LocationName>sample string 9</LocationName>
<LocationSpecificInventoryId>1</LocationSpecificInventoryId>
<Price>1</Price>
<ProductId>4</ProductId>
<ReorderLevel>5</ReorderLevel>
<TaxType>sample string 10</TaxType>
<UpdatedTime>2025-12-31T16:36:32.8630591+05:30</UpdatedTime>
<VendorId>2</VendorId>
</LocationSpecificInventoryEntity>
<LocationSpecificInventoryEntity>
<CreatedTime>2025-12-31T16:36:32.8630591+05:30</CreatedTime>
<CurrentQuantity>6</CurrentQuantity>
<IsDeleted>true</IsDeleted>
<LocationId>3</LocationId>
<LocationName>sample string 9</LocationName>
<LocationSpecificInventoryId>1</LocationSpecificInventoryId>
<Price>1</Price>
<ProductId>4</ProductId>
<ReorderLevel>5</ReorderLevel>
<TaxType>sample string 10</TaxType>
<UpdatedTime>2025-12-31T16:36:32.8630591+05:30</UpdatedTime>
<VendorId>2</VendorId>
</LocationSpecificInventoryEntity>
</LocationSpecificInventoryList>
<OrderCost>1</OrderCost>
<OrderQuantity>1</OrderQuantity>
<ProductId>1</ProductId>
<ProductName>sample string 3</ProductName>
<ProductSKU>sample string 2</ProductSKU>
<PurchaseOrderDetailsId>1</PurchaseOrderDetailsId>
<PurchaseOrderId>5</PurchaseOrderId>
<ReceivedCost>1</ReceivedCost>
<ReceivedQuantity>1</ReceivedQuantity>
<RecommendedMRP>6</RecommendedMRP>
<SupplierId>4</SupplierId>
<VendorId>7</VendorId>
</PurchaseOrderDetailEntity>
<PurchaseOrderDetailEntity>
<LocationSpecificInventoryList>
<LocationSpecificInventoryEntity>
<CreatedTime>2025-12-31T16:36:32.8630591+05:30</CreatedTime>
<CurrentQuantity>6</CurrentQuantity>
<IsDeleted>true</IsDeleted>
<LocationId>3</LocationId>
<LocationName>sample string 9</LocationName>
<LocationSpecificInventoryId>1</LocationSpecificInventoryId>
<Price>1</Price>
<ProductId>4</ProductId>
<ReorderLevel>5</ReorderLevel>
<TaxType>sample string 10</TaxType>
<UpdatedTime>2025-12-31T16:36:32.8630591+05:30</UpdatedTime>
<VendorId>2</VendorId>
</LocationSpecificInventoryEntity>
<LocationSpecificInventoryEntity>
<CreatedTime>2025-12-31T16:36:32.8630591+05:30</CreatedTime>
<CurrentQuantity>6</CurrentQuantity>
<IsDeleted>true</IsDeleted>
<LocationId>3</LocationId>
<LocationName>sample string 9</LocationName>
<LocationSpecificInventoryId>1</LocationSpecificInventoryId>
<Price>1</Price>
<ProductId>4</ProductId>
<ReorderLevel>5</ReorderLevel>
<TaxType>sample string 10</TaxType>
<UpdatedTime>2025-12-31T16:36:32.8630591+05:30</UpdatedTime>
<VendorId>2</VendorId>
</LocationSpecificInventoryEntity>
</LocationSpecificInventoryList>
<OrderCost>1</OrderCost>
<OrderQuantity>1</OrderQuantity>
<ProductId>1</ProductId>
<ProductName>sample string 3</ProductName>
<ProductSKU>sample string 2</ProductSKU>
<PurchaseOrderDetailsId>1</PurchaseOrderDetailsId>
<PurchaseOrderId>5</PurchaseOrderId>
<ReceivedCost>1</ReceivedCost>
<ReceivedQuantity>1</ReceivedQuantity>
<RecommendedMRP>6</RecommendedMRP>
<SupplierId>4</SupplierId>
<VendorId>7</VendorId>
</PurchaseOrderDetailEntity>
</PurchaseOrderDetail>
<PurchaseOrderId>1</PurchaseOrderId>
<ReceivedDate>2025-12-31T16:36:32.8630591+05:30</ReceivedDate>
<SupplierId>1</SupplierId>
<SupplierName>sample string 4</SupplierName>
<TotalAmount>6</TotalAmount>
<VendorId>1</VendorId>
</GRNEntity>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |