POST api/MedicineBuyHistories/BuyFromPrescription
Request Information
URI Parameters
None.
Body Parameters
PrescriptionBuyItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| PrescriptionId | integer |
None. |
|
| MedicineListId | integer |
None. |
|
| BuyStatus | boolean |
None. |
|
| TotalQuantity | decimal number |
None. |
|
| TotalPrice | decimal number |
None. |
|
| BuyAt | date |
None. |
|
| FarmId | integer |
None. |
|
| OwnerId | integer |
None. |
|
| CreatedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"PrescriptionId": 2,
"MedicineListId": 3,
"BuyStatus": true,
"TotalQuantity": 5.0,
"TotalPrice": 6.0,
"BuyAt": "2025-12-06T10:23:40.9799357+06:00",
"FarmId": 8,
"OwnerId": 9,
"CreatedBy": 10
}
application/xml, text/xml
Sample:
<PrescriptionBuyItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.ViewModels"> <BuyAt>2025-12-06T10:23:40.9799357+06:00</BuyAt> <BuyStatus>true</BuyStatus> <CreatedBy>10</CreatedBy> <FarmId>8</FarmId> <Id>1</Id> <MedicineListId>3</MedicineListId> <OwnerId>9</OwnerId> <PrescriptionId>2</PrescriptionId> <TotalPrice>6</TotalPrice> <TotalQuantity>5</TotalQuantity> </PrescriptionBuyItem>
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.