---
title: "POST /prescription:search"
method: POST
path: "/prescription:search"
tags: ["Prescriptions"]
---

# POST /prescription:search

`POST /prescription:search`

Search for Prescriptions across all parties by intersecting geometry.

## Query parameters

- `skipToken` string
- `maxPageSize` integer
- `api-version` string, required

## Request body

- SearchPrescriptionQuery — Get Zones query parameters.
  - `prescriptionMapIds` string[] — Prescription Map Ids of the resource.
  - `types` string[] — Types of the resource.
  - `productCodes` string[] — Product Codes of the resource.
  - `productNames` string[] — Product Names of the resource.
  - `sources` string[] — Sources of the resource.
  - `ids` string[] — Ids of the resource.
  - `names` string[] — Names of the resource.
  - `propertyFilters` string[] — Filters on key-value pairs within the Properties object. e.g. "{testKey} eq {testValue}".
  - `statuses` string[] — Statuses of the resource.
  - `minCreatedDateTime` string, date-time — Minimum creation date of resource (inclusive).
  - `maxCreatedDateTime` string, date-time — Maximum creation date of resource (inclusive).
  - `minLastModifiedDateTime` string, date-time — Minimum last modified date of resource (inclusive).
  - `maxLastModifiedDateTime` string, date-time — Maximum last modified date of resource (inclusive).
  - `intersectsWithGeometry` GeoJsonObject — GeoJSON (For more details: https://geojson.org/). Note: Coordinates are expected in [Longitude, Latitude] format.
    - `type` 'Point' | 'Polygon' | 'MultiPolygon', required — GeoJSON object type.
  - `partyId` string — Party ID which belongs to the operation data.

## Response `200`

Success

- PrescriptionMetaDataListResponse — Paged response contains list of requested objects and a skipToken to get the next set of results.
  - `value` PrescriptionMetaData[], required — List of requested objects.
    - `partyId` string — Party Id.
    - `prescriptionMapId` string — Prescription map Id.
    - `productCode` string — Product Code.
    - `productName` string — Product name.
    - `type` string — Prescription type.
    - `measurements` object — Measures.
    - `id` string — Unique resource ID.
    - `eTag` string — The ETag value to implement optimistic concurrency.
    - `status` string — Status of the resource.
    - `createdDateTime` string, date-time — Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
    - `modifiedDateTime` string, date-time — Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
    - `source` string — Source of the resource.
    - `name` string — Name to identify resource.
    - `description` string — Textual description of the resource.
    - `createdBy` string — Created by user/tenant id.
    - `modifiedBy` string — Modified by user/tenant id.
    - `properties` object — A collection of key value pairs that belongs to the resource. Each pair must not have a key greater than 50 characters and must not have a value greater than 150 characters. Note: A maximum of 25 key value pairs can be provided for a resource and only string, numeral and datetime (yyyy-MM-ddTHH:mm:ssZ) values are supported.
  - `skipToken` string — Token used in retrieving the next page. If null, there are no additional pages.
  - `nextLink` string — Continuation link (absolute URI) to the next page of results in the list.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/azure/apis/agrifood-agfoodplatform.md) · [All operations](https://skmtc.net/azure/apis/agrifood-agfoodplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/agrifood-agfoodplatform/revisions/33cf1de6e0c4/schema)
