POST api/CustomerPackingSlip

Request Information

URI Parameters

None.

Body Parameters

CustomerPackingSlipGenerateForCustomerInvoiceModels
NameDescriptionTypeAdditional information
CPS_CIV_Id_FK

integer

Required

CustomerInvoiceDetails

Collection of CustomerInvoiceDetailsModels

None.

Request Formats

application/json, text/json

Sample:
{
  "CPS_CIV_Id_FK": 1,
  "CustomerInvoiceDetails": [
    {
      "CIVD_Id": 1,
      "CIVD_P_ProductCode_FK": "sample string 2",
      "CIVD_P_ProductName_FK": "sample string 3",
      "CIVD_P_Id_FK": 4,
      "CIVD_P_UOM_FK": "sample string 5",
      "CIVD_PA_Id_FK": 6,
      "CIVD_COD_Quantity_FK": 7,
      "CIVD_PR_CustomerPrice_FK": 8.0,
      "CIVD_VAT": 9.0,
      "CIVD_UserId_FK": 10,
      "CIVD_TS": "2019-05-20T10:21:17.813793+05:30",
      "CIVD_Inactive": "A",
      "CIVD_TS_LastEdited": "2019-05-20T10:21:17.813793+05:30",
      "CIVD_TS_Edited_Uid_FK": 14,
      "ManufacturerDateForCustomerList": [
        {
          "CIVDPMD_Id_PK": 1,
          "CIVDPMD_CIVD_Id_FK": 2,
          "CIVDPMD_ManufacturedDate": "2019-05-20T10:21:17.813793+05:30",
          "PurchasedQuantity": 4.0,
          "SoldQuantity": 5.0,
          "CIVDPMD_Quantity": 6.0,
          "CIVDPMD_UserId_FK": 7,
          "CIVDPMD_TS": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_Inactive": "A",
          "CIVDPMD_TS_LastEdited": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_TS_Edited_Uid_FK": 11
        },
        {
          "CIVDPMD_Id_PK": 1,
          "CIVDPMD_CIVD_Id_FK": 2,
          "CIVDPMD_ManufacturedDate": "2019-05-20T10:21:17.813793+05:30",
          "PurchasedQuantity": 4.0,
          "SoldQuantity": 5.0,
          "CIVDPMD_Quantity": 6.0,
          "CIVDPMD_UserId_FK": 7,
          "CIVDPMD_TS": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_Inactive": "A",
          "CIVDPMD_TS_LastEdited": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_TS_Edited_Uid_FK": 11
        }
      ]
    },
    {
      "CIVD_Id": 1,
      "CIVD_P_ProductCode_FK": "sample string 2",
      "CIVD_P_ProductName_FK": "sample string 3",
      "CIVD_P_Id_FK": 4,
      "CIVD_P_UOM_FK": "sample string 5",
      "CIVD_PA_Id_FK": 6,
      "CIVD_COD_Quantity_FK": 7,
      "CIVD_PR_CustomerPrice_FK": 8.0,
      "CIVD_VAT": 9.0,
      "CIVD_UserId_FK": 10,
      "CIVD_TS": "2019-05-20T10:21:17.813793+05:30",
      "CIVD_Inactive": "A",
      "CIVD_TS_LastEdited": "2019-05-20T10:21:17.813793+05:30",
      "CIVD_TS_Edited_Uid_FK": 14,
      "ManufacturerDateForCustomerList": [
        {
          "CIVDPMD_Id_PK": 1,
          "CIVDPMD_CIVD_Id_FK": 2,
          "CIVDPMD_ManufacturedDate": "2019-05-20T10:21:17.813793+05:30",
          "PurchasedQuantity": 4.0,
          "SoldQuantity": 5.0,
          "CIVDPMD_Quantity": 6.0,
          "CIVDPMD_UserId_FK": 7,
          "CIVDPMD_TS": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_Inactive": "A",
          "CIVDPMD_TS_LastEdited": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_TS_Edited_Uid_FK": 11
        },
        {
          "CIVDPMD_Id_PK": 1,
          "CIVDPMD_CIVD_Id_FK": 2,
          "CIVDPMD_ManufacturedDate": "2019-05-20T10:21:17.813793+05:30",
          "PurchasedQuantity": 4.0,
          "SoldQuantity": 5.0,
          "CIVDPMD_Quantity": 6.0,
          "CIVDPMD_UserId_FK": 7,
          "CIVDPMD_TS": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_Inactive": "A",
          "CIVDPMD_TS_LastEdited": "2019-05-20T10:21:17.813793+05:30",
          "CIVDPMD_TS_Edited_Uid_FK": 11
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<CustomerPackingSlipGenerateForCustomerInvoiceModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CPS_CIV_Id_FK>1</CPS_CIV_Id_FK>
  <CustomerInvoiceDetails>
    <CustomerInvoiceDetailsModels>
      <CIVD_COD_Quantity_FK>7</CIVD_COD_Quantity_FK>
      <CIVD_Id>1</CIVD_Id>
      <CIVD_Inactive>65</CIVD_Inactive>
      <CIVD_PA_Id_FK>6</CIVD_PA_Id_FK>
      <CIVD_PR_CustomerPrice_FK>8</CIVD_PR_CustomerPrice_FK>
      <CIVD_P_Id_FK>4</CIVD_P_Id_FK>
      <CIVD_P_ProductCode_FK>sample string 2</CIVD_P_ProductCode_FK>
      <CIVD_P_ProductName_FK>sample string 3</CIVD_P_ProductName_FK>
      <CIVD_P_UOM_FK>sample string 5</CIVD_P_UOM_FK>
      <CIVD_TS>2019-05-20T10:21:17.813793+05:30</CIVD_TS>
      <CIVD_TS_Edited_Uid_FK>14</CIVD_TS_Edited_Uid_FK>
      <CIVD_TS_LastEdited>2019-05-20T10:21:17.813793+05:30</CIVD_TS_LastEdited>
      <CIVD_UserId_FK>10</CIVD_UserId_FK>
      <CIVD_VAT>9</CIVD_VAT>
      <ManufacturerDateForCustomerList>
        <CIVD_PMDModels>
          <CIVDPMD_CIVD_Id_FK>2</CIVDPMD_CIVD_Id_FK>
          <CIVDPMD_Id_PK>1</CIVDPMD_Id_PK>
          <CIVDPMD_Inactive>65</CIVDPMD_Inactive>
          <CIVDPMD_ManufacturedDate>2019-05-20T10:21:17.813793+05:30</CIVDPMD_ManufacturedDate>
          <CIVDPMD_Quantity>6</CIVDPMD_Quantity>
          <CIVDPMD_TS>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS>
          <CIVDPMD_TS_Edited_Uid_FK>11</CIVDPMD_TS_Edited_Uid_FK>
          <CIVDPMD_TS_LastEdited>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS_LastEdited>
          <CIVDPMD_UserId_FK>7</CIVDPMD_UserId_FK>
          <PurchasedQuantity>4</PurchasedQuantity>
          <SoldQuantity>5</SoldQuantity>
        </CIVD_PMDModels>
        <CIVD_PMDModels>
          <CIVDPMD_CIVD_Id_FK>2</CIVDPMD_CIVD_Id_FK>
          <CIVDPMD_Id_PK>1</CIVDPMD_Id_PK>
          <CIVDPMD_Inactive>65</CIVDPMD_Inactive>
          <CIVDPMD_ManufacturedDate>2019-05-20T10:21:17.813793+05:30</CIVDPMD_ManufacturedDate>
          <CIVDPMD_Quantity>6</CIVDPMD_Quantity>
          <CIVDPMD_TS>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS>
          <CIVDPMD_TS_Edited_Uid_FK>11</CIVDPMD_TS_Edited_Uid_FK>
          <CIVDPMD_TS_LastEdited>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS_LastEdited>
          <CIVDPMD_UserId_FK>7</CIVDPMD_UserId_FK>
          <PurchasedQuantity>4</PurchasedQuantity>
          <SoldQuantity>5</SoldQuantity>
        </CIVD_PMDModels>
      </ManufacturerDateForCustomerList>
    </CustomerInvoiceDetailsModels>
    <CustomerInvoiceDetailsModels>
      <CIVD_COD_Quantity_FK>7</CIVD_COD_Quantity_FK>
      <CIVD_Id>1</CIVD_Id>
      <CIVD_Inactive>65</CIVD_Inactive>
      <CIVD_PA_Id_FK>6</CIVD_PA_Id_FK>
      <CIVD_PR_CustomerPrice_FK>8</CIVD_PR_CustomerPrice_FK>
      <CIVD_P_Id_FK>4</CIVD_P_Id_FK>
      <CIVD_P_ProductCode_FK>sample string 2</CIVD_P_ProductCode_FK>
      <CIVD_P_ProductName_FK>sample string 3</CIVD_P_ProductName_FK>
      <CIVD_P_UOM_FK>sample string 5</CIVD_P_UOM_FK>
      <CIVD_TS>2019-05-20T10:21:17.813793+05:30</CIVD_TS>
      <CIVD_TS_Edited_Uid_FK>14</CIVD_TS_Edited_Uid_FK>
      <CIVD_TS_LastEdited>2019-05-20T10:21:17.813793+05:30</CIVD_TS_LastEdited>
      <CIVD_UserId_FK>10</CIVD_UserId_FK>
      <CIVD_VAT>9</CIVD_VAT>
      <ManufacturerDateForCustomerList>
        <CIVD_PMDModels>
          <CIVDPMD_CIVD_Id_FK>2</CIVDPMD_CIVD_Id_FK>
          <CIVDPMD_Id_PK>1</CIVDPMD_Id_PK>
          <CIVDPMD_Inactive>65</CIVDPMD_Inactive>
          <CIVDPMD_ManufacturedDate>2019-05-20T10:21:17.813793+05:30</CIVDPMD_ManufacturedDate>
          <CIVDPMD_Quantity>6</CIVDPMD_Quantity>
          <CIVDPMD_TS>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS>
          <CIVDPMD_TS_Edited_Uid_FK>11</CIVDPMD_TS_Edited_Uid_FK>
          <CIVDPMD_TS_LastEdited>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS_LastEdited>
          <CIVDPMD_UserId_FK>7</CIVDPMD_UserId_FK>
          <PurchasedQuantity>4</PurchasedQuantity>
          <SoldQuantity>5</SoldQuantity>
        </CIVD_PMDModels>
        <CIVD_PMDModels>
          <CIVDPMD_CIVD_Id_FK>2</CIVDPMD_CIVD_Id_FK>
          <CIVDPMD_Id_PK>1</CIVDPMD_Id_PK>
          <CIVDPMD_Inactive>65</CIVDPMD_Inactive>
          <CIVDPMD_ManufacturedDate>2019-05-20T10:21:17.813793+05:30</CIVDPMD_ManufacturedDate>
          <CIVDPMD_Quantity>6</CIVDPMD_Quantity>
          <CIVDPMD_TS>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS>
          <CIVDPMD_TS_Edited_Uid_FK>11</CIVDPMD_TS_Edited_Uid_FK>
          <CIVDPMD_TS_LastEdited>2019-05-20T10:21:17.813793+05:30</CIVDPMD_TS_LastEdited>
          <CIVDPMD_UserId_FK>7</CIVDPMD_UserId_FK>
          <PurchasedQuantity>4</PurchasedQuantity>
          <SoldQuantity>5</SoldQuantity>
        </CIVD_PMDModels>
      </ManufacturerDateForCustomerList>
    </CustomerInvoiceDetailsModels>
  </CustomerInvoiceDetails>
</CustomerPackingSlipGenerateForCustomerInvoiceModels>

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 'CustomerPackingSlipGenerateForCustomerInvoiceModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.