POST api/StockistInvoice/CreateStockistInvoice
Request Information
URI Parameters
None.
Body Parameters
CreateStockistInvoiceModels| Name | Description | Type | Additional information |
|---|---|---|---|
| PO_Id | integer |
Required |
|
| PurchaseOrderDetails | Collection of PurchaseOrderDetailsModels |
Required |
|
| OrderType | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PO_Id": 1,
"PurchaseOrderDetails": [
{
"POD_Id": 1,
"POD_COR_Id_FK": 2,
"POD_P_Id_FK": 3,
"POD_PA_Id_FK": 4,
"POD_P_ProductCode_FK": "sample string 5",
"POD_P_ProductName_FK": "sample string 6",
"POD_P_UOM_FK": "sample string 7",
"POD_P_PackType": "sample string 8",
"POD_P_PackSize": "sample string 9",
"POD_P_Quantity": 10,
"PO_QtyOriginal": 11,
"POD_PR_CustomerPrice_FK": 12.0,
"POD_PR_VAT_RATE_FK": 13.0,
"POD_VAT_Amount": 14.0,
"POD_ShippingCharges": 15.0,
"POD_ServiceTax": 16.0,
"POD_ServiceTaxAmount": 17.0,
"POD_VGSL_BUY_PRICE": 18.0,
"ProductManufacturerId": 19,
"Qty_Received": 20,
"PA_Manufacturer_MMOQ": 21,
"PA_Convertion_Factor": 22.0,
"PA_MMOQ_UOM": "sample string 23",
"POD_UserId_FK": 24,
"POD_TS": "2026-04-02T02:07:24.6842538+05:30",
"POD_Inactive": "A",
"POD_TS_LastEdited": "2026-04-02T02:07:24.6842538+05:30",
"POD_TS_Edited_Uid_FK": 28,
"POD_Manufactured_Date": [
{
"SPOD_PMD_Id_PK": 1,
"SPOD_PMD_POD_Id_FK": 2,
"SPOD_PMD_Qty": 3.0,
"SPOD_PMD_ManufacturedDate": "2026-04-02T02:07:24.6852216+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_TS_Edited_Uid_FK": 9
},
{
"SPOD_PMD_Id_PK": 1,
"SPOD_PMD_POD_Id_FK": 2,
"SPOD_PMD_Qty": 3.0,
"SPOD_PMD_ManufacturedDate": "2026-04-02T02:07:24.6852216+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_TS_Edited_Uid_FK": 9
}
],
"SGRNListForPO": [
{
"POR_Id": 1,
"POR_OrderNo": "sample string 2",
"SGRN_No": "sample string 3",
"ProductName": "sample string 4",
"PA_Size": "sample string 5",
"PA_PackUOM": "sample string 6",
"PA_PackType": "sample string 7",
"SGRN_Id": 8,
"SGRN_Date": "2026-04-02T02:07:24.6872522+05:30",
"P_Name": "sample string 10",
"Recieved_qty": 11,
"OriginalQty": 12,
"Balance_Qty": 13,
"TotalAmount": 14.0,
"POD_P_Id_FK": 15,
"POD_P_UOM_FK": "sample string 16",
"POD_P_Quantity": 17,
"POD_P_ProductName_FK": "sample string 18",
"SGRNDTotal": 19,
"ReceivedTotal": 20
},
{
"POR_Id": 1,
"POR_OrderNo": "sample string 2",
"SGRN_No": "sample string 3",
"ProductName": "sample string 4",
"PA_Size": "sample string 5",
"PA_PackUOM": "sample string 6",
"PA_PackType": "sample string 7",
"SGRN_Id": 8,
"SGRN_Date": "2026-04-02T02:07:24.6872522+05:30",
"P_Name": "sample string 10",
"Recieved_qty": 11,
"OriginalQty": 12,
"Balance_Qty": 13,
"TotalAmount": 14.0,
"POD_P_Id_FK": 15,
"POD_P_UOM_FK": "sample string 16",
"POD_P_Quantity": 17,
"POD_P_ProductName_FK": "sample string 18",
"SGRNDTotal": 19,
"ReceivedTotal": 20
}
],
"SellingPrice": 29.0
},
{
"POD_Id": 1,
"POD_COR_Id_FK": 2,
"POD_P_Id_FK": 3,
"POD_PA_Id_FK": 4,
"POD_P_ProductCode_FK": "sample string 5",
"POD_P_ProductName_FK": "sample string 6",
"POD_P_UOM_FK": "sample string 7",
"POD_P_PackType": "sample string 8",
"POD_P_PackSize": "sample string 9",
"POD_P_Quantity": 10,
"PO_QtyOriginal": 11,
"POD_PR_CustomerPrice_FK": 12.0,
"POD_PR_VAT_RATE_FK": 13.0,
"POD_VAT_Amount": 14.0,
"POD_ShippingCharges": 15.0,
"POD_ServiceTax": 16.0,
"POD_ServiceTaxAmount": 17.0,
"POD_VGSL_BUY_PRICE": 18.0,
"ProductManufacturerId": 19,
"Qty_Received": 20,
"PA_Manufacturer_MMOQ": 21,
"PA_Convertion_Factor": 22.0,
"PA_MMOQ_UOM": "sample string 23",
"POD_UserId_FK": 24,
"POD_TS": "2026-04-02T02:07:24.6842538+05:30",
"POD_Inactive": "A",
"POD_TS_LastEdited": "2026-04-02T02:07:24.6842538+05:30",
"POD_TS_Edited_Uid_FK": 28,
"POD_Manufactured_Date": [
{
"SPOD_PMD_Id_PK": 1,
"SPOD_PMD_POD_Id_FK": 2,
"SPOD_PMD_Qty": 3.0,
"SPOD_PMD_ManufacturedDate": "2026-04-02T02:07:24.6852216+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_TS_Edited_Uid_FK": 9
},
{
"SPOD_PMD_Id_PK": 1,
"SPOD_PMD_POD_Id_FK": 2,
"SPOD_PMD_Qty": 3.0,
"SPOD_PMD_ManufacturedDate": "2026-04-02T02:07:24.6852216+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2026-04-02T02:07:24.6862205+05:30",
"SPOD_PMD_TS_Edited_Uid_FK": 9
}
],
"SGRNListForPO": [
{
"POR_Id": 1,
"POR_OrderNo": "sample string 2",
"SGRN_No": "sample string 3",
"ProductName": "sample string 4",
"PA_Size": "sample string 5",
"PA_PackUOM": "sample string 6",
"PA_PackType": "sample string 7",
"SGRN_Id": 8,
"SGRN_Date": "2026-04-02T02:07:24.6872522+05:30",
"P_Name": "sample string 10",
"Recieved_qty": 11,
"OriginalQty": 12,
"Balance_Qty": 13,
"TotalAmount": 14.0,
"POD_P_Id_FK": 15,
"POD_P_UOM_FK": "sample string 16",
"POD_P_Quantity": 17,
"POD_P_ProductName_FK": "sample string 18",
"SGRNDTotal": 19,
"ReceivedTotal": 20
},
{
"POR_Id": 1,
"POR_OrderNo": "sample string 2",
"SGRN_No": "sample string 3",
"ProductName": "sample string 4",
"PA_Size": "sample string 5",
"PA_PackUOM": "sample string 6",
"PA_PackType": "sample string 7",
"SGRN_Id": 8,
"SGRN_Date": "2026-04-02T02:07:24.6872522+05:30",
"P_Name": "sample string 10",
"Recieved_qty": 11,
"OriginalQty": 12,
"Balance_Qty": 13,
"TotalAmount": 14.0,
"POD_P_Id_FK": 15,
"POD_P_UOM_FK": "sample string 16",
"POD_P_Quantity": 17,
"POD_P_ProductName_FK": "sample string 18",
"SGRNDTotal": 19,
"ReceivedTotal": 20
}
],
"SellingPrice": 29.0
}
],
"OrderType": "sample string 2"
}
application/xml, text/xml
Sample:
<CreateStockistInvoiceModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
<OrderType>sample string 2</OrderType>
<PO_Id>1</PO_Id>
<PurchaseOrderDetails>
<PurchaseOrderDetailsModels>
<PA_Convertion_Factor>22</PA_Convertion_Factor>
<PA_MMOQ_UOM>sample string 23</PA_MMOQ_UOM>
<PA_Manufacturer_MMOQ>21</PA_Manufacturer_MMOQ>
<POD_COR_Id_FK>2</POD_COR_Id_FK>
<POD_Id>1</POD_Id>
<POD_Inactive>65</POD_Inactive>
<POD_Manufactured_Date>
<SPOD_PMDModels>
<SPOD_PMD_Id_PK>1</SPOD_PMD_Id_PK>
<SPOD_PMD_Inactive>65</SPOD_PMD_Inactive>
<SPOD_PMD_ManufacturedDate>2026-04-02T02:07:24.6852216+05:30</SPOD_PMD_ManufacturedDate>
<SPOD_PMD_POD_Id_FK>2</SPOD_PMD_POD_Id_FK>
<SPOD_PMD_Qty>3</SPOD_PMD_Qty>
<SPOD_PMD_TS>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS_LastEdited>
<SPOD_PMD_UserId_FK>5</SPOD_PMD_UserId_FK>
</SPOD_PMDModels>
<SPOD_PMDModels>
<SPOD_PMD_Id_PK>1</SPOD_PMD_Id_PK>
<SPOD_PMD_Inactive>65</SPOD_PMD_Inactive>
<SPOD_PMD_ManufacturedDate>2026-04-02T02:07:24.6852216+05:30</SPOD_PMD_ManufacturedDate>
<SPOD_PMD_POD_Id_FK>2</SPOD_PMD_POD_Id_FK>
<SPOD_PMD_Qty>3</SPOD_PMD_Qty>
<SPOD_PMD_TS>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS_LastEdited>
<SPOD_PMD_UserId_FK>5</SPOD_PMD_UserId_FK>
</SPOD_PMDModels>
</POD_Manufactured_Date>
<POD_PA_Id_FK>4</POD_PA_Id_FK>
<POD_PR_CustomerPrice_FK>12</POD_PR_CustomerPrice_FK>
<POD_PR_VAT_RATE_FK>13</POD_PR_VAT_RATE_FK>
<POD_P_Id_FK>3</POD_P_Id_FK>
<POD_P_PackSize>sample string 9</POD_P_PackSize>
<POD_P_PackType>sample string 8</POD_P_PackType>
<POD_P_ProductCode_FK>sample string 5</POD_P_ProductCode_FK>
<POD_P_ProductName_FK>sample string 6</POD_P_ProductName_FK>
<POD_P_Quantity>10</POD_P_Quantity>
<POD_P_UOM_FK>sample string 7</POD_P_UOM_FK>
<POD_ServiceTax>16</POD_ServiceTax>
<POD_ServiceTaxAmount>17</POD_ServiceTaxAmount>
<POD_ShippingCharges>15</POD_ShippingCharges>
<POD_TS>2026-04-02T02:07:24.6842538+05:30</POD_TS>
<POD_TS_Edited_Uid_FK>28</POD_TS_Edited_Uid_FK>
<POD_TS_LastEdited>2026-04-02T02:07:24.6842538+05:30</POD_TS_LastEdited>
<POD_UserId_FK>24</POD_UserId_FK>
<POD_VAT_Amount>14</POD_VAT_Amount>
<POD_VGSL_BUY_PRICE>18</POD_VGSL_BUY_PRICE>
<PO_QtyOriginal>11</PO_QtyOriginal>
<ProductManufacturerId>19</ProductManufacturerId>
<Qty_Received>20</Qty_Received>
<SGRNListForPO>
<SGRNCompleteReportModel>
<Balance_Qty>13</Balance_Qty>
<OriginalQty>12</OriginalQty>
<PA_PackType>sample string 7</PA_PackType>
<PA_PackUOM>sample string 6</PA_PackUOM>
<PA_Size>sample string 5</PA_Size>
<POD_P_Id_FK>15</POD_P_Id_FK>
<POD_P_ProductName_FK>sample string 18</POD_P_ProductName_FK>
<POD_P_Quantity>17</POD_P_Quantity>
<POD_P_UOM_FK>sample string 16</POD_P_UOM_FK>
<POR_Id>1</POR_Id>
<POR_OrderNo>sample string 2</POR_OrderNo>
<P_Name>sample string 10</P_Name>
<ProductName>sample string 4</ProductName>
<ReceivedTotal>20</ReceivedTotal>
<Recieved_qty>11</Recieved_qty>
<SGRNDTotal>19</SGRNDTotal>
<SGRN_Date>2026-04-02T02:07:24.6872522+05:30</SGRN_Date>
<SGRN_Id>8</SGRN_Id>
<SGRN_No>sample string 3</SGRN_No>
<TotalAmount>14</TotalAmount>
</SGRNCompleteReportModel>
<SGRNCompleteReportModel>
<Balance_Qty>13</Balance_Qty>
<OriginalQty>12</OriginalQty>
<PA_PackType>sample string 7</PA_PackType>
<PA_PackUOM>sample string 6</PA_PackUOM>
<PA_Size>sample string 5</PA_Size>
<POD_P_Id_FK>15</POD_P_Id_FK>
<POD_P_ProductName_FK>sample string 18</POD_P_ProductName_FK>
<POD_P_Quantity>17</POD_P_Quantity>
<POD_P_UOM_FK>sample string 16</POD_P_UOM_FK>
<POR_Id>1</POR_Id>
<POR_OrderNo>sample string 2</POR_OrderNo>
<P_Name>sample string 10</P_Name>
<ProductName>sample string 4</ProductName>
<ReceivedTotal>20</ReceivedTotal>
<Recieved_qty>11</Recieved_qty>
<SGRNDTotal>19</SGRNDTotal>
<SGRN_Date>2026-04-02T02:07:24.6872522+05:30</SGRN_Date>
<SGRN_Id>8</SGRN_Id>
<SGRN_No>sample string 3</SGRN_No>
<TotalAmount>14</TotalAmount>
</SGRNCompleteReportModel>
</SGRNListForPO>
<SellingPrice>29</SellingPrice>
</PurchaseOrderDetailsModels>
<PurchaseOrderDetailsModels>
<PA_Convertion_Factor>22</PA_Convertion_Factor>
<PA_MMOQ_UOM>sample string 23</PA_MMOQ_UOM>
<PA_Manufacturer_MMOQ>21</PA_Manufacturer_MMOQ>
<POD_COR_Id_FK>2</POD_COR_Id_FK>
<POD_Id>1</POD_Id>
<POD_Inactive>65</POD_Inactive>
<POD_Manufactured_Date>
<SPOD_PMDModels>
<SPOD_PMD_Id_PK>1</SPOD_PMD_Id_PK>
<SPOD_PMD_Inactive>65</SPOD_PMD_Inactive>
<SPOD_PMD_ManufacturedDate>2026-04-02T02:07:24.6852216+05:30</SPOD_PMD_ManufacturedDate>
<SPOD_PMD_POD_Id_FK>2</SPOD_PMD_POD_Id_FK>
<SPOD_PMD_Qty>3</SPOD_PMD_Qty>
<SPOD_PMD_TS>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS_LastEdited>
<SPOD_PMD_UserId_FK>5</SPOD_PMD_UserId_FK>
</SPOD_PMDModels>
<SPOD_PMDModels>
<SPOD_PMD_Id_PK>1</SPOD_PMD_Id_PK>
<SPOD_PMD_Inactive>65</SPOD_PMD_Inactive>
<SPOD_PMD_ManufacturedDate>2026-04-02T02:07:24.6852216+05:30</SPOD_PMD_ManufacturedDate>
<SPOD_PMD_POD_Id_FK>2</SPOD_PMD_POD_Id_FK>
<SPOD_PMD_Qty>3</SPOD_PMD_Qty>
<SPOD_PMD_TS>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2026-04-02T02:07:24.6862205+05:30</SPOD_PMD_TS_LastEdited>
<SPOD_PMD_UserId_FK>5</SPOD_PMD_UserId_FK>
</SPOD_PMDModels>
</POD_Manufactured_Date>
<POD_PA_Id_FK>4</POD_PA_Id_FK>
<POD_PR_CustomerPrice_FK>12</POD_PR_CustomerPrice_FK>
<POD_PR_VAT_RATE_FK>13</POD_PR_VAT_RATE_FK>
<POD_P_Id_FK>3</POD_P_Id_FK>
<POD_P_PackSize>sample string 9</POD_P_PackSize>
<POD_P_PackType>sample string 8</POD_P_PackType>
<POD_P_ProductCode_FK>sample string 5</POD_P_ProductCode_FK>
<POD_P_ProductName_FK>sample string 6</POD_P_ProductName_FK>
<POD_P_Quantity>10</POD_P_Quantity>
<POD_P_UOM_FK>sample string 7</POD_P_UOM_FK>
<POD_ServiceTax>16</POD_ServiceTax>
<POD_ServiceTaxAmount>17</POD_ServiceTaxAmount>
<POD_ShippingCharges>15</POD_ShippingCharges>
<POD_TS>2026-04-02T02:07:24.6842538+05:30</POD_TS>
<POD_TS_Edited_Uid_FK>28</POD_TS_Edited_Uid_FK>
<POD_TS_LastEdited>2026-04-02T02:07:24.6842538+05:30</POD_TS_LastEdited>
<POD_UserId_FK>24</POD_UserId_FK>
<POD_VAT_Amount>14</POD_VAT_Amount>
<POD_VGSL_BUY_PRICE>18</POD_VGSL_BUY_PRICE>
<PO_QtyOriginal>11</PO_QtyOriginal>
<ProductManufacturerId>19</ProductManufacturerId>
<Qty_Received>20</Qty_Received>
<SGRNListForPO>
<SGRNCompleteReportModel>
<Balance_Qty>13</Balance_Qty>
<OriginalQty>12</OriginalQty>
<PA_PackType>sample string 7</PA_PackType>
<PA_PackUOM>sample string 6</PA_PackUOM>
<PA_Size>sample string 5</PA_Size>
<POD_P_Id_FK>15</POD_P_Id_FK>
<POD_P_ProductName_FK>sample string 18</POD_P_ProductName_FK>
<POD_P_Quantity>17</POD_P_Quantity>
<POD_P_UOM_FK>sample string 16</POD_P_UOM_FK>
<POR_Id>1</POR_Id>
<POR_OrderNo>sample string 2</POR_OrderNo>
<P_Name>sample string 10</P_Name>
<ProductName>sample string 4</ProductName>
<ReceivedTotal>20</ReceivedTotal>
<Recieved_qty>11</Recieved_qty>
<SGRNDTotal>19</SGRNDTotal>
<SGRN_Date>2026-04-02T02:07:24.6872522+05:30</SGRN_Date>
<SGRN_Id>8</SGRN_Id>
<SGRN_No>sample string 3</SGRN_No>
<TotalAmount>14</TotalAmount>
</SGRNCompleteReportModel>
<SGRNCompleteReportModel>
<Balance_Qty>13</Balance_Qty>
<OriginalQty>12</OriginalQty>
<PA_PackType>sample string 7</PA_PackType>
<PA_PackUOM>sample string 6</PA_PackUOM>
<PA_Size>sample string 5</PA_Size>
<POD_P_Id_FK>15</POD_P_Id_FK>
<POD_P_ProductName_FK>sample string 18</POD_P_ProductName_FK>
<POD_P_Quantity>17</POD_P_Quantity>
<POD_P_UOM_FK>sample string 16</POD_P_UOM_FK>
<POR_Id>1</POR_Id>
<POR_OrderNo>sample string 2</POR_OrderNo>
<P_Name>sample string 10</P_Name>
<ProductName>sample string 4</ProductName>
<ReceivedTotal>20</ReceivedTotal>
<Recieved_qty>11</Recieved_qty>
<SGRNDTotal>19</SGRNDTotal>
<SGRN_Date>2026-04-02T02:07:24.6872522+05:30</SGRN_Date>
<SGRN_Id>8</SGRN_Id>
<SGRN_No>sample string 3</SGRN_No>
<TotalAmount>14</TotalAmount>
</SGRNCompleteReportModel>
</SGRNListForPO>
<SellingPrice>29</SellingPrice>
</PurchaseOrderDetailsModels>
</PurchaseOrderDetails>
</CreateStockistInvoiceModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.