POST api/MedicineLists
Request Information
URI Parameters
None.
Body Parameters
MedicineList| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| SearchName | string |
None. |
|
| MedicineForm | string |
None. |
|
| MedicineTypeId | integer |
None. |
|
| GroupId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| MedicinePackSize | integer |
None. |
|
| MeasurementUnitId | integer |
None. |
|
| Dose | string |
None. |
|
| MRP | decimal number |
None. |
|
| ActiveStatus | boolean |
None. |
|
| IsApproved | boolean |
None. |
|
| MedicineUses | Collection of MedicineUs |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"SearchName": "sample string 3",
"MedicineForm": "sample string 4",
"MedicineTypeId": 5,
"GroupId": 6,
"CompanyId": 7,
"MedicinePackSize": 8,
"MeasurementUnitId": 9,
"Dose": "sample string 10",
"MRP": 11.0,
"ActiveStatus": true,
"IsApproved": true,
"MedicineUses": [
{
"Id": 1,
"MedicineListId": 2,
"UsedAt": "2025-12-06T10:22:06.4617289+06:00",
"TotalAmount": 4.0,
"BatchInfoId": 5,
"FarmId": 6,
"OwnerId": 7,
"CreatedAt": "2025-12-06T10:22:06.4617289+06:00",
"UpdatedAt": "2025-12-06T10:22:06.4617289+06:00",
"DeletedAt": "2025-12-06T10:22:06.4617289+06:00",
"DeletedBy": 10,
"CreatedBy": 11,
"UpdatedBy": 12,
"DeletedStatus": true
},
{
"Id": 1,
"MedicineListId": 2,
"UsedAt": "2025-12-06T10:22:06.4617289+06:00",
"TotalAmount": 4.0,
"BatchInfoId": 5,
"FarmId": 6,
"OwnerId": 7,
"CreatedAt": "2025-12-06T10:22:06.4617289+06:00",
"UpdatedAt": "2025-12-06T10:22:06.4617289+06:00",
"DeletedAt": "2025-12-06T10:22:06.4617289+06:00",
"DeletedBy": 10,
"CreatedBy": 11,
"UpdatedBy": 12,
"DeletedStatus": true
}
]
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MedicineList| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| SearchName | string |
None. |
|
| MedicineForm | string |
None. |
|
| MedicineTypeId | integer |
None. |
|
| GroupId | integer |
None. |
|
| CompanyId | integer |
None. |
|
| MedicinePackSize | integer |
None. |
|
| MeasurementUnitId | integer |
None. |
|
| Dose | string |
None. |
|
| MRP | decimal number |
None. |
|
| ActiveStatus | boolean |
None. |
|
| IsApproved | boolean |
None. |
|
| MedicineUses | Collection of MedicineUs |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"SearchName": "sample string 3",
"MedicineForm": "sample string 4",
"MedicineTypeId": 5,
"GroupId": 6,
"CompanyId": 7,
"MedicinePackSize": 8,
"MeasurementUnitId": 9,
"Dose": "sample string 10",
"MRP": 11.0,
"ActiveStatus": true,
"IsApproved": true,
"MedicineUses": [
{
"Id": 1,
"MedicineListId": 2,
"UsedAt": "2025-12-06T10:22:06.5242857+06:00",
"TotalAmount": 4.0,
"BatchInfoId": 5,
"FarmId": 6,
"OwnerId": 7,
"CreatedAt": "2025-12-06T10:22:06.5242857+06:00",
"UpdatedAt": "2025-12-06T10:22:06.5242857+06:00",
"DeletedAt": "2025-12-06T10:22:06.5242857+06:00",
"DeletedBy": 10,
"CreatedBy": 11,
"UpdatedBy": 12,
"DeletedStatus": true
},
{
"Id": 1,
"MedicineListId": 2,
"UsedAt": "2025-12-06T10:22:06.5242857+06:00",
"TotalAmount": 4.0,
"BatchInfoId": 5,
"FarmId": 6,
"OwnerId": 7,
"CreatedAt": "2025-12-06T10:22:06.5242857+06:00",
"UpdatedAt": "2025-12-06T10:22:06.5242857+06:00",
"DeletedAt": "2025-12-06T10:22:06.5242857+06:00",
"DeletedBy": 10,
"CreatedBy": 11,
"UpdatedBy": 12,
"DeletedStatus": true
}
]
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.