POST api/Lab/CreateOrder

Request Information

URI Parameters

None.

Body Parameters

CreateLabOrderDTO
NameDescriptionTypeAdditional information
UserID

globally unique identifier

None.

comments

string

None.

PatientName

string

None.

Location

globally unique identifier

None.

FinalAmount

decimal number

None.

DeliveryCharge

decimal number

None.

ServiceCharge

decimal number

None.

Discount

decimal number

None.

DateSelected

date

None.

TimeSelected

string

None.

LabID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": "d907042b-dc1b-4861-a956-bf46136eb3e8",
  "comments": "sample string 2",
  "PatientName": "sample string 3",
  "Location": "96a5e478-e78e-4baf-baee-41ba24d0913a",
  "FinalAmount": 5.1,
  "DeliveryCharge": 6.1,
  "ServiceCharge": 7.1,
  "Discount": 8.1,
  "DateSelected": "2025-03-14T15:21:00.1667326+00:00",
  "TimeSelected": "sample string 10",
  "LabID": "619ebec3-d9f9-451f-8883-6f5ff70f20be"
}

application/xml, text/xml

Sample:
<CreateLabOrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheanAPI.DTO">
  <DateSelected>2025-03-14T15:21:00.1667326+00:00</DateSelected>
  <DeliveryCharge>6.1</DeliveryCharge>
  <Discount>8.1</Discount>
  <FinalAmount>5.1</FinalAmount>
  <LabID>619ebec3-d9f9-451f-8883-6f5ff70f20be</LabID>
  <Location>96a5e478-e78e-4baf-baee-41ba24d0913a</Location>
  <PatientName>sample string 3</PatientName>
  <ServiceCharge>7.1</ServiceCharge>
  <TimeSelected>sample string 10</TimeSelected>
  <UserID>d907042b-dc1b-4861-a956-bf46136eb3e8</UserID>
  <comments>sample string 2</comments>
</CreateLabOrderDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDtoOfObject
NameDescriptionTypeAdditional information
Status_cd

boolean

None.

Data

Object

None.

status_Desc

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status_cd": true,
  "Data": {},
  "status_Desc": "sample string 3"
}

application/xml, text/xml

Sample:
<ResponseDtoOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheanAPI.DTO">
  <Data />
  <Status_cd>true</Status_cd>
  <status_Desc>sample string 3</status_Desc>
</ResponseDtoOfanyType>