POST api/SalesManager/CustomerOrderApproval

Request Information

URI Parameters

None.

Body Parameters

SMCO_ApprovalModels
NameDescriptionTypeAdditional information
SMCOA_Id

integer

None.

SMCOA_COR_Id_FK

integer

Required

SMCOA_Approval

character

Required

SMCOA_ApprovalDate

date

None.

StockistSpeedSearch

StockistSpeedSearchModels

Required

SMCOA_Note

string

Required

Max length: 500

SMCOA_UserId_FK

integer

None.

SMCOA_TS

date

None.

SMCOA_Inactive

character

None.

SMCOA_TS_LastEdited

date

None.

SMCOA_TS_Edited_Uid_FK

integer

None.

CustomerOrderDetails

Collection of CustomerOrderDetailsModels

None.

StockistStockDetails

Collection of StockiestStockModel

None.

Request Formats

application/json, text/json

Sample:
{
  "SMCOA_Id": 1,
  "SMCOA_COR_Id_FK": 2,
  "SMCOA_Approval": "A",
  "SMCOA_ApprovalDate": "2019-05-26T19:24:39.4134767+05:30",
  "StockistSpeedSearch": {
    "SK_Id": 1,
    "SK_Code": "sample string 2",
    "SK_Name": "sample string 3",
    "SK_WH_Id_FK": 4
  },
  "SMCOA_Note": "sample string 5",
  "SMCOA_UserId_FK": 6,
  "SMCOA_TS": "2019-05-26T19:24:39.4134767+05:30",
  "SMCOA_Inactive": "A",
  "SMCOA_TS_LastEdited": "2019-05-26T19:24:39.4134767+05:30",
  "SMCOA_TS_Edited_Uid_FK": 10,
  "CustomerOrderDetails": [
    {
      "COD_Id": 1,
      "COD_COR_Id_FK": 2,
      "COD_P_Id_FK": 3,
      "COD_PA_Id_FK": 4,
      "COD_P_ProductCode_FK": "sample string 5",
      "COD_P_ProductName_FK": "sample string 6",
      "COD_P_UOM_FK": "sample string 7",
      "cod_P_PackSize": "sample string 8",
      "cod_P_Quantity": 9,
      "COD_PR_CustomerPrice_FK": 10.0,
      "COD_PR_VAT_RATE_FK": 11.0,
      "COD_VAT_Amount": 12.0,
      "COD_ShippingCharges": 13.0,
      "COD_ServiceTax": 14.0,
      "COD_ServiceTaxAmount": 15.0,
      "COD_UserId_FK": 16,
      "COD_TS": "2019-05-26T19:24:39.4134767+05:30",
      "COD_Inactive": "A",
      "COD_TS_LastEdited": "2019-05-26T19:24:39.4134767+05:30",
      "COD_TS_Edited_Uid_FK": 20
    },
    {
      "COD_Id": 1,
      "COD_COR_Id_FK": 2,
      "COD_P_Id_FK": 3,
      "COD_PA_Id_FK": 4,
      "COD_P_ProductCode_FK": "sample string 5",
      "COD_P_ProductName_FK": "sample string 6",
      "COD_P_UOM_FK": "sample string 7",
      "cod_P_PackSize": "sample string 8",
      "cod_P_Quantity": 9,
      "COD_PR_CustomerPrice_FK": 10.0,
      "COD_PR_VAT_RATE_FK": 11.0,
      "COD_VAT_Amount": 12.0,
      "COD_ShippingCharges": 13.0,
      "COD_ServiceTax": 14.0,
      "COD_ServiceTaxAmount": 15.0,
      "COD_UserId_FK": 16,
      "COD_TS": "2019-05-26T19:24:39.4134767+05:30",
      "COD_Inactive": "A",
      "COD_TS_LastEdited": "2019-05-26T19:24:39.4134767+05:30",
      "COD_TS_Edited_Uid_FK": 20
    }
  ],
  "StockistStockDetails": [
    {
      "SSM_PA_Id_FK": 1,
      "SSM_Qty": 2.0
    },
    {
      "SSM_PA_Id_FK": 1,
      "SSM_Qty": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<SMCO_ApprovalModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CustomerOrderDetails>
    <CustomerOrderDetailsModels>
      <COD_COR_Id_FK>2</COD_COR_Id_FK>
      <COD_Id>1</COD_Id>
      <COD_Inactive>65</COD_Inactive>
      <COD_PA_Id_FK>4</COD_PA_Id_FK>
      <COD_PR_CustomerPrice_FK>10</COD_PR_CustomerPrice_FK>
      <COD_PR_VAT_RATE_FK>11</COD_PR_VAT_RATE_FK>
      <COD_P_Id_FK>3</COD_P_Id_FK>
      <COD_P_ProductCode_FK>sample string 5</COD_P_ProductCode_FK>
      <COD_P_ProductName_FK>sample string 6</COD_P_ProductName_FK>
      <COD_P_UOM_FK>sample string 7</COD_P_UOM_FK>
      <COD_ServiceTax>14</COD_ServiceTax>
      <COD_ServiceTaxAmount>15</COD_ServiceTaxAmount>
      <COD_ShippingCharges>13</COD_ShippingCharges>
      <COD_TS>2019-05-26T19:24:39.4134767+05:30</COD_TS>
      <COD_TS_Edited_Uid_FK>20</COD_TS_Edited_Uid_FK>
      <COD_TS_LastEdited>2019-05-26T19:24:39.4134767+05:30</COD_TS_LastEdited>
      <COD_UserId_FK>16</COD_UserId_FK>
      <COD_VAT_Amount>12</COD_VAT_Amount>
      <cod_P_PackSize>sample string 8</cod_P_PackSize>
      <cod_P_Quantity>9</cod_P_Quantity>
    </CustomerOrderDetailsModels>
    <CustomerOrderDetailsModels>
      <COD_COR_Id_FK>2</COD_COR_Id_FK>
      <COD_Id>1</COD_Id>
      <COD_Inactive>65</COD_Inactive>
      <COD_PA_Id_FK>4</COD_PA_Id_FK>
      <COD_PR_CustomerPrice_FK>10</COD_PR_CustomerPrice_FK>
      <COD_PR_VAT_RATE_FK>11</COD_PR_VAT_RATE_FK>
      <COD_P_Id_FK>3</COD_P_Id_FK>
      <COD_P_ProductCode_FK>sample string 5</COD_P_ProductCode_FK>
      <COD_P_ProductName_FK>sample string 6</COD_P_ProductName_FK>
      <COD_P_UOM_FK>sample string 7</COD_P_UOM_FK>
      <COD_ServiceTax>14</COD_ServiceTax>
      <COD_ServiceTaxAmount>15</COD_ServiceTaxAmount>
      <COD_ShippingCharges>13</COD_ShippingCharges>
      <COD_TS>2019-05-26T19:24:39.4134767+05:30</COD_TS>
      <COD_TS_Edited_Uid_FK>20</COD_TS_Edited_Uid_FK>
      <COD_TS_LastEdited>2019-05-26T19:24:39.4134767+05:30</COD_TS_LastEdited>
      <COD_UserId_FK>16</COD_UserId_FK>
      <COD_VAT_Amount>12</COD_VAT_Amount>
      <cod_P_PackSize>sample string 8</cod_P_PackSize>
      <cod_P_Quantity>9</cod_P_Quantity>
    </CustomerOrderDetailsModels>
  </CustomerOrderDetails>
  <SMCOA_Approval>65</SMCOA_Approval>
  <SMCOA_ApprovalDate>2019-05-26T19:24:39.4134767+05:30</SMCOA_ApprovalDate>
  <SMCOA_COR_Id_FK>2</SMCOA_COR_Id_FK>
  <SMCOA_Id>1</SMCOA_Id>
  <SMCOA_Inactive>65</SMCOA_Inactive>
  <SMCOA_Note>sample string 5</SMCOA_Note>
  <SMCOA_TS>2019-05-26T19:24:39.4134767+05:30</SMCOA_TS>
  <SMCOA_TS_Edited_Uid_FK>10</SMCOA_TS_Edited_Uid_FK>
  <SMCOA_TS_LastEdited>2019-05-26T19:24:39.4134767+05:30</SMCOA_TS_LastEdited>
  <SMCOA_UserId_FK>6</SMCOA_UserId_FK>
  <StockistSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:SK_Code>sample string 2</d2p1:SK_Code>
    <d2p1:SK_Id>1</d2p1:SK_Id>
    <d2p1:SK_Name>sample string 3</d2p1:SK_Name>
    <d2p1:SK_WH_Id_FK>4</d2p1:SK_WH_Id_FK>
  </StockistSpeedSearch>
  <StockistStockDetails>
    <StockiestStockModel>
      <SSM_PA_Id_FK>1</SSM_PA_Id_FK>
      <SSM_Qty>2</SSM_Qty>
    </StockiestStockModel>
    <StockiestStockModel>
      <SSM_PA_Id_FK>1</SSM_PA_Id_FK>
      <SSM_Qty>2</SSM_Qty>
    </StockiestStockModel>
  </StockistStockDetails>
</SMCO_ApprovalModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.