POST api/order/OnlineOrderDetail/AddMultiple?onlineOrderId={onlineOrderId}&shouldCalculateTax={shouldCalculateTax}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
onlineOrderId

integer

Required

shouldCalculateTax

boolean

Default value is True

Body Parameters

Collection of NewOnlineOrderDetailViewModel
NameDescriptionTypeAdditional information
ProductID

The Product ID of the item

string

None.

SourceProgrammingKey

Programming key of the 3rd party who added the item

string

None.

Quantity

The primary identifier of the order detail id

integer

None.

Price

decimal number

None.

IsAutoShip

boolean

None.

Misc

For any customizations, this holds the extra fields associated to customizations.

Collection of MiscFieldViewModel

None.

Request Formats

application/xml, text/xml

Sample:
<ListOfNewOnlineOrderDetailViewModel>
  <NewOnlineOrderDetailViewModel>
    <ProductID>sample string 1</ProductID>
    <SourceProgrammingKey>sample string 2</SourceProgrammingKey>
    <Quantity>3</Quantity>
    <Price>4</Price>
    <IsAutoShip>True</IsAutoShip>
    <Misc>
      <MiscFieldViewModel>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </MiscFieldViewModel>
      <MiscFieldViewModel>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </MiscFieldViewModel>
    </Misc>
  </NewOnlineOrderDetailViewModel>
  <NewOnlineOrderDetailViewModel>
    <ProductID>sample string 1</ProductID>
    <SourceProgrammingKey>sample string 2</SourceProgrammingKey>
    <Quantity>3</Quantity>
    <Price>4</Price>
    <IsAutoShip>True</IsAutoShip>
    <Misc>
      <MiscFieldViewModel>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </MiscFieldViewModel>
      <MiscFieldViewModel>
        <Name>sample string 1</Name>
        <Value>sample string 2</Value>
      </MiscFieldViewModel>
    </Misc>
  </NewOnlineOrderDetailViewModel>
</ListOfNewOnlineOrderDetailViewModel>

application/json, text/json

Sample:
[
  {
    "ProductID": "sample string 1",
    "SourceProgrammingKey": "sample string 2",
    "Quantity": 3,
    "Price": 4.0,
    "IsAutoShip": true,
    "Misc": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  },
  {
    "ProductID": "sample string 1",
    "SourceProgrammingKey": "sample string 2",
    "Quantity": 3,
    "Price": 4.0,
    "IsAutoShip": true,
    "Misc": [
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Name": "sample string 1",
        "Value": "sample string 2"
      }
    ]
  }
]

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.