POST api/Order/Add
Request Information
URI Parameters
None.
Body Parameters
OrderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| user_type_id | integer |
None. |
|
| bookNo | string |
None. |
|
| customer_id | integer |
None. |
|
| branch_id | integer |
None. |
|
| AssignToName | string |
None. |
|
| CustomerName | string |
None. |
|
| CustomerPhone | string |
None. |
|
| CustomerAddress | string |
None. |
|
| jacket | integer |
None. |
|
| bad_cover | integer |
None. |
|
| blanket | integer |
None. |
|
| others | integer |
None. |
|
| order_status | string |
None. |
|
| is_partial | boolean |
None. |
|
| order_type | string |
None. |
|
| postal_code | string |
None. |
|
| latitude | decimal number |
None. |
|
| longitude | decimal number |
None. |
|
| payment_status | string |
None. |
|
| payment_mode | string |
None. |
|
| payment_date | date |
None. |
|
| description | string |
None. |
|
| delivery_address | string |
None. |
|
| pickup_address | string |
None. |
|
| discount | decimal number |
None. |
|
| calc_discount | decimal number |
None. |
|
| calc_service_tax | decimal number |
None. |
|
| service_tax | decimal number |
None. |
|
| total | decimal number |
None. |
|
| qty | decimal number |
None. |
|
| bag_no | string |
None. |
|
| assign_to | integer |
None. |
|
| assign_date | date |
None. |
|
| delivery_by | integer |
None. |
|
| delivery_date | date |
None. |
|
| delivery_day | string |
None. |
|
| delivery_charges | decimal number |
None. |
|
| delv_time | string |
None. |
|
| pickup_by | integer |
None. |
|
| PickupByPhone | string |
None. |
|
| DeliveryByPhone | string |
None. |
|
| pickup_date | date |
None. |
|
| pickup_day | string |
None. |
|
| unit_id | integer |
None. |
|
| confirm_datetime | date |
None. |
|
| canceled_datetime | date |
None. |
|
| OrderDetail | Collection of OrderDetailModel |
None. |
|
| OrderServiceCost | Collection of OrderServiceCostModel |
None. |
|
| paid_amount | decimal number |
None. |
|
| waking_customer | boolean |
None. |
|
| place_order_type | string |
None. |
|
| branch_name | string |
None. |
|
| advancePay | decimal number |
None. |
|
| ClothsCount | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| bDate | string |
None. |
|
| dDate | string |
None. |
|
| id | integer |
None. |
|
| text | string |
None. |
|
| is_active | boolean |
None. |
|
| created_by | integer |
None. |
|
| created_date | date |
None. |
|
| updated_by | integer |
None. |
|
| updated_date | date |
None. |
|
| TotalRows | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"user_type_id": 1,
"bookNo": "sample string 2",
"customer_id": 3,
"branch_id": 4,
"AssignToName": "sample string 5",
"CustomerName": "sample string 6",
"CustomerPhone": "sample string 7",
"CustomerAddress": "sample string 8",
"jacket": 9,
"bad_cover": 10,
"blanket": 11,
"others": 12,
"order_status": "sample string 13",
"is_partial": true,
"order_type": "sample string 15",
"postal_code": "sample string 16",
"latitude": 17.0,
"longitude": 18.0,
"payment_status": "sample string 19",
"payment_mode": "sample string 20",
"payment_date": "2025-12-18T16:07:38.4514302+05:00",
"description": "sample string 22",
"delivery_address": "sample string 23",
"pickup_address": "sample string 24",
"discount": 25.0,
"calc_discount": 26.0,
"calc_service_tax": 27.0,
"service_tax": 28.0,
"total": 29.0,
"qty": 30.0,
"bag_no": "sample string 31",
"assign_to": 32,
"assign_date": "2025-12-18T16:07:38.4514302+05:00",
"delivery_by": 34,
"delivery_date": "2025-12-18T16:07:38.4514302+05:00",
"delivery_day": "sample string 36",
"delivery_charges": 37.0,
"delv_time": "sample string 38",
"pickup_by": 39,
"PickupByPhone": "sample string 40",
"DeliveryByPhone": "sample string 41",
"pickup_date": "2025-12-18T16:07:38.4524365+05:00",
"pickup_day": "sample string 43",
"unit_id": 44,
"confirm_datetime": "2025-12-18T16:07:38.4524365+05:00",
"canceled_datetime": "2025-12-18T16:07:38.4524365+05:00",
"OrderDetail": [
{
"id": 1,
"order_id": 2,
"service_id": 3,
"cloth_id": 4,
"unit_id": 5,
"unit_value": 6.0,
"price": 7.0,
"balance_value": 8.0,
"total": 9.0,
"service": "sample string 10",
"cloth": "sample string 11",
"return_value": 12.0,
"received_value": 13.0,
"is_done": true,
"is_partial": true,
"unit": "sample string 16",
"image_path": "sample string 17",
"ServiceDate": "2025-12-18T16:07:38.4544345+05:00",
"full_name": "sample string 19",
"created_date": "2025-12-18T16:07:38.4544345+05:00",
"cloth_name": "sample string 21",
"service_name": "sample string 22",
"TotalRows": 23
},
{
"id": 1,
"order_id": 2,
"service_id": 3,
"cloth_id": 4,
"unit_id": 5,
"unit_value": 6.0,
"price": 7.0,
"balance_value": 8.0,
"total": 9.0,
"service": "sample string 10",
"cloth": "sample string 11",
"return_value": 12.0,
"received_value": 13.0,
"is_done": true,
"is_partial": true,
"unit": "sample string 16",
"image_path": "sample string 17",
"ServiceDate": "2025-12-18T16:07:38.4544345+05:00",
"full_name": "sample string 19",
"created_date": "2025-12-18T16:07:38.4544345+05:00",
"cloth_name": "sample string 21",
"service_name": "sample string 22",
"TotalRows": 23
}
],
"OrderServiceCost": [
{
"id": 1,
"service_id": 2,
"kg_value": 3,
"kg_price": 4.0,
"kg_total": 5.0,
"bag_no": "sample string 6",
"order_id": 7,
"service": "sample string 8"
},
{
"id": 1,
"service_id": 2,
"kg_value": 3,
"kg_price": 4.0,
"kg_total": 5.0,
"bag_no": "sample string 6",
"order_id": 7,
"service": "sample string 8"
}
],
"paid_amount": 47.0,
"waking_customer": true,
"place_order_type": "sample string 49",
"branch_name": "sample string 50",
"advancePay": 51.0,
"ClothsCount": 52.0,
"TotalAmount": 53.0,
"bDate": "sample string 54",
"dDate": "sample string 55",
"id": 56,
"text": "sample string 57",
"is_active": true,
"created_by": 59,
"created_date": "2025-12-18T16:07:38.4554338+05:00",
"updated_by": 61,
"updated_date": "2025-12-18T16:07:38.4554338+05:00",
"TotalRows": 63
}
application/xml, text/xml
Sample:
<OrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">
<TotalRows>63</TotalRows>
<created_by>59</created_by>
<created_date>2025-12-18T16:07:38.4554338+05:00</created_date>
<id>56</id>
<is_active>true</is_active>
<text>sample string 57</text>
<updated_by>61</updated_by>
<updated_date>2025-12-18T16:07:38.4554338+05:00</updated_date>
<AssignToName>sample string 5</AssignToName>
<ClothsCount>52</ClothsCount>
<CustomerAddress>sample string 8</CustomerAddress>
<CustomerName>sample string 6</CustomerName>
<CustomerPhone>sample string 7</CustomerPhone>
<DeliveryByPhone>sample string 41</DeliveryByPhone>
<OrderDetail>
<OrderDetailModel>
<TotalRows>23</TotalRows>
<cloth_name>sample string 21</cloth_name>
<created_date>2025-12-18T16:07:38.4544345+05:00</created_date>
<full_name>sample string 19</full_name>
<service_name>sample string 22</service_name>
<ServiceDate>2025-12-18T16:07:38.4544345+05:00</ServiceDate>
<balance_value>8</balance_value>
<cloth>sample string 11</cloth>
<cloth_id>4</cloth_id>
<id>1</id>
<image_path>sample string 17</image_path>
<is_done>true</is_done>
<is_partial>true</is_partial>
<order_id>2</order_id>
<price>7</price>
<received_value>13</received_value>
<return_value>12</return_value>
<service>sample string 10</service>
<service_id>3</service_id>
<total>9</total>
<unit>sample string 16</unit>
<unit_id>5</unit_id>
<unit_value>6</unit_value>
</OrderDetailModel>
<OrderDetailModel>
<TotalRows>23</TotalRows>
<cloth_name>sample string 21</cloth_name>
<created_date>2025-12-18T16:07:38.4544345+05:00</created_date>
<full_name>sample string 19</full_name>
<service_name>sample string 22</service_name>
<ServiceDate>2025-12-18T16:07:38.4544345+05:00</ServiceDate>
<balance_value>8</balance_value>
<cloth>sample string 11</cloth>
<cloth_id>4</cloth_id>
<id>1</id>
<image_path>sample string 17</image_path>
<is_done>true</is_done>
<is_partial>true</is_partial>
<order_id>2</order_id>
<price>7</price>
<received_value>13</received_value>
<return_value>12</return_value>
<service>sample string 10</service>
<service_id>3</service_id>
<total>9</total>
<unit>sample string 16</unit>
<unit_id>5</unit_id>
<unit_value>6</unit_value>
</OrderDetailModel>
</OrderDetail>
<OrderServiceCost>
<OrderServiceCostModel>
<bag_no>sample string 6</bag_no>
<id>1</id>
<kg_price>4</kg_price>
<kg_total>5</kg_total>
<kg_value>3</kg_value>
<order_id>7</order_id>
<service>sample string 8</service>
<service_id>2</service_id>
</OrderServiceCostModel>
<OrderServiceCostModel>
<bag_no>sample string 6</bag_no>
<id>1</id>
<kg_price>4</kg_price>
<kg_total>5</kg_total>
<kg_value>3</kg_value>
<order_id>7</order_id>
<service>sample string 8</service>
<service_id>2</service_id>
</OrderServiceCostModel>
</OrderServiceCost>
<PickupByPhone>sample string 40</PickupByPhone>
<TotalAmount>53</TotalAmount>
<advancePay>51</advancePay>
<assign_date>2025-12-18T16:07:38.4514302+05:00</assign_date>
<assign_to>32</assign_to>
<bDate>sample string 54</bDate>
<bad_cover>10</bad_cover>
<bag_no>sample string 31</bag_no>
<blanket>11</blanket>
<bookNo>sample string 2</bookNo>
<branch_id>4</branch_id>
<branch_name>sample string 50</branch_name>
<calc_discount>26</calc_discount>
<calc_service_tax>27</calc_service_tax>
<canceled_datetime>2025-12-18T16:07:38.4524365+05:00</canceled_datetime>
<confirm_datetime>2025-12-18T16:07:38.4524365+05:00</confirm_datetime>
<customer_id>3</customer_id>
<dDate>sample string 55</dDate>
<delivery_address>sample string 23</delivery_address>
<delivery_by>34</delivery_by>
<delivery_charges>37</delivery_charges>
<delivery_date>2025-12-18T16:07:38.4514302+05:00</delivery_date>
<delivery_day>sample string 36</delivery_day>
<delv_time>sample string 38</delv_time>
<description>sample string 22</description>
<discount>25</discount>
<is_partial>true</is_partial>
<jacket>9</jacket>
<latitude>17</latitude>
<longitude>18</longitude>
<order_status>sample string 13</order_status>
<order_type>sample string 15</order_type>
<others>12</others>
<paid_amount>47</paid_amount>
<payment_date>2025-12-18T16:07:38.4514302+05:00</payment_date>
<payment_mode>sample string 20</payment_mode>
<payment_status>sample string 19</payment_status>
<pickup_address>sample string 24</pickup_address>
<pickup_by>39</pickup_by>
<pickup_date>2025-12-18T16:07:38.4524365+05:00</pickup_date>
<pickup_day>sample string 43</pickup_day>
<place_order_type>sample string 49</place_order_type>
<postal_code>sample string 16</postal_code>
<qty>30</qty>
<service_tax>28</service_tax>
<total>29</total>
<unit_id>44</unit_id>
<user_type_id>1</user_type_id>
<waking_customer>true</waking_customer>
</OrderModel>
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.