Skip to content

GraphQL Overview

Download GraphQL schema

Queries

Overview

Mutations

Overview

Directives

Overview

Objects

Overview

Interfaces

Overview

Enums

Overview

Inputs

Overview

GlassesLensPrismInput

Prism correction details

Horizontal prism power and direction

Vertical prism power and direction

Sample
{ "horizontal": { "__typename": "GlassesLenPrismHorizontalInput" }, "vertical": { "__typename": "GlassesLenPrismVerticalInput" } }

GlassesLensInput

Information about the lens

Lens type

Lens material

Lens quality

color
String

Lens color

Lens edge finish

addons
String

Additional anti-reflective, anti-fog, anti-scratch, and other coatings

Lens focus

sphere
String

Sphere

cylinder
String

Cylinder

axis
String

Axis

addition
String

Addition

pupillaryDistance

Pupillary distance

segmentHeight
String

Segment height

Prism corrections

Sample
{ "type": "DEMO", "material": "CR39", "quality": "STANDARD", "color": "Example String", "edge": "POLISH", "addons": "Example String", "focus": "BIFOCAL", "sphere": "Example String", "cylinder": "Example String", "axis": "Example String", "addition": "Example String", "pupillaryDistance": { "__typename": "PupillaryDistanceInput" }, "segmentHeight": "Example String", "prism": { "__typename": "GlassesLensPrismInput" } }

GlassesLensesInput

Information about both lenses

Lens type

Lens material

Lens quality

color
String

Lens color

Lens edge finish

addons
String

Additional anti-reflective, anti-fog, anti-scratch, and other coatings

Lens focus

sphere
String

Sphere

cylinder
String

Cylinder

axis
String

Axis

addition
String

Addition

pupillaryDistance

Pupillary distance

segmentHeight
String

Segment height

Prism corrections

Sample
{ "right": { "__typename": "GlassesLensInput" }, "left": { "__typename": "GlassesLensInput" }, "type": "DEMO", "material": "CR39", "quality": "STANDARD", "color": "Example String", "edge": "POLISH", "addons": "Example String", "focus": "BIFOCAL", "sphere": "Example String", "cylinder": "Example String", "axis": "Example String", "addition": "Example String", "pupillaryDistance": { "__typename": "PupillaryDistanceInput" }, "segmentHeight": "Example String", "prism": { "__typename": "GlassesLensPrismInput" } }

GlassesFrameInput

Information about the frame

sku
String

Frame SKU

Sample
{ "sku": "Example String" }
Referenced in

GlassesPrescriptionInput

Information about the glasses prescription

fileId
String

File ID from uploadFile

prescriptionId
String

Prescription ID

Prescribing doctor details

Patient details

Prescribed corrections for distance, near, or multifocal lenses

issueDate
String

Issue date for the prescription YYYY-MM-DD format

expirationDate
String

Expiration date for the prescription YYYY-MM-DD format

Sample
{ "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "__typename": "DoctorInput" }, "patient": { "__typename": "PatientInput" }, "corrections": [ { "__typename": "GlassesLensesInput" } ], "issueDate": "Example String", "expirationDate": "Example String" }

GlassesInput

Sample
{ "lenses": { "__typename": "GlassesLensesInput" }, "frame": { "__typename": "GlassesFrameInput" }, "prescription": { "__typename": "GlassesPrescriptionInput" } }

GlassesPrescriptionVerificationJobOptionsInput

jobId
String
Sample
{ "jobId": "Example String" }

GlassesPrescriptionIssuanceJobOptionsInput

jobId
String
sendText
Boolean
sendEmail
Boolean
buyLink
Boolean
Sample
{ "jobId": "Example String", "sendText": true, "sendEmail": true, "buyLink": true }

GlassesFulfillmentJobOptionsInput

frameOnly
Boolean
lensReplacement
Boolean
lensProtection
Boolean
sendBox
Boolean
Sample
{ "frameOnly": true, "lensReplacement": true, "lensProtection": true, "sendBox": true }

GlassesJobOptionsInput

glassesPrescriptionVerification
wait
Int

The number of seconds between 0 and 20 to wait for completion; Default: 0 (no wait)

Sample
{ "glassesPrescriptionVerification": { "__typename": "GlassesPrescriptionVerificationJobOptionsInput" }, "glassesPrescriptionIssuance": { "__typename": "GlassesPrescriptionIssuanceJobOptionsInput" }, "glassesFulfillment": { "__typename": "GlassesFulfillmentJobOptionsInput" }, "wait": 40 }

PatientInput

Information about the patient

patientId
String

Patient ID

firstName
String

First name

middleName
String

Middle name

lastName
String

Last name

dateOfBirth
String

Date of birth in ISO 8601 format, i.e., YYYY-MM-DD

phoneNumber
String

Phone number

email
String

Email address

address
String

Street address #1

address2
String

Street address #2

city
String

City

state
String

State

zipCode
String

Zip code

schedulerLink
String

Scheduler link

Sample
{ "patientId": "Example String", "firstName": "Example String", "middleName": "Example String", "lastName": "Example String", "dateOfBirth": "Example String", "phoneNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "schedulerLink": "Example String" }