PUT api/orders/UpdateOrder?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
Order| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| tracking_number | string |
None. |
|
| customer_id | string |
None. |
|
| customer_contact | string |
None. |
|
| status | integer |
None. |
|
| amount | decimal number |
None. |
|
| sales_tax | decimal number |
None. |
|
| paid_total | decimal number |
None. |
|
| total | decimal number |
None. |
|
| parent_id | string |
None. |
|
| shop_id | integer |
None. |
|
| invoice_id | integer |
None. |
|
| discount | decimal number |
None. |
|
| payment_id | string |
None. |
|
| payment_gateway | string |
None. |
|
| shipping_address | string |
None. |
|
| delivery_time | date |
None. |
|
| deleted_at | date |
None. |
|
| created_at | date |
None. |
|
| updated_at | date |
None. |
|
| products | Collection of OrderProduct |
None. |
|
| customer_name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"tracking_number": "sample string 2",
"customer_id": "sample string 3",
"customer_contact": "sample string 4",
"status": 5,
"amount": 6.1,
"sales_tax": 7.1,
"paid_total": 8.1,
"total": 9.1,
"parent_id": "sample string 10",
"shop_id": 11,
"invoice_id": 12,
"discount": 13.1,
"payment_id": "sample string 14",
"payment_gateway": "sample string 15",
"shipping_address": "sample string 16",
"delivery_time": "2025-11-09T14:00:06.8828596+03:00",
"deleted_at": "2025-11-09T14:00:06.8828596+03:00",
"created_at": "2025-11-09T14:00:06.8837994+03:00",
"updated_at": "2025-11-09T14:00:06.8837994+03:00",
"products": [
{
"id": 1,
"order_id": 2,
"product_id": 3,
"product_name": "sample string 4",
"unit_id": 5,
"order_quantity": 6.1,
"unit_price": 7.1,
"subtotal": 8.1,
"deleted_at": "2025-11-09T14:00:06.885862+03:00",
"created_at": "2025-11-09T14:00:06.8869483+03:00",
"updated_at": "2025-11-09T14:00:06.8869483+03:00"
},
{
"id": 1,
"order_id": 2,
"product_id": 3,
"product_name": "sample string 4",
"unit_id": 5,
"order_quantity": 6.1,
"unit_price": 7.1,
"subtotal": 8.1,
"deleted_at": "2025-11-09T14:00:06.885862+03:00",
"created_at": "2025-11-09T14:00:06.8869483+03:00",
"updated_at": "2025-11-09T14:00:06.8869483+03:00"
}
],
"customer_name": "sample string 19"
}
application/xml, text/xml
Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiLite.ShopModule.Models">
<amount>6.1</amount>
<created_at>2025-11-09T14:00:06.8837994+03:00</created_at>
<customer_contact>sample string 4</customer_contact>
<customer_id>sample string 3</customer_id>
<customer_name>sample string 19</customer_name>
<deleted_at>2025-11-09T14:00:06.8828596+03:00</deleted_at>
<delivery_time>2025-11-09T14:00:06.8828596+03:00</delivery_time>
<discount>13.1</discount>
<id>1</id>
<invoice_id>12</invoice_id>
<paid_total>8.1</paid_total>
<parent_id>sample string 10</parent_id>
<payment_gateway>sample string 15</payment_gateway>
<payment_id>sample string 14</payment_id>
<products>
<OrderProduct>
<created_at>2025-11-09T14:00:06.8869483+03:00</created_at>
<deleted_at>2025-11-09T14:00:06.885862+03:00</deleted_at>
<id>1</id>
<order_id>2</order_id>
<order_quantity>6.1</order_quantity>
<product_id>3</product_id>
<product_name>sample string 4</product_name>
<subtotal>8.1</subtotal>
<unit_id>5</unit_id>
<unit_price>7.1</unit_price>
<updated_at>2025-11-09T14:00:06.8869483+03:00</updated_at>
</OrderProduct>
<OrderProduct>
<created_at>2025-11-09T14:00:06.8869483+03:00</created_at>
<deleted_at>2025-11-09T14:00:06.885862+03:00</deleted_at>
<id>1</id>
<order_id>2</order_id>
<order_quantity>6.1</order_quantity>
<product_id>3</product_id>
<product_name>sample string 4</product_name>
<subtotal>8.1</subtotal>
<unit_id>5</unit_id>
<unit_price>7.1</unit_price>
<updated_at>2025-11-09T14:00:06.8869483+03:00</updated_at>
</OrderProduct>
</products>
<sales_tax>7.1</sales_tax>
<shipping_address>sample string 16</shipping_address>
<shop_id>11</shop_id>
<status>5</status>
<total>9.1</total>
<tracking_number>sample string 2</tracking_number>
<updated_at>2025-11-09T14:00:06.8837994+03:00</updated_at>
</Order>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.