Skip to main content
POST https://api.speccheckrx.com/v1/orders

Authentication

This endpoint requires bearer token authentication.

Headers

Authorization
string
required
Your bearer token in the format Bearer <token>.
User-Email
string
required
The email address of the user creating the order.Must exactly match the email address used to log in to the SpecCheck Dashboard.

Body

mode
string
required
Controls whether the order is saved as a draft or submitted to the lab.Possible enum values:
  • draft — Saves the order as a draft for review and finalization in the SpecCheck Dashboard.
  • submit — Submits the order to the lab for fulfillment.
submission_type
string
required
The type of submission for this order.Possible enum values:
  • new — A new order.
  • redo — A redo of a previous order.
  • multi_pair — An additional pair submitted as part of a multi-pair order.
order_type
string
required
The type of order. Must be one of the values in order_types returned by Retrieve Order Settings.Order type rx is always available; other order types vary by lab.
lab
string
required
The ID of the lab for this order.
account_number
string
required
The lab account number for this order.
patient
object
required
Patient information.
mounting_option
string
Mounting option for the order. Must be one of the values in mounting_options returned by Retrieve Order Settings. Required when order_type is rx.
lens
object
Lens configuration. Required when order_type is rx and mode is submit.
frame
object
required
Frame information.
rx
object
Prescription details. Required when order_type is rx.
services
array of string
A list of lab services for this order. Each value must be one of the values in services returned by Retrieve Order Settings.
special_instructions
string
Free-text special instructions for the lab.The maximum length is 1,000 characters.
redo_data
object
Details for a redo order. Required when submission_type is redo.
multi_pair_data
object
Details for a multi-pair order. Required when submission_type is multi_pair.
shipping
object
Shipping name and address.

Returns

Returns an object with the order’s unique identifier and an optional url.
id
string
The unique identifier for the order.
url
string
The URL to review and finalize the order in the SpecCheck Dashboard. Present when mode is draft.
{
  "id": "ord_1234",
  "url": "https://dashboard.speccheckrx.com/orders/ord_1234"
}
curl -X POST "https://api.speccheckrx.com/v1/orders" \
  -H "Authorization: Bearer {{ACCESS_TOKEN}}" \
  -H "User-Email: {{USER_EMAIL}}" \
  -d @order.json