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,
      "POD_PR_CustomerPrice_FK": 11.0,
      "POD_PR_VAT_RATE_FK": 12.0,
      "POD_VAT_Amount": 13.0,
      "POD_ShippingCharges": 14.0,
      "POD_ServiceTax": 15.0,
      "POD_ServiceTaxAmount": 16.0,
      "POD_VGSL_BUY_PRICE": 17.0,
      "ProductManufacturerId": 18,
      "POD_UserId_FK": 19,
      "POD_TS": "2025-01-09T00:38:54.7618421+05:30",
      "POD_Inactive": "A",
      "POD_TS_LastEdited": "2025-01-09T00:38:54.7618421+05:30",
      "POD_TS_Edited_Uid_FK": 23
    },
    {
      "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,
      "POD_PR_CustomerPrice_FK": 11.0,
      "POD_PR_VAT_RATE_FK": 12.0,
      "POD_VAT_Amount": 13.0,
      "POD_ShippingCharges": 14.0,
      "POD_ServiceTax": 15.0,
      "POD_ServiceTaxAmount": 16.0,
      "POD_VGSL_BUY_PRICE": 17.0,
      "ProductManufacturerId": 18,
      "POD_UserId_FK": 19,
      "POD_TS": "2025-01-09T00:38:54.7618421+05:30",
      "POD_Inactive": "A",
      "POD_TS_LastEdited": "2025-01-09T00:38:54.7618421+05:30",
      "POD_TS_Edited_Uid_FK": 23
    }
  ],
  "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>
      <POD_COR_Id_FK>2</POD_COR_Id_FK>
      <POD_Id>1</POD_Id>
      <POD_Inactive>65</POD_Inactive>
      <POD_PA_Id_FK>4</POD_PA_Id_FK>
      <POD_PR_CustomerPrice_FK>11</POD_PR_CustomerPrice_FK>
      <POD_PR_VAT_RATE_FK>12</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>15</POD_ServiceTax>
      <POD_ServiceTaxAmount>16</POD_ServiceTaxAmount>
      <POD_ShippingCharges>14</POD_ShippingCharges>
      <POD_TS>2025-01-09T00:38:54.7618421+05:30</POD_TS>
      <POD_TS_Edited_Uid_FK>23</POD_TS_Edited_Uid_FK>
      <POD_TS_LastEdited>2025-01-09T00:38:54.7618421+05:30</POD_TS_LastEdited>
      <POD_UserId_FK>19</POD_UserId_FK>
      <POD_VAT_Amount>13</POD_VAT_Amount>
      <POD_VGSL_BUY_PRICE>17</POD_VGSL_BUY_PRICE>
      <ProductManufacturerId>18</ProductManufacturerId>
    </PurchaseOrderDetailsModels>
    <PurchaseOrderDetailsModels>
      <POD_COR_Id_FK>2</POD_COR_Id_FK>
      <POD_Id>1</POD_Id>
      <POD_Inactive>65</POD_Inactive>
      <POD_PA_Id_FK>4</POD_PA_Id_FK>
      <POD_PR_CustomerPrice_FK>11</POD_PR_CustomerPrice_FK>
      <POD_PR_VAT_RATE_FK>12</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>15</POD_ServiceTax>
      <POD_ServiceTaxAmount>16</POD_ServiceTaxAmount>
      <POD_ShippingCharges>14</POD_ShippingCharges>
      <POD_TS>2025-01-09T00:38:54.7618421+05:30</POD_TS>
      <POD_TS_Edited_Uid_FK>23</POD_TS_Edited_Uid_FK>
      <POD_TS_LastEdited>2025-01-09T00:38:54.7618421+05:30</POD_TS_LastEdited>
      <POD_UserId_FK>19</POD_UserId_FK>
      <POD_VAT_Amount>13</POD_VAT_Amount>
      <POD_VGSL_BUY_PRICE>17</POD_VGSL_BUY_PRICE>
      <ProductManufacturerId>18</ProductManufacturerId>
    </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.