Properties
| Name | Type | Description |
|---|---|---|
| limit | integer | Maximum records per page, from 1 to 100. Defaults to 25. |
| startingAfter | string | Page forward using the previous response's nextCursor. Keep the same filters, sort, organization and mode. |
| externalOrderId | string | Match the external order ID exactly, including case. Combine with practiceId when your platform reuses IDs across practices. |
| updatedAfter | string | Return orders whose updatedAt is strictly later than this ISO 8601 timestamp. Sorting stays by creation time and ID unless sort is supplied. Keep this cutoff unchanged while paging. |
| patientId | string | Limit results to the patient with this pat_ ID. |
| practiceId | string | Limit results to the practice with this prac_ ID, within your authorized practices. |
| query | string | Search saved order snapshots and tracking numbers: patient names, email, phone, date of birth (1985-03-02, 03/02/1985, 3/2/1985 or 03021985) and external ID; order external ID; prescriber name and NPI |
| status | string | Return only orders with this status. Omit to include all statuses. |
| cancelRequested | booleannull | true returns only submitted or processing orders with a cancel the pharmacy has not confirmed yet (cancelRequestedAt set). false leaves those orders out. Omit to include both. Null counts as omitted. |
| recentlyShipped | booleannull | true returns only orders whose status is shipped and that shipped in the last 60 days; delivered orders are excluded. false leaves those orders out. Omit to include both. Null counts as omitted. |
| sort | string | patient sorts the lowercase text firstName + space + lastName A to Z, then order ID; created sorts oldest first. A _desc suffix reverses the order. Defaults to created_desc. Restart pagination after c |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/affinityrx-com/json-schema/affinityrx-com-order-search-schema.json",
"title": "OrderSearch",
"x-generated": "2026-11-23",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/affinityrx-com-openapi.json#/components/schemas/OrderSearch",
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Maximum records per page, from 1 to 100. Defaults to 25.",
"default": 25
},
"startingAfter": {
"type": "string",
"maxLength": 2048,
"description": "Page forward using the previous response's nextCursor. Keep the same filters, sort, organization and mode."
},
"externalOrderId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"description": "Match the external order ID exactly, including case. Combine with practiceId when your platform reuses IDs across practices."
},
"updatedAfter": {
"type": "string",
"format": "date-time",
"description": "Return orders whose updatedAt is strictly later than this ISO 8601 timestamp. Sorting stays by creation time and ID unless sort is supplied. Keep this cutoff unchanged while paging."
},
"patientId": {
"type": "string",
"pattern": "^pat_[0-7][0-9a-hjkmnp-tv-z]{25}$",
"description": "Limit results to the patient with this pat_ ID."
},
"practiceId": {
"type": "string",
"pattern": "^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$",
"description": "Limit results to the practice with this prac_ ID, within your authorized practices."
},
"query": {
"type": "string",
"maxLength": 120,
"description": "Search saved order snapshots and tracking numbers: patient names, email, phone, date of birth (1985-03-02, 03/02/1985, 3/2/1985 or 03021985) and external ID; order external ID; prescriber name and NPI; medication names and brands; pharmacy name; each shipment's tracking number. Whole ord_ and pat_ IDs and six-character order numbers also match. Text matches ignore case and allow substrings, word prefixes and similar spellings for alphanumeric words of four or more characters. Every word containing letters or numbers must match, so each word narrows the list; punctuation-only words are ignored. An empty or punctuation-only query leaves the list unfiltered. Separate strength fields, practice names, prac_ IDs and rx_ IDs are not searched. Restart pagination when filters change."
},
"status": {
"type": "string",
"enum": [
"awaiting_approval",
"submitted",
"processing",
"shipped",
"delivered",
"cancelled",
"failed"
],
"description": "Return only orders with this status. Omit to include all statuses."
},
"cancelRequested": {
"type": [
"boolean",
"null"
],
"description": "true returns only submitted or processing orders with a cancel the pharmacy has not confirmed yet (cancelRequestedAt set). false leaves those orders out. Omit to include both. Null counts as omitted."
},
"recentlyShipped": {
"type": [
"boolean",
"null"
],
"description": "true returns only orders whose status is shipped and that shipped in the last 60 days; delivered orders are excluded. false leaves those orders out. Omit to include both. Null counts as omitted."
},
"sort": {
"type": "string",
"enum": [
"patient",
"patient_desc",
"created",
"created_desc"
],
"description": "patient sorts the lowercase text firstName + space + lastName A to Z, then order ID; created sorts oldest first. A _desc suffix reverses the order. Defaults to created_desc. Restart pagination after changing sort."
}
},
"additionalProperties": false
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/affinityrx-com-order-search"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.