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.

Request Formats

application/json, text/json

Sample:
{
  "SMCOA_Id": 1,
  "SMCOA_COR_Id_FK": 2,
  "SMCOA_Approval": "A",
  "SMCOA_ApprovalDate": "2025-01-09T00:29:54.303818+05:30",
  "StockistSpeedSearch": {
    "SK_Id": 1,
    "SK_Code": "sample string 2",
    "SK_Name": "sample string 3"
  },
  "SMCOA_Note": "sample string 5",
  "SMCOA_UserId_FK": 6,
  "SMCOA_TS": "2025-01-09T00:29:54.303818+05:30",
  "SMCOA_Inactive": "A",
  "SMCOA_TS_LastEdited": "2025-01-09T00:29:54.303818+05:30",
  "SMCOA_TS_Edited_Uid_FK": 10
}

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">
  <SMCOA_Approval>65</SMCOA_Approval>
  <SMCOA_ApprovalDate>2025-01-09T00:29:54.303818+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>2025-01-09T00:29:54.303818+05:30</SMCOA_TS>
  <SMCOA_TS_Edited_Uid_FK>10</SMCOA_TS_Edited_Uid_FK>
  <SMCOA_TS_LastEdited>2025-01-09T00:29:54.303818+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>
  </StockistSpeedSearch>
</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.