POST api/MKTH/Setting/PostAddOrderType

Request Information

URI Parameters

None.

Body Parameters

m_AddOrderType
NameDescriptionTypeAdditional information
OrderTypeName

string

Required

DeliveryAddressType

boolean

Required

DeliveryAddressTypeName

string

Required

VatType

boolean

Required

VatTypeName

string

Required

CraditType

boolean

Required

CraditTypeName

string

Required

Documents

Collection of m_AddOrderType_Document

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderTypeName": "sample string 1",
  "DeliveryAddressType": true,
  "DeliveryAddressTypeName": "sample string 3",
  "VatType": true,
  "VatTypeName": "sample string 5",
  "CraditType": true,
  "CraditTypeName": "sample string 7",
  "Documents": [
    {
      "status": true,
      "docId": 1,
      "amount": 1
    },
    {
      "status": true,
      "docId": 1,
      "amount": 1
    }
  ]
}

application/xml, text/xml

Sample:
<m_AddOrderType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models">
  <CraditType>true</CraditType>
  <CraditTypeName>sample string 7</CraditTypeName>
  <DeliveryAddressType>true</DeliveryAddressType>
  <DeliveryAddressTypeName>sample string 3</DeliveryAddressTypeName>
  <Documents>
    <m_AddOrderType_Document>
      <amount>1</amount>
      <docId>1</docId>
      <status>true</status>
    </m_AddOrderType_Document>
    <m_AddOrderType_Document>
      <amount>1</amount>
      <docId>1</docId>
      <status>true</status>
    </m_AddOrderType_Document>
  </Documents>
  <OrderTypeName>sample string 1</OrderTypeName>
  <VatType>true</VatType>
  <VatTypeName>sample string 5</VatTypeName>
</m_AddOrderType>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.