POST api/Order/update_final_bill
Request Information
URI Parameters
None.
Body Parameters
SalesSummaryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| order_id | integer |
None. |
|
| OumaCode | integer |
None. |
|
| order_number | string |
None. |
|
| total | decimal number |
None. |
|
| tax | decimal number |
None. |
|
| discount | decimal number |
None. |
|
| lines | Collection of LineItems |
None. |
Request Formats
application/json, text/json
Sample:
{
"order_id": 1,
"OumaCode": 2,
"order_number": "sample string 3",
"total": 4.1,
"tax": 5.1,
"discount": 6.1,
"lines": [
{
"title": "sample string 1",
"quantity": 2.1,
"unit_price": 3.1,
"line_price": 4.1
},
{
"title": "sample string 1",
"quantity": 2.1,
"unit_price": 3.1,
"line_price": 4.1
}
]
}
application/xml, text/xml
Sample:
<SalesSummaryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebStoreAPI.Models">
<OumaCode>2</OumaCode>
<discount>6.1</discount>
<lines>
<LineItems>
<line_price>4.1</line_price>
<quantity>2.1</quantity>
<title>sample string 1</title>
<unit_price>3.1</unit_price>
</LineItems>
<LineItems>
<line_price>4.1</line_price>
<quantity>2.1</quantity>
<title>sample string 1</title>
<unit_price>3.1</unit_price>
</LineItems>
</lines>
<order_id>1</order_id>
<order_number>sample string 3</order_number>
<tax>5.1</tax>
<total>4.1</total>
</SalesSummaryModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| Message | string |
None. |
|
| Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"Message": "sample string 2",
"Data": "sample string 3"
}
application/xml, text/xml
Sample:
<ResultModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebStoreAPI.Models"> <Data>sample string 3</Data> <Message>sample string 2</Message> <ResponseCode>1</ResponseCode> </ResultModelOfstring>