Skip to main content
POST
Create an order
Orders are created asynchronously: a valid request returns immediately with a 202, and an order.created webhook is sent when processing completes. If creation fails terminally, an order.create_failed webhook is sent instead. Identify the test or procedure to order with either item_id or name. Discover valid values via Search Order Catalog. When both are provided, item_id wins.

Request Parameters

Required Fields

  • type (string, required): Order type. One of lab, imaging, or procedure.
  • patient_mrn (string, required): Medical Record Number of the patient the order is for.
One of the following is also required:
  • item_id (string): EMR catalog id of the test/procedure to order. Discover ids via POST /v1/orders/catalog/fetch.
  • name (string): Catalog name of the test/procedure, resolved against the catalog when item_id is omitted.

Optional Fields

  • provider_id (string, optional): EMR id of the ordering provider.
  • facility_id (string, optional): EMR id of the ordering facility/location.
  • assigned_to_id (string, optional): EMR staff id the order is assigned to.
  • order_date (string, optional): Order date (ISO 8601, YYYY-MM-DD).
  • collected_date (string, optional): Specimen collection date (ISO 8601, YYYY-MM-DD). Labs.
  • collection_time (string, optional): Specimen collection time, e.g. "12:58 PM".
  • performed_date (string, optional): Performed date (ISO 8601, YYYY-MM-DD). Diagnostic imaging.
  • high_priority (boolean, optional): Flag the order high priority.
  • notes (string, optional): Order notes.
  • clinical_info (string, optional): Clinical information for the order.
  • callback_urls (string[], optional): URLs to receive the order.created webhook, in addition to the account webhook.

Example Requests

Example Response

Error Responses

Missing Required Field

Missing Order Identifier

Webhook Notifications

When order processing completes, we send a webhook to your registered endpoint.

Success

Failure

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Body

application/json
type
enum<string>
required

Order type.

Available options:
lab,
imaging,
procedure
Example:

"lab"

patient_mrn
string
required

Medical Record Number of the patient the order is for.

Example:

"12345"

provider_id
string
required

EMR id of the ordering provider.

facility_id
string
required

EMR id of the ordering facility/location.

item_id
string

EMR catalog id of the test/procedure to order. Provide item_id OR name (enforced in the controller); item_id wins when both are given. Discover ids via POST /v1/orders/catalog/fetch.

name
string

Catalog name of the test/procedure to order, resolved against the catalog when item_id is omitted.

assigned_to_id
string

EMR staff id the order is assigned to (an ehr_id from GET /v1/staff).

order_date
string

Order date (ISO 8601, YYYY-MM-DD).

Example:

"2026-03-15"

collected_date
string

Specimen collection date (ISO 8601, YYYY-MM-DD). Labs.

collection_time
string

Specimen collection time, e.g. "12:58 PM".

performed_date
string

Performed date (ISO 8601, YYYY-MM-DD). Diagnostic imaging.

high_priority
boolean

Flag the order high priority.

notes
string

Order notes.

clinical_info
string

Clinical information for the order.

callback_urls
string[]

URLs to receive the order.created webhook, in addition to the account webhook.

Response

Order record created/updated and queued for the EMR

success
boolean
required
message
string
required
order_id
string
required
job_id
required