POST api/OrderCustomer/AddOrUpdate
Request Information
URI Parameters
None.
Body Parameters
AddOrUpdateOrderItemCustomerModel| Name | Description | Type | Additional 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": "c46c2ab3-be52-4709-966d-268ab358eef3",
"orderId": "48d19295-d037-469b-950f-4c2a5273647b",
"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>48d19295-d037-469b-950f-4c2a5273647b</OrderId> <ProductId>c46c2ab3-be52-4709-966d-268ab358eef3</ProductId> <Quantity>3</Quantity> <UnitPrice>1</UnitPrice> </AddOrUpdateOrderItemCustomerModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.