POST api/Order/AddOrderItem

Request Information

URI Parameters

None.

Body Parameters

Collection of OrderDetailModel
NameDescriptionTypeAdditional information
id

integer

None.

order_id

integer

None.

service_id

integer

None.

cloth_id

integer

None.

unit_id

integer

None.

unit_value

decimal number

None.

price

decimal number

None.

balance_value

decimal number

None.

total

decimal number

None.

service

string

None.

cloth

string

None.

return_value

decimal number

None.

received_value

decimal number

None.

is_done

boolean

None.

is_partial

boolean

None.

unit

string

None.

image_path

string

None.

ServiceDate

date

None.

full_name

string

None.

created_date

date

None.

cloth_name

string

None.

service_name

string

None.

TotalRows

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "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-31T11:56:17.5059596+05:00",
    "full_name": "sample string 19",
    "created_date": "2025-12-31T11:56:17.5059596+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-31T11:56:17.5059596+05:00",
    "full_name": "sample string 19",
    "created_date": "2025-12-31T11:56:17.5059596+05:00",
    "cloth_name": "sample string 21",
    "service_name": "sample string 22",
    "TotalRows": 23
  }
]

application/xml, text/xml

Sample:
<ArrayOfOrderDetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpoonRocket.Models">
  <OrderDetailModel>
    <TotalRows>23</TotalRows>
    <cloth_name>sample string 21</cloth_name>
    <created_date>2025-12-31T11:56:17.5059596+05:00</created_date>
    <full_name>sample string 19</full_name>
    <service_name>sample string 22</service_name>
    <ServiceDate>2025-12-31T11:56:17.5059596+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-31T11:56:17.5059596+05:00</created_date>
    <full_name>sample string 19</full_name>
    <service_name>sample string 22</service_name>
    <ServiceDate>2025-12-31T11:56:17.5059596+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>
</ArrayOfOrderDetailModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.