Skip to main content
POST
Create an order

Authorizations

Authorization
string
header
required

API key issued by VitaRelay. Send as Authorization: Bearer vr_live_… (production) or Authorization: Bearer vr_test_… (sandbox).

Body

application/json

Exactly one of patient_id or external_patient_id is required.

items
object[]
required
Minimum array length: 1
external_order_id
string

Your identifier for this order. Acts as an idempotency key.

patient_id
string

Patient UUID, or a sandbox_pat_… id when using a test key.

external_patient_id
string
shipping
object
payment_method_id
string<uuid>

Patient saved card. Required when any line has purchase=subscription (422 payment_method_required).

ship_to_address_id
string<uuid>

Patient saved address for shippable subscription lines (defaults to the preferred address). Service-only lines never require shipping; otherwise 422 shipping_required.

billing_mode
enum<string>
default:card_on_file

card_on_file (default) charges the Vita Clinic's stored card synchronously. patient_checkout creates the order UNPAID and returns a checkout object so the patient can pay on the partner's own page via Authorize.Net Accept.js — no card is required on the clinic.

Available options:
card_on_file,
patient_checkout

Response

Idempotent replay of an existing external_order_id.

data
object
Example: