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. |
|
| TermsAndConditions_FK | string |
None. |
|
| PartnerId | integer |
None. |
|
| ModeOfPaymentForInvoice | string |
None. |
|
| TermsAndConditionsList | Collection of Conditions |
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": "2025-11-07T09:31:21.8552895+05:30",
"POD_Inactive": "A",
"POD_TS_LastEdited": "2025-11-07T09:31:21.8552895+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": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2025-11-07T09:31:21.8562892+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": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_TS_Edited_Uid_FK": 9
}
],
"BSIVD_ProductSerialNo": "sample string 29",
"DCD_ProductSerialNo": "sample string 30"
},
{
"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": "2025-11-07T09:31:21.8552895+05:30",
"POD_Inactive": "A",
"POD_TS_LastEdited": "2025-11-07T09:31:21.8552895+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": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2025-11-07T09:31:21.8562892+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": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_UserId_FK": 5,
"SPOD_PMD_TS": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_Inactive": "A",
"SPOD_PMD_TS_LastEdited": "2025-11-07T09:31:21.8562892+05:30",
"SPOD_PMD_TS_Edited_Uid_FK": 9
}
],
"BSIVD_ProductSerialNo": "sample string 29",
"DCD_ProductSerialNo": "sample string 30"
}
],
"OrderType": "sample string 2",
"TermsAndConditions_FK": "sample string 3",
"PartnerId": 4,
"ModeOfPaymentForInvoice": "sample string 5",
"TermsAndConditionsList": [
{
"Conditionsname": "sample string 1",
"TC_Id": 2
},
{
"Conditionsname": "sample string 1",
"TC_Id": 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">
<ModeOfPaymentForInvoice>sample string 5</ModeOfPaymentForInvoice>
<OrderType>sample string 2</OrderType>
<PO_Id>1</PO_Id>
<PartnerId>4</PartnerId>
<PurchaseOrderDetails>
<PurchaseOrderDetailsModels>
<BSIVD_ProductSerialNo>sample string 29</BSIVD_ProductSerialNo>
<DCD_ProductSerialNo>sample string 30</DCD_ProductSerialNo>
<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>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8562892+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8562892+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8552895+05:30</POD_TS>
<POD_TS_Edited_Uid_FK>28</POD_TS_Edited_Uid_FK>
<POD_TS_LastEdited>2025-11-07T09:31:21.8552895+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>
</PurchaseOrderDetailsModels>
<PurchaseOrderDetailsModels>
<BSIVD_ProductSerialNo>sample string 29</BSIVD_ProductSerialNo>
<DCD_ProductSerialNo>sample string 30</DCD_ProductSerialNo>
<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>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8562892+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8562892+05:30</SPOD_PMD_TS>
<SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
<SPOD_PMD_TS_LastEdited>2025-11-07T09:31:21.8562892+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>2025-11-07T09:31:21.8552895+05:30</POD_TS>
<POD_TS_Edited_Uid_FK>28</POD_TS_Edited_Uid_FK>
<POD_TS_LastEdited>2025-11-07T09:31:21.8552895+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>
</PurchaseOrderDetailsModels>
</PurchaseOrderDetails>
<TermsAndConditionsList>
<Conditions>
<Conditionsname>sample string 1</Conditionsname>
<TC_Id>2</TC_Id>
</Conditions>
<Conditions>
<Conditionsname>sample string 1</Conditionsname>
<TC_Id>2</TC_Id>
</Conditions>
</TermsAndConditionsList>
<TermsAndConditions_FK>sample string 3</TermsAndConditions_FK>
</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.