GET api/Prescriptions

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Prescription
NameDescriptionTypeAdditional information
Id

integer

None.

FarmId

integer

None.

BatchInfoId

integer

None.

MedicationHistory

integer

None.

Disease

string

None.

Suggestion

string

None.

ReportingAt

date

None.

PrescribedBy

integer

None.

ActiveStatus

boolean

None.

BuyStatus

boolean

None.

CreatedAt

date

None.

UpdatedAt

date

None.

DeletedAt

date

None.

DeletedBy

integer

None.

CreatedBy

integer

None.

UpdatedBy

integer

None.

DeletedStatus

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "FarmId": 2,
    "BatchInfoId": 3,
    "MedicationHistory": 4,
    "Disease": "sample string 5",
    "Suggestion": "sample string 6",
    "ReportingAt": "2025-12-06T10:21:48.1685678+06:00",
    "PrescribedBy": 8,
    "ActiveStatus": true,
    "BuyStatus": true,
    "CreatedAt": "2025-12-06T10:21:48.1685678+06:00",
    "UpdatedAt": "2025-12-06T10:21:48.1685678+06:00",
    "DeletedAt": "2025-12-06T10:21:48.1685678+06:00",
    "DeletedBy": 13,
    "CreatedBy": 14,
    "UpdatedBy": 15,
    "DeletedStatus": true
  },
  {
    "Id": 1,
    "FarmId": 2,
    "BatchInfoId": 3,
    "MedicationHistory": 4,
    "Disease": "sample string 5",
    "Suggestion": "sample string 6",
    "ReportingAt": "2025-12-06T10:21:48.1685678+06:00",
    "PrescribedBy": 8,
    "ActiveStatus": true,
    "BuyStatus": true,
    "CreatedAt": "2025-12-06T10:21:48.1685678+06:00",
    "UpdatedAt": "2025-12-06T10:21:48.1685678+06:00",
    "DeletedAt": "2025-12-06T10:21:48.1685678+06:00",
    "DeletedBy": 13,
    "CreatedBy": 14,
    "UpdatedBy": 15,
    "DeletedStatus": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfPrescription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <Prescription>
    <ActiveStatus>true</ActiveStatus>
    <BatchInfoId>3</BatchInfoId>
    <BuyStatus>true</BuyStatus>
    <CreatedAt>2025-12-06T10:21:48.1685678+06:00</CreatedAt>
    <CreatedBy>14</CreatedBy>
    <DeletedAt>2025-12-06T10:21:48.1685678+06:00</DeletedAt>
    <DeletedBy>13</DeletedBy>
    <DeletedStatus>true</DeletedStatus>
    <Disease>sample string 5</Disease>
    <FarmId>2</FarmId>
    <Id>1</Id>
    <MedicationHistory>4</MedicationHistory>
    <PrescribedBy>8</PrescribedBy>
    <ReportingAt>2025-12-06T10:21:48.1685678+06:00</ReportingAt>
    <Suggestion>sample string 6</Suggestion>
    <UpdatedAt>2025-12-06T10:21:48.1685678+06:00</UpdatedAt>
    <UpdatedBy>15</UpdatedBy>
  </Prescription>
  <Prescription>
    <ActiveStatus>true</ActiveStatus>
    <BatchInfoId>3</BatchInfoId>
    <BuyStatus>true</BuyStatus>
    <CreatedAt>2025-12-06T10:21:48.1685678+06:00</CreatedAt>
    <CreatedBy>14</CreatedBy>
    <DeletedAt>2025-12-06T10:21:48.1685678+06:00</DeletedAt>
    <DeletedBy>13</DeletedBy>
    <DeletedStatus>true</DeletedStatus>
    <Disease>sample string 5</Disease>
    <FarmId>2</FarmId>
    <Id>1</Id>
    <MedicationHistory>4</MedicationHistory>
    <PrescribedBy>8</PrescribedBy>
    <ReportingAt>2025-12-06T10:21:48.1685678+06:00</ReportingAt>
    <Suggestion>sample string 6</Suggestion>
    <UpdatedAt>2025-12-06T10:21:48.1685678+06:00</UpdatedAt>
    <UpdatedBy>15</UpdatedBy>
  </Prescription>
</ArrayOfPrescription>