Skip to content

Search orders

POST /v1/orders/search

Takes the same filters as List orders (GET /v1/orders) in a JSON body, so patient details stay out of URLs and logs. Returns the same list, newest first unless sort is supplied. For the next page, send the same body with startingAfter set to nextCursor. limit is a number, and cancelRequested and recentlyShipped are booleans.

Orders API key authentication Version 2026-11-01

Request example

Replace example values with your Test data. Check the field rules below before you send a request.

{
  "limit": 25,
  "startingAfter": "<string>",
  "externalOrderId": "<string>",
  "updatedAfter": "2026-10-28T15:04:05.000Z",
  "patientId": "pat_01j2y8m6jcc9tt24af5pw9x1bc",
  "practiceId": "prac_01j2y8m6jcc9tt24af5pw9x1bc",
  "query": "<string>",
  "status": "awaiting_approval",
  "cancelRequested": false,
  "recentlyShipped": false,
  "sort": "patient"
}
curl -X POST 'https://api.affinityrx.com/v1/orders/search' \
  -H "Authorization: Bearer $AFFINITY_API_KEY" \
  -H 'Affinity-Version: 2026-11-01' \
  -H 'Content-Type: application/json' \
  --data @request.json

Response example

These examples show the body structure. Values can differ. Select a status code to see its response.

