POST api/StockistInvoice/CreateStockistInvoice

Request Information

URI Parameters

None.

Body Parameters

CreateStockistInvoiceModels
NameDescriptionTypeAdditional 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": "2019-11-20T18:23:30.3166032+05:30",
      "POD_Inactive": "A",
      "POD_TS_LastEdited": "2019-11-20T18:23:30.3166032+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": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_UserId_FK": 5,
          "SPOD_PMD_TS": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_Inactive": "A",
          "SPOD_PMD_TS_LastEdited": "2019-11-20T18:23:30.3166032+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": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_UserId_FK": 5,
          "SPOD_PMD_TS": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_Inactive": "A",
          "SPOD_PMD_TS_LastEdited": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_TS_Edited_Uid_FK": 9
        }
      ]
    },
    {
      "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": "2019-11-20T18:23:30.3166032+05:30",
      "POD_Inactive": "A",
      "POD_TS_LastEdited": "2019-11-20T18:23:30.3166032+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": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_UserId_FK": 5,
          "SPOD_PMD_TS": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_Inactive": "A",
          "SPOD_PMD_TS_LastEdited": "2019-11-20T18:23:30.3166032+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": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_UserId_FK": 5,
          "SPOD_PMD_TS": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_Inactive": "A",
          "SPOD_PMD_TS_LastEdited": "2019-11-20T18:23:30.3166032+05:30",
          "SPOD_PMD_TS_Edited_Uid_FK": 9
        }
      ]
    }
  ],
  "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>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+05:30</SPOD_PMD_TS>
          <SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
          <SPOD_PMD_TS_LastEdited>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+05:30</SPOD_PMD_TS>
          <SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
          <SPOD_PMD_TS_LastEdited>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+05:30</POD_TS>
      <POD_TS_Edited_Uid_FK>28</POD_TS_Edited_Uid_FK>
      <POD_TS_LastEdited>2019-11-20T18:23:30.3166032+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>
      <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>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+05:30</SPOD_PMD_TS>
          <SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
          <SPOD_PMD_TS_LastEdited>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+05:30</SPOD_PMD_TS>
          <SPOD_PMD_TS_Edited_Uid_FK>9</SPOD_PMD_TS_Edited_Uid_FK>
          <SPOD_PMD_TS_LastEdited>2019-11-20T18:23:30.3166032+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>2019-11-20T18:23:30.3166032+05:30</POD_TS>
      <POD_TS_Edited_Uid_FK>28</POD_TS_Edited_Uid_FK>
      <POD_TS_LastEdited>2019-11-20T18:23:30.3166032+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>
</CreateStockistInvoiceModels>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateStockistInvoiceModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.