Create order
/v1/ordersCreates one unsigned order with 1–20 prescriptions for one patient in one practice. Supply patientId or patient; inline patient creation requires patients:write. Prescriber is optional: select by npi, provider id, or integration-scoped externalId, or leave the draft unassigned until signing. First-use prescriber registration requires team:write. Legacy userId is supported but cannot be combined with prescriber. Idempotency-Key is required.
Request example
Replace example values with your Test data. Check the field rules below before you send a request.
{
"practiceId": "prac_01j2y8m6jcc9tt24af5pw9x1bc",
"userId": "user_01j2y8m6jcc9tt24af5pw9x1bc",
"prescriber": {
"id": "prov_01j2y8m6jcc9tt24af5pw9x1bc",
"npi": "<string>",
"externalId": "<string>",
"profile": {
"email": "<string>",
"phone": "<string>"
}
},
"otcItems": [
{
"catalogItemId": "cat_01j2y8m6jcc9tt24af5pw9x1bc",
"quantity": 1
}
],
"externalOrderId": "<string>",
"metadata": "<string>",
"patientId": "pat_01j2y8m6jcc9tt24af5pw9x1bc",
"patient": {
"address": {
"city": "<string>",
"line1": "<string>",
"line2": null,
"postalCode": "<string>",
"state": "<string>",
"country": "US"
},
"clinicalProfile": {
"currentMedications": [
"<string>"
],
"heightInches": 0,
"reviewedAt": "<string>",
"weightPounds": 0
},
"dateOfBirth": "<string>",
"email": "<string>",
"externalId": "<string>",
"externalIdentities": [
{
"source": "<string>",
"value": "<string>"
}
],
"addresses": [
{
"id": "addr_01j2y8m6jcc9tt24af5pw9x1bc",
"address": {
"city": "<string>",
"country": "US",
"line1": "<string>",
"line2": null,
"postalCode": "<string>",
"state": "<string>"
},
"label": "<string>",
"preferredShipping": false,
"recipientName": "<string>"
}
],
"encounters": [
{
"notes": "<string>",
"occurredAt": "<string>",
"providerName": "<string>",
"type": "<string>"
}
],
"gender": "f",
"locationId": "loc_01j2y8m6jcc9tt24af5pw9x1bc",
"metadata": "<string>",
"medicalRecordNumber": "<string>",
"measurements": [
{
"heightCentimeters": 0,
"recordedAt": "<string>",
"source": "<string>",
"weightKilograms": 0
}
],
"name": {
"first": "<string>",
"last": "<string>",
"middle": "<string>",
"preferred": "<string>"
},
"phone": "<string>",
"programs": [
{
"endedAt": "<string>",
"name": "<string>",
"startedAt": "<string>",
"status": "active"
}
]
},
"shippingAddressId": "addr_01j2y8m6jcc9tt24af5pw9x1bc",
"prescriptions": [
{
"externalPrescriptionId": "<string>",
"clinical": {
"compoundingReason": {
"category": "alcohol_free",
"context": "<string>"
},
"medicationReviewStatus": "not_reviewed",
"diagnosisReviewStatus": "not_reviewed",
"currentMedications": [
"<string>"
],
"diagnoses": [
{
"code": "<string>",
"display": "<string>"
}
],
"observations": [
{
"display": "<string>",
"unit": "<string>",
"value": null
}
]
},
"pharmacyId": "pharm_01j2y8m6jcc9tt24af5pw9x1bc",
"daysSupply": 1,
"dispensing": {
"dispenseUponAcceptance": false,
"shippingOptionId": "shp_01j2y8m6jcc9tt24af5pw9x1bc",
"shippingAmountCents": 0,
"shippingDestinationType": "patient",
"pharmacyNotes": "<string>",
"requestedFillDate": "<string>",
"substitutionPermitted": false
},
"directions": "<string>",
"medicationId": "cat_01j2y8m6jcc9tt24af5pw9x1bc",
"quantity": 0,
"quantityUnit": "<string>",
"refills": 0,
"structuredSig": {
"dose": "<string>",
"doseUnit": "<string>",
"duration": "<string>",
"frequency": "<string>",
"indication": "<string>",
"maxDailyUse": "<string>",
"prn": false,
"route": "<string>",
"titrationSchedule": "<string>"
}
}
]
}curl -X POST 'https://api.affinityrx.com/v1/orders' \
-H "Authorization: Bearer $AFFINITY_API_KEY" \
-H 'Affinity-Version: 2026-09-28' \
-H 'Idempotency-Key: <Idempotency-Key>' \
-H 'Content-Type: application/json' \
--data @request.jsonResponse example
These examples show the body structure. Values can differ. Select a status code to see its response.
{
"revision": "<string>",
"otcItems": [
{
"catalogItemId": "cat_01j2y8m6jcc9tt24af5pw9x1bc",
"name": "<string>",
"quantity": 0,
"unitPriceCents": 0,
"subtotalCents": 0
}
],
"externalOrderId": "<string>",
"metadata": "<string>",
"createdAt": "<string>",
"id": "ord_01j2y8m6jcc9tt24af5pw9x1bc",
"livemode": false,
"object": "order",
"patientId": "pat_01j2y8m6jcc9tt24af5pw9x1bc",
"practiceId": "prac_01j2y8m6jcc9tt24af5pw9x1bc",
"prescriptions": [
{
"pharmacyId": "pharm_01j2y8m6jcc9tt24af5pw9x1bc",
"externalPrescriptionId": "<string>",
"createdAt": "<string>",
"directions": "<string>",
"version": "<string>",
"id": "rx_01j2y8m6jcc9tt24af5pw9x1bc",
"medicationId": "cat_01j2y8m6jcc9tt24af5pw9x1bc",
"medicationName": "<string>",
"object": "prescription",
"quantity": 0,
"quantityUnit": "<string>",
"refills": 0,
"status": "requires_provider_signature"
}
],
"userId": "user_01j2y8m6jcc9tt24af5pw9x1bc",
"status": "requires_provider_signature"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 400,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 401,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 403,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 404,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 409,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 422,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 429,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}{
"code": "<string>",
"data": "<string>",
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 503,
"title": "<string>",
"traceId": "<string>",
"type": "<string>"
}Implementation specification
Use these field types and limits to build your integration. Download the OpenAPI document for the complete contract.
Headers
Affinity-VersionstringSelects the HTTP API contract for this request only. When omitted, API-key requests use their service account’s stored version. Does not change the stored default.
Pin requests to 2026-09-28.
Idempotency-KeystringrequiredAffinity-Actor-IdstringRequired for user actors and optional for system actors. Omit both actor headers to use the authenticated service account as a system actor.
Affinity-Actor-TypestringUse user when a person initiated the action and system for autonomous work. Omit both actor headers to default to system.
Request body specification application/json
practiceIdstringrequiredPattern: ^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$
userIdstring | nullShow userId fields
Any of · 1: string
string
Pattern: ^user_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
prescriberobject | nullShow prescriber fields
Any of · 1: object
idstring | nullShow id fields
Any of · 1: string
string
Pattern: ^prov_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
npistring | nullShow npi fields
Any of · 1: string
string
Any of · 2: null
null
externalIdstring | nullShow externalId fields
Any of · 1: string
string
Any of · 2: null
null
profileobject | nullShow profile fields
Any of · 1: object
emailstring | nullShow email fields
Any of · 1: string
string
Pattern: ^[^\s@]+@[^\s@]+\.[^\s@]+$
Any of · 2: null
null
phonestring | nullShow phone fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
Any of · 2: null
null
otcItemsobject[] | nullShow otcItems fields
Any of · 1: object[]
Array items · object
catalogItemIdstringrequiredPattern: ^cat_[0-7][0-9a-hjkmnp-tv-z]{25}$
quantityintegerrequiredMinimum: 1
Maximum: 100
Any of · 2: null
null
externalOrderIdany | nullShow externalOrderId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\p{Cs}]*$
Any of · 2: null
null
metadataobject | nullShow metadata fields
Any of · 1: object
Additional properties
Any of · 1: string
string
Maximum length: 500
Pattern: ^[^\p{Cs}]*$
Any of · 2: number
number
Any of · 3: boolean
boolean
Any of · 4: null
null
object
Any of · 2: null
null
patientIdstring | nullShow patientId fields
Any of · 1: string
string
Pattern: ^pat_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
patientobject | nullShow patient fields
Any of · 1: object
addressobject | null | nullShow address fields
Any of · 1: object | null
Any of · 1: object
cityanyrequiredPattern: ^[^\u0000\p{Cs}]*$
Show city fields
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
line1anyrequiredPattern: ^[^\u0000\p{Cs}]*$
Show line1 fields
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
line2any | null | nullShow line2 fields
Any of · 1: any | null
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
Any of · 2: null
null
Any of · 2: null
null
postalCodestringrequiredstatestringrequiredcountrystring | nullShow country fields
Any of · 1: string
string
Allowed: "US"
Any of · 2: null
null
Any of · 2: null
null
Any of · 2: null
null
clinicalProfileobject | nullShow clinicalProfile fields
Any of · 1: object
currentMedicationsstring[]requiredMaximum items: 100
Show currentMedications fields
Array items · string
string
Pattern: ^[^\u0000\p{Cs}]*$
heightInchesnumber | string | null | nullShow heightInches fields
Any of · 1: number | string | null
Any of · 1: number | string
Any of · 1: number
number
Greater than: 0
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
Any of · 2: null
null
Any of · 2: null
null
reviewedAtstring | null | nullShow reviewedAt fields
Any of · 1: string | null
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
weightPoundsnumber | string | null | nullShow weightPounds fields
Any of · 1: number | string | null
Any of · 1: number | string
Any of · 1: number
number
Greater than: 0
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
Any of · 2: null
null
Any of · 2: null
null
Any of · 2: null
null
dateOfBirthstringrequiredPattern: ^\d{4}-\d{2}-\d{2}$
emailstring | null | nullShow email fields
Any of · 1: string | null
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
externalIdstring | nullShow externalId fields
Any of · 1: string
string
Pattern: ^[^\u0000\p{Cs}]*$
Any of · 2: null
null
externalIdentitiesobject[] | nullShow externalIdentities fields
Any of · 1: object[]
Array items · object
sourcestringrequiredPattern: ^[^\u0000\p{Cs}]*$
valuestringrequiredPattern: ^[^\u0000\p{Cs}]*$
Any of · 2: null
null
addressesobject[] | nullShow addresses fields
Any of · 1: object[]
Array items · object
idstring | nullShow id fields
Any of · 1: string
string
Pattern: ^addr_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
addressobjectrequiredNo additional properties
Show address fields
cityanyrequiredPattern: ^[^\u0000\p{Cs}]*$
Show city fields
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
countrystring | nullShow country fields
Any of · 1: string
string
Allowed: "US"
Any of · 2: null
null
line1anyrequiredPattern: ^[^\u0000\p{Cs}]*$
Show line1 fields
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
line2any | null | nullShow line2 fields
Any of · 1: any | null
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
Any of · 2: null
null
Any of · 2: null
null
postalCodestringrequiredstatestringrequiredlabelstringrequiredPattern: ^[^\u0000\p{Cs}]*$
preferredShippingbooleanrequiredrecipientNameany | nullrequiredShow recipientName fields
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
Any of · 2: null
null
Any of · 2: null
null
encountersobject[] | nullShow encounters fields
Any of · 1: object[]
Array items · object
notesstring | nullrequiredShow notes fields
Any of · 1: string
string
Maximum length: 5000
Pattern: ^[^\u0000\p{Cs}]*$
Any of · 2: null
null
occurredAtstringrequiredproviderNamestring | nullrequiredShow providerName fields
Any of · 1: string
string
Pattern: ^[^\u0000\p{Cs}]*$
Any of · 2: null
null
typestringrequiredPattern: ^[^\u0000\p{Cs}]*$
Any of · 2: null
null
genderstring | nullShow gender fields
Any of · 1: string
string
Allowed: "f", "m", "o", "u"
Any of · 2: null
null
locationIdstring | nullShow locationId fields
Any of · 1: string
string
Pattern: ^loc_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
metadataobject | nullShow metadata fields
Any of · 1: object
object
Any of · 2: null
null
medicalRecordNumberstring | null | nullShow medicalRecordNumber fields
Any of · 1: string | null
Any of · 1: string
string
Pattern: ^[^\u0000\p{Cs}]*$
Any of · 2: null
null
Any of · 2: null
null
measurementsobject[] | nullShow measurements fields
Any of · 1: object[]
Array items · object
heightCentimetersnumber | string | nullrequiredShow heightCentimeters fields
Any of · 1: number | string
Any of · 1: number
number
Greater than: 0
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
Any of · 2: null
null
recordedAtstringrequiredsourcestringrequiredPattern: ^[^\u0000\p{Cs}]*$
weightKilogramsnumber | string | nullrequiredShow weightKilograms fields
Any of · 1: number | string
Any of · 1: number
number
Greater than: 0
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
Any of · 2: null
null
Any of · 2: null
null
nameobjectrequiredNo additional properties
Show name fields
firstanyrequiredPattern: ^[^\u0000\p{Cs}]*$
Show first fields
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
lastanyrequiredPattern: ^[^\u0000\p{Cs}]*$
Show last fields
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
middleany | null | nullShow middle fields
Any of · 1: any | null
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
Any of · 2: null
null
Any of · 2: null
null
preferredany | null | nullShow preferred fields
Any of · 1: any | null
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\u200B\u2028-\u202E\u2066-\u2069]*$
Any of · 2: null
null
Any of · 2: null
null
phonestring | null | nullShow phone fields
Any of · 1: string | null
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
programsobject[] | nullShow programs fields
Any of · 1: object[]
Array items · object
endedAtstring | nullrequiredShow endedAt fields
Any of · 1: string
string
Any of · 2: null
null
namestringrequiredPattern: ^[^\u0000\p{Cs}]*$
startedAtstringrequiredstatusstringrequiredAllowed: "active", "completed", "paused"
Any of · 2: null
null
Any of · 2: null
null
shippingAddressIdstring | nullShow shippingAddressId fields
Any of · 1: string
string
Pattern: ^addr_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
prescriptionsobject[]requiredMinimum items: 1
Maximum items: 20
Show prescriptions fields
Array items · object
externalPrescriptionIdany | nullShow externalPrescriptionId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\p{Cs}]*$
Any of · 2: null
null
clinicalobject | nullShow clinical fields
Any of · 1: object
compoundingReasonobject | nullShow compoundingReason fields
Any of · 1: object
categorystring | nullShow category fields
Any of · 1: string
string
Allowed: "alcohol_free", "drug_shortage", "commercial_product_discontinued", "modified_release", "inactive_ingredient_sensitivity", "inactive_ingredient_toxicity", "concentration_adjustment", "alternate_route", "dosage_form_unavailable", "flavor_adjustment", "tablet_burden", "patient_cannot_use_commercial_product", "no_approved_product_available", "no_rationale_required", "other_patient_specific_need"
Any of · 2: null
null
contextstring | nullShow context fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
medicationReviewStatusstring | nullShow medicationReviewStatus fields
Any of · 1: string
string
Allowed: "not_reviewed", "none", "recorded"
Any of · 2: null
null
diagnosisReviewStatusstring | nullShow diagnosisReviewStatus fields
Any of · 1: string
string
Allowed: "not_reviewed", "none", "recorded"
Any of · 2: null
null
currentMedicationsstring[] | nullShow currentMedications fields
Any of · 1: string[]
Array items · string
string
Any of · 2: null
null
diagnosesobject[] | nullShow diagnoses fields
Any of · 1: object[]
Array items · object
codestringrequireddisplaystringrequiredAny of · 2: null
null
observationsobject[] | nullShow observations fields
Any of · 1: object[]
Array items · object
displaystringrequiredunitstringrequiredvaluenumber | stringrequiredShow value fields
Any of · 1: number
number
Greater than: 0
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
Any of · 2: null
null
Any of · 2: null
null
pharmacyIdstring | nullShow pharmacyId fields
Any of · 1: string
string
Pattern: ^pharm_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
daysSupplyintegerrequiredMinimum: 1
Maximum: 365
dispensingobjectrequiredNo additional properties
Show dispensing fields
dispenseUponAcceptanceboolean | nullShow dispenseUponAcceptance fields
Any of · 1: boolean
boolean
Any of · 2: null
null
shippingOptionIdstring | nullShow shippingOptionId fields
Any of · 1: string
string
Pattern: ^shp_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
shippingAmountCentsinteger | nullReviewed customer shipping rate for the selected service. Preview supplies this value. Shared group rates must not be summed per prescription.
Show shippingAmountCents fields
Any of · 1: integer
integer
Minimum: 0
Any of · 2: null
null
shippingDestinationTypestring | nullShow shippingDestinationType fields
Any of · 1: string
string
Allowed: "patient"
Any of · 2: null
null
pharmacyNotesstring | nullShow pharmacyNotes fields
Any of · 1: string
string
Any of · 2: null
null
requestedFillDatestring | nullShow requestedFillDate fields
Any of · 1: string
string
Pattern: ^\d{4}-\d{2}-\d{2}$
Any of · 2: null
null
substitutionPermittedboolean | nullShow substitutionPermitted fields
Any of · 1: boolean
boolean
Any of · 2: null
null
directionsstringrequiredmedicationIdstringrequiredPattern: ^cat_[0-7][0-9a-hjkmnp-tv-z]{25}$
quantitynumber | stringrequiredShow quantity fields
Any of · 1: number
number
Maximum: 100000
Greater than: 0
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
quantityUnitstringrequiredrefillsintegerrequiredMinimum: 0
Maximum: 99
structuredSigobject | nullShow structuredSig fields
Any of · 1: object
dosestringrequireddoseUnitstringrequireddurationstring | nullShow duration fields
Any of · 1: string
string
Any of · 2: null
null
frequencystringrequiredindicationstring | nullShow indication fields
Any of · 1: string
string
Any of · 2: null
null
maxDailyUsestring | nullShow maxDailyUse fields
Any of · 1: string
string
Any of · 2: null
null
prnboolean | nullShow prn fields
Any of · 1: boolean
boolean
Any of · 2: null
null
routestringrequiredtitrationSchedulestring | nullShow titrationSchedule fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
Response specifications
200Successful response
application/json
revisionstringrequiredOpaque revision of the complete order prescription set. Send the revision you reviewed as expectedRevision; never replace it automatically after a conflict.
Pattern: ^rev_[a-f0-9]{64}$
otcItemsobject[]requiredShow otcItems fields
Array items · object
catalogItemIdanyrequiredShow catalogItemId fields
All of · 1: any
any
Pattern: ^cat_[0-7][0-9a-hjkmnp-tv-z]{25}$
namestringrequiredquantityintegerrequiredunitPriceCentsintegerrequiredsubtotalCentsintegerrequiredexternalOrderIdany | nullrequiredShow externalOrderId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^[^\p{Cc}\p{Cs}]*$
Any of · 2: null
null
metadataany & anyrequiredShow metadata fields
All of · 1: any
any
All of · 2: any
any
Additional properties
Any of · 1: any & any
All of · 1: any
any
Pattern: ^[^\p{Cs}]*$
All of · 2: any
any
Maximum length: 500
Any of · 2: number
number
Any of · 3: boolean
boolean
Any of · 4: null
null
createdAtstringrequiredidstringrequiredPattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$
livemodebooleanrequiredobjectstringrequiredAllowed: "order"
patientIdstringrequiredPattern: ^pat_[0-7][0-9a-hjkmnp-tv-z]{25}$
practiceIdstringrequiredPattern: ^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$
prescriptionsobject[]requiredShow prescriptions fields
Array items · object
pharmacyIdanyrequiredShow pharmacyId fields
All of · 1: any
any
Pattern: ^pharm_[0-7][0-9a-hjkmnp-tv-z]{25}$
externalPrescriptionIdany & any & any & any | nullrequiredShow externalPrescriptionId fields
Any of · 1: any & any & any & any
All of · 1: any
any
Minimum length: 1
All of · 2: any
any
Maximum length: 200
All of · 3: any
any
Pattern: \S
All of · 4: any
any
Pattern: ^[^\p{Cc}\p{Cs}]*$
Any of · 2: null
null
createdAtstringrequireddirectionsstringrequiredversionanyrequiredShow version fields
All of · 1: any
any
Minimum: 1
idanyrequiredShow id fields
All of · 1: any
any
Pattern: ^rx_[0-7][0-9a-hjkmnp-tv-z]{25}$
medicationIdany | nullrequiredShow medicationId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^cat_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
medicationNamestringrequiredobjectstringrequiredAllowed: "prescription"
quantitynumber | stringrequiredShow quantity fields
Any of · 1: number
number
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
quantityUnitstringrequiredrefillsintegerrequiredstatusstringrequiredAllowed: "requires_provider_signature"
userIdstring | nullrequiredShow userId fields
Any of · 1: string
string
Pattern: ^user_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
statusstringrequiredAllowed: "requires_provider_signature"
400HTTP 400
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
401Unauthorized
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
403Forbidden
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
404Not found
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
409Conflict
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
422Validation error
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
429Too many requests
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri
503HTTP 503
application/json
codestringrequireddataobjectdetailstringrequiredinstancestringrequiredrequestIdstringrequiredstatusintegerrequiredMinimum: 400
Maximum: 599
titlestringrequiredtraceIdstringtypestringrequiredFormat: uri