POST api/Orders/UpdateOrder
Request Information
URI Parameters
None.
Body Parameters
Orders| Name | Description | Type | Additional information |
|---|---|---|---|
| AppId | string |
None. |
|
| AppKey | string |
None. |
|
| OrderId | string |
None. |
|
| ShopId | integer |
None. |
|
| OrderDate | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| CustomerEmail | string |
None. |
|
| Address | string |
None. |
|
| City | string |
None. |
|
| Country | string |
None. |
|
| State | string |
None. |
|
| Telephone | string |
None. |
|
| Status | string |
None. |
|
| ShippingCost | decimal number |
None. |
|
| CustomerNo | string |
None. |
|
| comments | string |
None. |
|
| CourierCompany | string |
None. |
|
| CourierNumber | string |
None. |
|
| Weight | decimal number |
None. |
|
| Locality | string |
None. |
|
| ReedemedPoints | decimal number |
None. |
|
| ProvisionalPoints | decimal number |
None. |
|
| Products | Collection of OrderProducts |
None. |
|
| store_currency_id | integer |
None. |
|
| subtotal | decimal number |
None. |
|
| grand_total | decimal number |
None. |
|
| discount_amount | decimal number |
None. |
|
| payment_method | string |
None. |
|
| shipment_status | string |
None. |
|
| shipment_method | string |
None. |
|
| job_order_number | string |
None. |
|
| store_pickup_id | integer |
None. |
|
| gift_wrap | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AppId": "sample string 1",
"AppKey": "sample string 2",
"OrderId": "sample string 3",
"ShopId": 4,
"OrderDate": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"CustomerEmail": "sample string 8",
"Address": "sample string 9",
"City": "sample string 10",
"Country": "sample string 11",
"State": "sample string 12",
"Telephone": "sample string 13",
"Status": "sample string 14",
"ShippingCost": 15.1,
"CustomerNo": "sample string 16",
"comments": "sample string 17",
"CourierCompany": "sample string 18",
"CourierNumber": "sample string 19",
"Weight": 20.1,
"Locality": "sample string 21",
"ReedemedPoints": 22.1,
"ProvisionalPoints": 23.1,
"Products": [
{
"ProductCode": "sample string 1",
"ProductItemId": 2,
"ItemName": "sample string 3",
"Qty": 4.1,
"ItemAmount": 5.1,
"DiscountPerc": 6.1,
"ItemTotal": 7.1
},
{
"ProductCode": "sample string 1",
"ProductItemId": 2,
"ItemName": "sample string 3",
"Qty": 4.1,
"ItemAmount": 5.1,
"DiscountPerc": 6.1,
"ItemTotal": 7.1
}
],
"store_currency_id": 24,
"subtotal": 25.1,
"grand_total": 26.1,
"discount_amount": 27.1,
"payment_method": "sample string 28",
"shipment_status": "sample string 29",
"shipment_method": "sample string 30",
"job_order_number": "sample string 31",
"store_pickup_id": 32,
"gift_wrap": "sample string 33"
}
text/xml
Sample:
<Orders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models">
<Address>sample string 9</Address>
<AppId>sample string 1</AppId>
<AppKey>sample string 2</AppKey>
<City>sample string 10</City>
<Country>sample string 11</Country>
<CourierCompany>sample string 18</CourierCompany>
<CourierNumber>sample string 19</CourierNumber>
<CustomerEmail>sample string 8</CustomerEmail>
<CustomerNo>sample string 16</CustomerNo>
<FirstName>sample string 6</FirstName>
<LastName>sample string 7</LastName>
<Locality>sample string 21</Locality>
<OrderDate>sample string 5</OrderDate>
<OrderId>sample string 3</OrderId>
<Products>
<OrderProducts>
<DiscountPerc>6.1</DiscountPerc>
<ItemAmount>5.1</ItemAmount>
<ItemName>sample string 3</ItemName>
<ItemTotal>7.1</ItemTotal>
<ProductCode>sample string 1</ProductCode>
<ProductItemId>2</ProductItemId>
<Qty>4.1</Qty>
</OrderProducts>
<OrderProducts>
<DiscountPerc>6.1</DiscountPerc>
<ItemAmount>5.1</ItemAmount>
<ItemName>sample string 3</ItemName>
<ItemTotal>7.1</ItemTotal>
<ProductCode>sample string 1</ProductCode>
<ProductItemId>2</ProductItemId>
<Qty>4.1</Qty>
</OrderProducts>
</Products>
<ProvisionalPoints>23.1</ProvisionalPoints>
<ReedemedPoints>22.1</ReedemedPoints>
<ShippingCost>15.1</ShippingCost>
<ShopId>4</ShopId>
<State>sample string 12</State>
<Status>sample string 14</Status>
<Telephone>sample string 13</Telephone>
<Weight>20.1</Weight>
<comments>sample string 17</comments>
<discount_amount>27.1</discount_amount>
<gift_wrap>sample string 33</gift_wrap>
<grand_total>26.1</grand_total>
<job_order_number>sample string 31</job_order_number>
<payment_method>sample string 28</payment_method>
<shipment_method>sample string 30</shipment_method>
<shipment_status>sample string 29</shipment_status>
<store_currency_id>24</store_currency_id>
<store_pickup_id>32</store_pickup_id>
<subtotal>25.1</subtotal>
</Orders>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OrdersResponce| Name | Description | Type | Additional information |
|---|---|---|---|
| code | string |
None. |
|
| msg | string |
None. |
|
| data | DataTable |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "sample string 1",
"msg": "sample string 2",
"data": null
}
text/xml
Sample:
<OrdersResponce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EConnect.Models"> <code>sample string 1</code> <data i:nil="true" /> <msg>sample string 2</msg> </OrdersResponce>