POST api/OrderStates

Request Information

URI Parameters

None.

Body Parameters

OrderStateModel
NameDescriptionTypeAdditional information
SalesForceId

string

None.

Note

string

None.

OrderKey

string

None.

OrderStateTypeId

integer

None.

CreatedByEntityKey

string

None.

CreatedByEntityTypeId

integer

None.

OrderStateReason

OrderStateReason

None.

Request Formats

application/json, text/json

Sample:
{
  "SalesForceId": "sample string 1",
  "Note": "sample string 2",
  "OrderKey": "sample string 3",
  "OrderStateTypeId": 4,
  "CreatedByEntityKey": "sample string 5",
  "CreatedByEntityTypeId": 6,
  "OrderStateReason": {
    "Note": "sample string 1",
    "OrderStateChildReasonId": 2
  }
}

application/xml, text/xml

Sample:
<OrderStateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Salesforce.Gateway.Model">
  <CreatedByEntityKey>sample string 5</CreatedByEntityKey>
  <CreatedByEntityTypeId>6</CreatedByEntityTypeId>
  <Note>sample string 2</Note>
  <OrderKey>sample string 3</OrderKey>
  <OrderStateReason>
    <Note>sample string 1</Note>
    <OrderStateChildReasonId>2</OrderStateChildReasonId>
  </OrderStateReason>
  <OrderStateTypeId>4</OrderStateTypeId>
  <SalesForceId>sample string 1</SalesForceId>
</OrderStateModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.