POST api/OrderCustomer/AddOrUpdate

Request Information

URI Parameters

None.

Body Parameters

AddOrUpdateOrderItemCustomerModel
NameDescriptionTypeAdditional information
Id

integer

None.

UnitPrice

decimal number

None.

AdjustedPrice

decimal number

None.

Quantity

integer

None.

ProductId

globally unique identifier

None.

OrderId

globally unique identifier

None.

Note

string

None.

IsCreate

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UnitPrice": 1.0,
  "AdjustedPrice": 2.0,
  "Quantity": 3,
  "ProductId": "c0000075-a41d-4aaf-a139-af99c675ee4a",
  "OrderId": "a87485f7-9a4c-4895-bc6d-c4b171e77dba",
  "Note": "sample string 5",
  "IsCreate": true
}

application/xml, text/xml

Sample:
<AddOrUpdateOrderItemCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.OrderCustomer">
  <AdjustedPrice>2</AdjustedPrice>
  <Id>1</Id>
  <IsCreate>true</IsCreate>
  <Note>sample string 5</Note>
  <OrderId>a87485f7-9a4c-4895-bc6d-c4b171e77dba</OrderId>
  <ProductId>c0000075-a41d-4aaf-a139-af99c675ee4a</ProductId>
  <Quantity>3</Quantity>
  <UnitPrice>1</UnitPrice>
</AddOrUpdateOrderItemCustomerModel>

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

Response Information

Resource Description

None.