{
  "object": "list",
  "url": "/v1/orders/search",
  "data": [
    {
      "id": "ord_01j9z3k4m5n6p7q8r9s0t1v2w7",
      "externalOrderId": "order-123",
      "mode": "test",
      "status": "submitted",
      "statusHistory": [
        {
          "status": "submitted",
          "createdAt": "2026-10-20T15:04:05.000Z"
        }
      ],
      "failureReason": null,
      "cancelRequestedAt": null,
      "trackingUrl": null,
      "practiceId": "prac_01j9z3k4m5n6p7q8r9s0t1v2w3",
      "practice": {
        "archivedAt": null,
        "name": "Example Practice",
        "phone": "+15125550123",
        "address": {
          "line1": "200 Example Ave",
          "line2": "Suite 4",
          "city": "Austin",
          "state": "TX",
          "postalCode": "78701"
        }
      },
      "patientId": "pat_01j9z3k4m5n6p7q8r9s0t1v2w8",
      "prescriber": {
        "npi": "1234567893",
        "firstName": "Sam",
        "lastName": "Lee",
        "phone": "+15125550124",
        "address": {
          "line1": "300 Example St",
          "line2": null,
          "city": "Austin",
          "state": "TX",
          "postalCode": "78701"
        }
      },
      "patient": {
        "firstName": "Test",
        "middleName": null,
        "lastName": "Patient",
        "dateOfBirth": "1988-04-02",
        "phone": "+15125550100",
        "email": "test.patient@example.com",
        "address": {
          "line1": "100 Example St",
          "line2": null,
          "city": "Austin",
          "state": "TX",
          "postalCode": "78701"
        },
        "allergies": [
          {
            "display": "Penicillin",
            "category": "drug"
          }
        ],
        "sex": "female"
      },
      "prescriptions": [
        {
          "id": "rx_01j9z3k4m5n6p7q8r9s0t1v2w9",
          "medication": {
            "id": "med_3v9r73nmfs8bmbjb960yd2pggg",
            "name": "Tirzepatide / B12",
            "strength": "30 mg/0.5 mg/mL",
            "form": "Vial",
            "quantityUnit": "vial",
            "fill": {
              "amount": 1,
              "container": "vial",
              "ingredients": [
                {
                  "amount": 60,
                  "name": "Tirzepatide",
                  "unit": "mg"
                },
                {
                  "amount": 1,
                  "name": "B12",
                  "unit": "mg"
                }
              ],
              "unit": "vial",
              "volume": {
                "amount": 2,
                "unit": "mL"
              }
            },
            "kit": null
          },
          "quantity": 6,
          "refills": 0,
          "directions": "Inject 0.25 mL (7.5 mg tirzepatide) under the skin once weekly.",
          "compoundingReason": "concentration_adjustment",
          "notes": null,
          "substitutionPermitted": true,
          "price": 165000,
          "pharmacy": {
            "id": "pharm_314xqfy8g09snbzq56416t1zb1",
            "name": "PerfectRx Pharmacy"
          },
          "status": "submitted",
          "failureReason": null
        }
      ],
      "shipments": [],
      "total": 167500,
      "createdAt": "2026-10-20T15:04:05.000Z",
      "updatedAt": "2026-10-20T15:04:05.000Z",
      "shipping": {
        "option": {
          "id": "shp_7yna882w139zfbmwzeyb16y24e",
          "name": "Ground Cold Chain",
          "price": 2500
        },
        "destination": {
          "type": "patient"
        }
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 400,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 401,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 403,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 404,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 413,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 415,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 429,
  "traceId": "<string>",
  "data": {
    "retryAfterSeconds": 1
  }
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 500,
  "traceId": "<string>"
}
{
  "code": "<string>",
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>",
  "issues": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "path": [
        "<string>"
      ]
    }
  ],
  "instance": "<string>",
  "requestId": "<string>",
  "status": 503,
  "traceId": "<string>"
}

Implementation specification

Use these field types and limits to build your integration. Download the OpenAPI document for the complete contract.

Headers

Authorizationstring

For API key authentication, send Authorization: Bearer <key> with an active API key.

Content-Typestringrequired

Send the JSON body with Content-Type: application/json.

Affinity-Version string required

The dated API version this request is written against.

Pin requests to 2026-11-01.

Allowed: "2026-11-01"

Default: "2026-11-01"

Request body specification application/json

Send the JSON body with Content-Type: application/json.

OrderSearch

limit integer

Maximum records per page, from 1 to 100. Defaults to 25.

Default: 25

Minimum: 1

Maximum: 100

startingAfter string

Page forward using the previous response's nextCursor. Keep the same filters, sort, organization and mode.

Maximum length: 2048

externalOrderId string

Match the external order ID exactly, including case. Combine with practiceId when your platform reuses IDs across practices.

Minimum length: 1

Maximum length: 128

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.

Format: date-time

patientId string

Limit results to the patient with this pat_ ID.

Pattern: ^pat_[0-7][0-9a-hjkmnp-tv-z]{25}$

practiceId string

Limit results to the practice with this prac_ ID, within your authorized practices.

Pattern: ^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$

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; 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.

Maximum length: 120

status string

Return only orders with this status. Omit to include all statuses.

Allowed: "awaiting_approval", "submitted", "processing", "shipped", "delivered", "cancelled", "failed"

cancelRequested boolean | null

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 boolean | null

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 changing sort.

Allowed: "patient", "patient_desc", "created", "created_desc"

Response specifications

200 OK

application/json

OrderList

data Order[] required
Show data fields

Array items · Order

cancelRequestedAt string | null required

When cancellation was requested, or null when no cancellation is waiting.

Format: date-time

createdAt string required

When the record was created.

Format: date-time

externalOrderId string | null required

Your order identifier, unique within the practice and mode. A failed or cancelled order keeps it.

failureReason string | null required

Why the order failed, for a person to read. Null unless the order failed; a refused cancel leaves it null.

id string required

The public record identifier.

Pattern: ^ord_[0-7][0-9a-hjkmnp-tv-z]{25}$

mode string required

The Test or Live mode of this record.

Known values: "test", "live"

patient Patient required

The patient details saved when the order was signed.

Show patient fields
address Address required

The US mailing address.

Show address fields
line1 string required

The street address.

line2 string | null required

The apartment or suite, or null when there is none.

city string required

The city name.

state string required

The two-letter US state code.

postalCode string required

The US ZIP code.

allergies Allergy[] required

The reported allergies; an empty list means no new allergies reported.

Show allergies fields

Array items · Allergy

category string required

The allergy category.

Known values: "drug", "food", "insect", "latex", "mold", "pet", "pollen"

display string required

The reported allergy name.

dateOfBirth string required

The patient's birth date in YYYY-MM-DD format.

Format: date

email string required

The patient's email address.

firstName string required

The first name.

sex string required

The patient's sex as sent to the pharmacy.

Known values: "female", "male", "unknown"

lastName string required

The last name.

middleName string | null required

The patient's middle name, or null when there is none.

phone string required

The contact phone number.

patientId string required

The patient's public identifier.

Pattern: ^pat_[0-7][0-9a-hjkmnp-tv-z]{25}$

practice object | null required

The practice contact details saved when the order was signed, or null for historical orders without a snapshot.

Show practice fields
Any of · 1: object
address Address required

The US mailing address.

Show address fields
line1 string required

The street address.

line2 string | null required

The apartment or suite, or null when there is none.

city string required

The city name.

state string required

The two-letter US state code.

postalCode string required

The US ZIP code.

name string required

The name.

phone string required

The contact phone number.

archivedAt string | null required

When the practice was archived, or null while it is active.

Format: date-time

Any of · 2: null

null

practiceId string required

The practice's public identifier.

Pattern: ^prac_[0-7][0-9a-hjkmnp-tv-z]{25}$

prescriber object | null required

The prescribing clinician's details saved when the order was signed.

Show prescriber fields
Any of · 1: object
firstName string required

The first name.

lastName string required

The last name.

npi string required

The prescribing clinician's 10-digit National Provider Identifier (NPI).

phone string | null required

The contact phone number.

address Address | null required

The US mailing address.

Show address fields
Any of · 1: Address
line1 string required

The street address.

line2 string | null required

The apartment or suite, or null when there is none.

city string required

The city name.

state string required

The two-letter US state code.

postalCode string required

The US ZIP code.

Any of · 2: null

null

Any of · 2: null

null

prescriptions Prescription[] required

The prescriptions for this order's patient.

Show prescriptions fields

Array items · Prescription

compoundingReason string | null required

The reason for compounding, required when the medication's requirements include it.

daysSupply integer

The number of days the prescribed quantity lasts. Absent when the order sent none.

Minimum: 1

Maximum: 365

directions string required

The prescriber's directions for use.

id string required

The public record identifier.

Pattern: ^rx_[0-7][0-9a-hjkmnp-tv-z]{25}$

pharmacy PharmacyReference required

The dispensing pharmacy.

Show pharmacy fields
id string required

The public record identifier.

Pattern: ^pharm_[0-7][0-9a-hjkmnp-tv-z]{25}$

name string required

The name.

status string required

The order's current status; every prescription of the order has the same value.

Known values: "awaiting_approval", "submitted", "processing", "shipped", "delivered", "cancelled", "failed"

failureReason string | null required

Why the order failed, for a person to read; every prescription of the order has the same value. Null unless the order failed; a refused cancel leaves it null.

medication object required

The medication details saved when the order was signed.

Show medication fields
fill Fill | null required

What the pharmacy dispenses for one price, or null when the complete fill is unknown.

Show fill fields
Any of · 1: Fill
amount integer required

How much one fill holds, in unit.

Minimum: 1

Maximum: 9007199254740991

container string | null required

What holds one fill, such as vial. Null when the pharmacy does not say.

ingredients object[] required

Each active ingredient's total in one fill: a 2 mL vial of 30 mg/mL is 60 mg.

Show ingredients fields

Array items · object

amount number required

The amount in the specified unit.

name string required

The name.

unit string required

The unit used to measure the amount.

unit string required

The unit of amount, the same as quantityUnit: vial for a vial product.

volume object | null required

What one vial holds, such as 2 mL. Null for a product that is not a vial.

Show volume fields
Any of · 1: object
amount number required

The amount in the specified unit.

unit string required

The unit used to measure the amount.

Any of · 2: null

null

Any of · 2: null

null

form string | null required

The dosage form, or null when it is unknown.

id string required

The public record identifier.

Pattern: ^med_[0-7][0-9a-hjkmnp-tv-z]{25}$

kit Kit | null required

The vials or bottles a kit holds, in the order they are used; null for anything that is not a kit.

Show kit fields
Any of · 1: Kit
days integer required

How many days the kit lasts.

Minimum: 1

Maximum: 9007199254740991

vials object[] required

Each vial or bottle in the order it is used. fill.volume is what one holds.

Show vials fields

Array items · object

ingredients object[] required

Each active ingredient's total in this vial.

Show ingredients fields

Array items · object

amount number required

The amount in the specified unit.

name string required

The name.

unit string required

The unit used to measure the amount.

strength string required

This vial's strength, such as 5 mg/mL.

Any of · 2: null

null

name string required

The name.

quantityUnit string | null required

The unit used to count the prescribed quantity, or null when it is unknown.

strength string | null required

The pharmacy's strength text, or null when it is unknown.

notes string | null required

The prescriber's additional notes to the pharmacy.

price integer required

The prescription's price in integer cents: with a fill, the price per fill times the number of fills.

Minimum: 0

Maximum: 9007199254740991

quantity integer required

The prescribed quantity in quantityUnit, not a count of fills. With a fill, it is a whole number of fills in units: two fills of 30 tablets is 60. A vial's unit is vial, so 2 is two vials.

Minimum: 1

Maximum: 9007199254740991

refills integer required

The number of authorized refills in addition to the first fill.

Minimum: 0

Maximum: 9007199254740991

substitutionPermitted boolean required

Whether the prescriber permits substitution; defaults to true when omitted.

shipping object required

The shipping option and destination.

Show shipping fields
option object | null required

The shipping option saved at signing, or null for historical orders without an option.

Show option fields
Any of · 1: object
id string required

The public record identifier.

Pattern: ^shp_[0-7][0-9a-hjkmnp-tv-z]{25}$

name string required

The name.

price integer required

The shipping price charged, in integer cents.

Minimum: 0

Maximum: 9007199254740991

Any of · 2: null

null

destination ShippingDestination required

The shipping destination; defaults to the patient's address when omitted.

Show destination fields
When type is patient:
type ShippingDestinationPatientType required

Use patient, practice or address to select the shipping destination.

Allowed: "patient"

When type is practice:
type ShippingDestinationPracticeType required

Use patient, practice or address to select the shipping destination.

Allowed: "practice"

When type is address:
type ShippingDestinationAddressType required

Use patient, practice or address to select the shipping destination.

Allowed: "address"

address Address required

The US mailing address.

Show address fields
line1 string required

The street address.

line2 string | null required

The apartment or suite, or null when there is none.

city string required

The city name.

state string required

The two-letter US state code.

postalCode string required

The US ZIP code.

shipments Shipment[] required

The shipped packages, oldest first; a split shipment or reshipment adds a package.

Show shipments fields

Array items · Shipment

carrier string | null required

The carrier name, or null when it is unknown.

trackingNumber string required

The package tracking number.

trackingUrl string | null required

The carrier's tracking page for this package, or null when the carrier has none.

Format: uri

status string required

The current fulfillment status.

Known values: "awaiting_approval", "submitted", "processing", "shipped", "delivered", "cancelled", "failed"

trackingUrl string | null required

The carrier's tracking page for the newest package. Null when there is no package yet or the carrier has no tracking page.

Format: uri

statusHistory StatusHistoryEntry[] required

The order's status changes, oldest first.

Show statusHistory fields

Array items · StatusHistoryEntry

createdAt string required

When the record was created.

Format: date-time

status string required

The current fulfillment status.

Known values: "awaiting_approval", "submitted", "processing", "shipped", "delivered", "cancelled", "failed"

total integer required

The total order price in integer cents, including medication and shipping.

Minimum: 0

Maximum: 9007199254740991

updatedAt string required

When the record was last updated.

Format: date-time

hasMore boolean required
nextCursor string | null required
object string required

Allowed: "list"

url string required
400 Bad Request

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

401 Unauthorized

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

403 Forbidden

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

404 Not Found

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

413 Content Too Large

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

415 Unsupported Media Type

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

429 Too Many Requests

application/problem+json

Problem429

All of · 1: Problem
code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

All of · 2: object
data object
Show data fields
retryAfterSeconds integer required

Minimum: 1

Maximum: 9007199254740991

500 Internal Server Error

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

503 Service Unavailable

application/problem+json

Problem

code string required

A stable code for the problem. Branch on it, not on detail.

detail string required

What went wrong and what to do, for a person to read.

title string required

A short summary of the problem's type.

type string required

A URI that names the problem's type.

issues object[]

One entry for each field that the request got wrong, when the problem is about fields.

Show issues fields

Array items · object

code string required

A stable code for this field's problem.

field string required

The field as one string, such as patient.address.state or prescriptions[0].quantity.

message string required

What is wrong with the field and what to send, for a person to read.

path string | integer[] required

The field as a list of property names and array indexes.

Show path fields

Array items · string | integer

string | integer

instance string required

The path of the request.

requestId string required

Identifies the request, as its X-Request-Id header does. Send it when you report a problem.

status integer required

The HTTP status code of the response.

traceId string

The request trace ID.

Send feedback

Don't include patient information.

Type to search…

↑↓ navigate ↵ select Esc close