Cancel order
/v1/orders/{orderId}/cancelRequests cancellation. HTTP 200 means the request was handled; check cancellation.status for confirmed, pending, partial, or failed. Only confirmed means the entire order is cancelled. Shipment possession makes a fulfillment cancellation too late.
Request example
Replace example values with your Test data. Check the field rules below before you send a request.
{
"reason": "<string>"
}curl -X POST 'https://api.affinityrx.com/v1/orders/{orderId}/cancel' \
-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",
"prescriptionId": "rx_01j2y8m6jcc9tt24af5pw9x1bc",
"name": "<string>",
"quantity": 0,
"unitPriceCents": 0,
"subtotalCents": 0
}
],
"practiceMedicationTotalCents": 0,
"externalOrderId": "<string>",
"metadata": "<string>",
"createdAt": "<string>",
"fulfillments": [
{
"carrier": "<string>",
"cancellations": [
{
"attempts": 0,
"confirmedAt": "<string>",
"createdAt": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"id": "cancl_01j2y8m6jcc9tt24af5pw9x1bc",
"providerStatus": "<string>",
"reason": "<string>",
"requestedAt": "<string>",
"requestedBy": {
"id": "<string>",
"type": "<string>"
},
"resolvedAt": "<string>",
"sentAt": "<string>",
"source": "provider",
"status": "requested",
"updatedAt": "<string>"
}
],
"pharmacyId": "pharm_01j2y8m6jcc9tt24af5pw9x1bc",
"createdAt": "<string>",
"id": "ord_01j2y8m6jcc9tt24af5pw9x1bc",
"prescriptionId": "rx_01j2y8m6jcc9tt24af5pw9x1bc",
"status": "<string>",
"trackingNumber": "<string>",
"trackingStatus": "<string>",
"shippedAt": "<string>",
"deliveredAt": "<string>",
"estimatedDeliveryAt": "<string>",
"exceptions": [
{
"actionable": false,
"assignedTo": {
"id": "<string>",
"name": "<string>"
},
"createdAt": "<string>",
"dueAt": "<string>",
"id": "fex_01j2y8m6jcc9tt24af5pw9x1bc",
"kind": "<string>",
"resolution": "<string>",
"resolvedAt": "<string>",
"retryable": false,
"severity": "warning",
"status": "open",
"summary": "<string>",
"updatedAt": "<string>"
}
],
"shipping": {
"destinationType": "patient",
"method": "standard",
"option": {
"amountCents": "<string>",
"currency": "USD",
"label": "<string>",
"serviceLevel": "<string>",
"temperature": "ambient"
}
},
"shipments": [
{
"carrier": "<string>",
"createdAt": "<string>",
"deliveredAt": "<string>",
"estimatedDeliveryAt": "<string>",
"id": "ship_01j2y8m6jcc9tt24af5pw9x1bc",
"isActive": false,
"providerStatus": "<string>",
"replacedAt": "<string>",
"replacesShipmentId": "ship_01j2y8m6jcc9tt24af5pw9x1bc",
"shippedAt": "<string>",
"source": "pharmacy_webhook",
"status": "label_created",
"trackingNumber": "<string>",
"trackingUrl": "<string>",
"updatedAt": "<string>",
"voidedAt": "<string>"
}
],
"trackingUrl": "<string>",
"updatedAt": "<string>"
}
],
"id": "ord_01j2y8m6jcc9tt24af5pw9x1bc",
"lifecycleEvents": [
{
"createdAt": "<string>",
"eventType": "<string>",
"id": "<string>",
"message": "<string>",
"source": "cancellation"
}
],
"livemode": false,
"object": "order",
"patientExternalId": "<string>",
"patientId": "pat_01j2y8m6jcc9tt24af5pw9x1bc",
"patientName": "<string>",
"patientState": "<string>",
"practiceId": "prac_01j2y8m6jcc9tt24af5pw9x1bc",
"prescriberName": "<string>",
"prescriberNpi": "<string>",
"review": {
"status": "completed",
"reason": "<string>",
"requestedAt": "<string>",
"completedAt": "<string>",
"canceledAt": "<string>",
"resolvedAt": "<string>",
"resolvedBy": {
"id": "<string>",
"type": "<string>"
},
"providerId": "prov_01j2y8m6jcc9tt24af5pw9x1bc"
},
"prescriptions": "<string>",
"status": "blocked",
"updatedAt": "<string>",
"cancellation": {
"status": "confirmed",
"outcomes": [
{
"cancellationId": "cancl_01j2y8m6jcc9tt24af5pw9x1bc",
"fulfillmentId": "ord_01j2y8m6jcc9tt24af5pw9x1bc",
"status": "confirmed"
}
]
}
}{
"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>"
}Implementation specification
Use these field types and limits to build your integration. Download the OpenAPI document for the complete contract.
Path parameters
orderIdstringrequiredPattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$
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
reasonstringrequiredResponse 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}$
prescriptionIdanyrequiredShow prescriptionId fields
All of · 1: any
any
Pattern: ^rx_[0-7][0-9a-hjkmnp-tv-z]{25}$
namestringrequiredquantityintegerrequiredunitPriceCentsintegerrequiredsubtotalCentsintegerrequiredpracticeMedicationTotalCentsinteger | nullrequiredSnapshot of the practice-facing medication total. Null until every prescription has recorded submission pricing. Excludes shipping and supplies.
Show practiceMedicationTotalCents fields
Any of · 1: integer
integer
Any of · 2: null
null
externalOrderIdany & any & any & any | nullrequiredShow externalOrderId 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
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
createdAtstringrequiredfulfillmentsobject[]requiredShow fulfillments fields
Array items · object
carrierstring | nullrequiredShow carrier fields
Any of · 1: string
string
Any of · 2: null
null
cancellationsobject[]requiredShow cancellations fields
Array items · object
attemptsintegerrequiredconfirmedAtstring | nullrequiredShow confirmedAt fields
Any of · 1: string
string
Any of · 2: null
null
createdAtstringrequirederrorCodestring | nullrequiredShow errorCode fields
Any of · 1: string
string
Any of · 2: null
null
errorMessagestring | nullrequiredShow errorMessage fields
Any of · 1: string
string
Any of · 2: null
null
idanyrequiredShow id fields
All of · 1: any
any
Pattern: ^cancl_[0-7][0-9a-hjkmnp-tv-z]{25}$
providerStatusstring | nullrequiredShow providerStatus fields
Any of · 1: string
string
Any of · 2: null
null
reasonstringrequiredrequestedAtstringrequiredrequestedByobjectrequiredNo additional properties
Show requestedBy fields
idstringrequiredtypestringrequiredresolvedAtstring | nullrequiredShow resolvedAt fields
Any of · 1: string
string
Any of · 2: null
null
sentAtstring | nullrequiredShow sentAt fields
Any of · 1: string
string
Any of · 2: null
null
sourcestringrequiredAllowed: "provider", "platform", "public_api", "pharmacy", "system"
statusstringrequiredAllowed: "requested", "sent", "confirmed", "rejected", "failed", "too_late"
updatedAtstringrequiredpharmacyIdany | nullrequiredShow pharmacyId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^pharm_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
createdAtstringrequiredidanyrequiredShow id fields
All of · 1: any
any
Pattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$
prescriptionIdanyrequiredShow prescriptionId fields
All of · 1: any
any
Pattern: ^rx_[0-7][0-9a-hjkmnp-tv-z]{25}$
statusstringrequiredtrackingNumberstring | nullrequiredShow trackingNumber fields
Any of · 1: string
string
Any of · 2: null
null
trackingStatusstring | nullrequiredShow trackingStatus fields
Any of · 1: string
string
Any of · 2: null
null
shippedAtstring | nullrequiredShow shippedAt fields
Any of · 1: string
string
Any of · 2: null
null
deliveredAtstring | nullrequiredShow deliveredAt fields
Any of · 1: string
string
Any of · 2: null
null
estimatedDeliveryAtstring | nullrequiredShow estimatedDeliveryAt fields
Any of · 1: string
string
Any of · 2: null
null
exceptionsobject[]requiredShow exceptions fields
Array items · object
actionablebooleanrequiredassignedToobject | nullrequiredShow assignedTo fields
Any of · 1: object
idstringrequirednamestringrequiredAny of · 2: null
null
createdAtstringrequireddueAtstring | nullrequiredShow dueAt fields
Any of · 1: string
string
Any of · 2: null
null
idanyrequiredShow id fields
All of · 1: any
any
Pattern: ^fex_[0-7][0-9a-hjkmnp-tv-z]{25}$
kindstringrequiredresolutionstring | nullrequiredShow resolution fields
Any of · 1: string
string
Any of · 2: null
null
resolvedAtstring | nullrequiredShow resolvedAt fields
Any of · 1: string
string
Any of · 2: null
null
retryablebooleanrequiredseveritystringrequiredAllowed: "warning", "critical"
statusstringrequiredAllowed: "open", "acknowledged", "resolved"
summarystringrequiredupdatedAtstringrequiredshippingobjectrequiredNo additional properties
Show shipping fields
destinationTypestringrequiredAllowed: "patient", "practice"
methodstringrequiredAllowed: "standard", "expedited", "overnight", "pickup", "local_delivery"
optionobject | nullrequiredShow option fields
Any of · 1: object
amountCentsanyrequiredShow amountCents fields
All of · 1: any
any
Minimum: 0
currencystringrequiredAllowed: "USD"
labelstringrequiredserviceLevelstringrequiredtemperaturestringrequiredAllowed: "ambient", "refrigerated"
Any of · 2: null
null
shipmentsobject[]requiredShow shipments fields
Array items · object
carrierstring | nullrequiredShow carrier fields
Any of · 1: string
string
Any of · 2: null
null
createdAtstringrequireddeliveredAtstring | nullrequiredShow deliveredAt fields
Any of · 1: string
string
Any of · 2: null
null
estimatedDeliveryAtstring | nullrequiredShow estimatedDeliveryAt fields
Any of · 1: string
string
Any of · 2: null
null
idanyrequiredShow id fields
All of · 1: any
any
Pattern: ^ship_[0-7][0-9a-hjkmnp-tv-z]{25}$
isActivebooleanrequiredproviderStatusstring | nullrequiredShow providerStatus fields
Any of · 1: string
string
Any of · 2: null
null
replacedAtstring | nullrequiredShow replacedAt fields
Any of · 1: string
string
Any of · 2: null
null
replacesShipmentIdany | nullrequiredShow replacesShipmentId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^ship_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
shippedAtstring | nullrequiredShow shippedAt fields
Any of · 1: string
string
Any of · 2: null
null
sourcestringrequiredAllowed: "pharmacy_webhook", "pharmacy", "system"
statusstringrequiredAllowed: "label_created", "carrier_possession", "in_transit", "out_for_delivery", "delivered", "delayed", "delivery_failed", "returned", "voided", "unknown"
trackingNumberstring | nullrequiredShow trackingNumber fields
Any of · 1: string
string
Any of · 2: null
null
trackingUrlstring | nullrequiredShow trackingUrl fields
Any of · 1: string
string
Any of · 2: null
null
updatedAtstringrequiredvoidedAtstring | nullrequiredShow voidedAt fields
Any of · 1: string
string
Any of · 2: null
null
trackingUrlstring | nullrequiredShow trackingUrl fields
Any of · 1: string
string
Any of · 2: null
null
updatedAtstringrequiredidstringrequiredPattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$
lifecycleEventsobject[]requiredShow lifecycleEvents fields
Array items · object
createdAtstringrequiredeventTypestringrequiredidstringrequiredmessagestringrequiredsourcestringrequiredAllowed: "cancellation", "exception", "fulfillment", "integration", "shipment", "webhook"
livemodebooleanrequiredobjectstringrequiredAllowed: "order"
patientExternalIdstring | nullrequiredShow patientExternalId fields
Any of · 1: string
string
Any of · 2: null
null
patientIdstringrequiredPattern: ^pat_[0-7][0-9a-hjkmnp-tv-z]{25}$
patientNamestringrequiredpatientStatestringrequiredThe patient's current clinical state. This is not the saved delivery state; use each prescription's deliveryAddress for shipping.
practiceIdstringrequiredPattern: ^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$
prescriberNamestring | nullrequiredShow prescriberName fields
Any of · 1: string
string
Any of · 2: null
null
prescriberNpistring | nullrequiredShow prescriberNpi fields
Any of · 1: string
string
Any of · 2: null
null
reviewobject | nullrequiredShow review fields
Any of · 1: object
statusstringrequiredAllowed: "completed", "rejected"
reasonstring | nullrequiredShow reason fields
Any of · 1: string
string
Any of · 2: null
null
requestedAtstringrequiredcompletedAtstring | nullrequiredShow completedAt fields
Any of · 1: string
string
Any of · 2: null
null
canceledAtstring | nullrequiredShow canceledAt fields
Any of · 1: string
string
Any of · 2: null
null
resolvedAtstring | nullrequiredShow resolvedAt fields
Any of · 1: string
string
Any of · 2: null
null
resolvedByobject | nullrequiredShow resolvedBy fields
Any of · 1: object
idstringrequiredtypestringrequiredAny of · 2: null
null
providerIdany | nullrequiredShow providerId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^prov_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
Any of · 2: null
null
prescriptionsanyrequiredShow prescriptions fields
Array items · object
versionintegerrequireddaysSupplynumber | string | nullrequiredShow daysSupply fields
Any of · 1: number | string
Any of · 1: number
number
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
Any of · 2: null
null
patientSnapshotobjectrequiredNo additional properties
Show patientSnapshot fields
addressobject | nullShow address fields
Any of · 1: object
object
Any of · 2: null
null
allergyReviewStatusstring | nullShow allergyReviewStatus fields
Any of · 1: string
string
Allowed: "no_known", "not_reviewed", "recorded"
Any of · 2: null
null
dateOfBirthstringrequiredemailstring | nullShow email fields
Any of · 1: string
string
Any of · 2: null
null
genderstring | nullShow gender fields
Any of · 1: string
string
Allowed: "f", "m", "o", "u"
Any of · 2: null
null
legalNamestringrequiredphonestring | nullShow phone fields
Any of · 1: string
string
Any of · 2: null
null
statestringrequireddeliveryAddressobject | nullrequiredThe saved delivery address for this prescription version. Patient profile updates do not replace it. Review this address before signing.
Show deliveryAddress fields
Any of · 1: object
object
Any of · 2: null
null
deliveryAddressDiffersFromPatientbooleanrequiredWhether the saved delivery address differs from the current primary patient address. This can be intentional; confirm the delivery address before signing.
providerSnapshotobject | nullrequiredShow providerSnapshot fields
Any of · 1: object
addressobject | nullShow address fields
Any of · 1: object
object
Any of · 2: null
null
credentialsstring | nullShow credentials fields
Any of · 1: string
string
Any of · 2: null
null
legalNamestringrequiredlicenseNumberstring | nullShow licenseNumber fields
Any of · 1: string
string
Any of · 2: null
null
licenseStatestring | nullShow licenseState fields
Any of · 1: string
string
Any of · 2: null
null
licenseExpiresAtstring | nullShow licenseExpiresAt fields
Any of · 1: string
string
Any of · 2: null
null
npistringrequiredphonestring | nullShow phone fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
clinicalobject | nullrequiredShow clinical fields
Any of · 1: object
allergiesobject[] | nullShow allergies fields
Any of · 1: object[]
Array items · object
codestring | nullShow code fields
Any of · 1: string
string
Any of · 2: null
null
codeSystemstring | nullShow codeSystem fields
Any of · 1: string
string
Any of · 2: null
null
displaystringrequiredsourcestring | nullShow source fields
Any of · 1: string
string
Any of · 2: null
null
categorystring | nullShow category fields
Any of · 1: string
string
Any of · 2: null
null
severitystring | null | nullShow severity fields
Any of · 1: string | null
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
typestring | null | nullShow type fields
Any of · 1: string | null
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
verificationStatusstring | null | nullShow verificationStatus fields
Any of · 1: string | null
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
reactionsobject[] | nullShow reactions fields
Any of · 1: object[]
Array items · object
codestring | nullShow code fields
Any of · 1: string
string
Any of · 2: null
null
codeSystemstring | nullShow codeSystem fields
Any of · 1: string
string
Any of · 2: null
null
displaystringrequiredsourcestring | nullShow source fields
Any of · 1: string
string
Any of · 2: null
null
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
conditionsobject[] | nullShow conditions fields
Any of · 1: object[]
Array items · object
codestring | nullShow code fields
Any of · 1: string
string
Any of · 2: null
null
codeSystemstring | nullShow codeSystem fields
Any of · 1: string
string
Any of · 2: null
null
displaystringrequiredsourcestring | nullShow source fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
compoundingReasonobject | nullShow compoundingReason fields
Any of · 1: object
categorystring | nullShow category fields
Any of · 1: string
string
Any of · 2: null
null
contextstringrequiredAny of · 2: null
null
medicationsobject[] | nullShow medications fields
Any of · 1: object[]
Array items · object
displaystringrequiredndcstring | nullShow ndc fields
Any of · 1: string
string
Any of · 2: null
null
rxNormCuistring | nullShow rxNormCui fields
Any of · 1: string
string
Any of · 2: null
null
sourcestring | nullShow source fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
observationsobject[] | nullShow observations fields
Any of · 1: object[]
Array items · object
codestring | nullShow code fields
Any of · 1: string
string
Any of · 2: null
null
displaystringrequiredvaluenumber | stringrequiredShow value fields
Any of · 1: number
number
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
unitstringrequiredAny of · 2: null
null
Any of · 2: null
null
dispensingobject | nullrequiredShow dispensing fields
Any of · 1: object
dispenseUponAcceptancebooleanrequiredsubstitutionPermittedbooleanrequiredpharmacyNotesstring | nullShow pharmacyNotes fields
Any of · 1: string
string
Any of · 2: null
null
requestedFillDatestring | nullShow requestedFillDate fields
Any of · 1: string
string
Any of · 2: null
null
shippingOptionIdstring | nullShow shippingOptionId fields
Any of · 1: string
string
Any of · 2: null
null
shippingAmountCentsinteger | nullShow shippingAmountCents fields
Any of · 1: integer
integer
Any of · 2: null
null
shippingDestinationTypestring | nullShow shippingDestinationType fields
Any of · 1: string
string
Allowed: "patient", "practice"
Any of · 2: null
null
Any of · 2: null
null
structuredSigobject | nullrequiredShow structuredSig fields
Any of · 1: object
dosestringrequireddoseUnitstringrequiredfrequencystringrequiredroutestringrequiredprnbooleanrequireddurationstring | nullShow duration fields
Any of · 1: string
string
Any of · 2: null
null
indicationstring | 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
titrationSchedulestring | nullShow titrationSchedule fields
Any of · 1: string
string
Any of · 2: null
null
Any of · 2: null
null
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
catalogItemIdany | nullrequiredShow catalogItemId 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
pharmacyIdany | nullrequiredShow pharmacyId fields
Any of · 1: any
All of · 1: any
any
Pattern: ^pharm_[0-7][0-9a-hjkmnp-tv-z]{25}$
Any of · 2: null
null
pharmacyNamestring | nullrequiredShow pharmacyName fields
Any of · 1: string
string
Any of · 2: null
null
directionsstringrequireddosageFormstring | nullrequiredShow dosageForm fields
Any of · 1: string
string
Any of · 2: null
null
idanyrequiredShow id fields
All of · 1: any
any
Pattern: ^rx_[0-7][0-9a-hjkmnp-tv-z]{25}$
medicationNamestringrequiredquantitynumber | stringrequiredShow quantity fields
Any of · 1: number
number
Any of · 2: string
string
Allowed: "Infinity", "-Infinity", "NaN"
quantityUnitstringrequiredrefillsintegerrequiredstatusstringrequiredstrengthstring | nullrequiredShow strength fields
Any of · 1: string
string
Any of · 2: null
null
All of · 1: any
any
Minimum items: 1
statusstringrequiredAllowed: "blocked", "cancelled", "delivered", "draft", "partially_submitted", "requires_provider_signature", "processing", "ready", "rejected", "shipped", "submitted"
updatedAtstringrequiredcancellationobjectrequiredNo additional properties
Show cancellation fields
statusstringrequiredAllowed: "confirmed", "pending", "partial", "failed"
outcomesobject[]requiredShow outcomes fields
Array items · object
cancellationIdstringrequiredPattern: ^cancl_[0-7][0-9a-hjkmnp-tv-z]{25}$
fulfillmentIdstringrequiredPattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$
statusstringrequiredAllowed: "confirmed", "failed", "rejected", "requested", "sent", "too_late"
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