POST api/WorkOrderService
Request Information
URI Parameters
None.
Body Parameters
WorkOrderService| Name | Description | Type | Additional information |
|---|---|---|---|
| WorkOrderServiceId | integer |
None. |
|
| JobCardWorkOrderId | integer |
None. |
|
| ServiceId | integer |
None. |
|
| ServiceCost | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| DiscountAmount | decimal number |
None. |
|
| Service | Service |
None. |
|
| CreatedDate | date |
Data type: DateTime |
|
| CreatedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"WorkOrderServiceId": 1,
"JobCardWorkOrderId": 2,
"ServiceId": 3,
"ServiceCost": 4.1,
"Discount": 5.1,
"DiscountAmount": 6.1,
"Service": {
"ServiceId": 1,
"ServiceName": "sample string 2",
"ServiceCharge": 3.1,
"ActiveFlag": true,
"CreatedDate": "2025-12-08T01:53:21.5957392+05:30",
"CreatedBy": "sample string 6"
},
"CreatedDate": "2025-12-08T01:53:21.5957392+05:30",
"CreatedBy": "sample string 8"
}
application/xml, text/xml
Sample:
<WorkOrderService xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netsoft.Domain.Entities">
<CreatedBy>sample string 8</CreatedBy>
<CreatedDate>2025-12-08T01:53:21.5957392+05:30</CreatedDate>
<Discount>5.1</Discount>
<DiscountAmount>6.1</DiscountAmount>
<JobCardWorkOrderId>2</JobCardWorkOrderId>
<Service>
<CreatedBy>sample string 6</CreatedBy>
<CreatedDate>2025-12-08T01:53:21.5957392+05:30</CreatedDate>
<ActiveFlag>true</ActiveFlag>
<ServiceCharge>3.1</ServiceCharge>
<ServiceId>1</ServiceId>
<ServiceName>sample string 2</ServiceName>
</Service>
<ServiceCost>4.1</ServiceCost>
<ServiceId>3</ServiceId>
<WorkOrderServiceId>1</WorkOrderServiceId>
</WorkOrderService>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |