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": "PrismHorizontalInput" }, "vertical": { "__typename": "PrismVerticalInput" } }

GlassesLensInput

Information about the lens

type

Lens type

Lens material

Lens quality

color

Lens color

Lens edge finish

addons

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

Lens focus

sphere

Sphere

cylinder

Cylinder

axis

Axis

addition

Addition

pupillaryDistance

Pupillary distance

segmentHeight

Segment height

Prism corrections

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

GlassesLensesInput

Information about both lenses

Lens type

Lens material

Lens quality

color

Lens color

Lens edge finish

addons

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

Lens focus

sphere

Sphere

cylinder

Cylinder

axis

Axis

addition

Addition

pupillaryDistance

Pupillary distance

segmentHeight

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": 40, "cylinder": 40, "axis": 40, "addition": 40, "pupillaryDistance": { "__typename": "PupillaryDistanceInput" }, "segmentHeight": 40, "prism": { "__typename": "GlassesLensPrismInput" } }

GlassesFrameInput

Information about the frame

Frame SKU

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

GlassesPrescriptionInput

fileId

File ID from uploadFile

prescriptionId

Prescription ID

Prescribing doctor details

Patient details

Prescribed corrections for distance, near, or multifocal lenses

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

GlassesVerificationOptionsInput

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

GlassesPrescriptionOptionsInput

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

GlassesInput

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

GlassesFulfillmentOptionsInput

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

GlassesOptionsInput

Sample
{ "verification": { "__typename": "GlassesVerificationOptionsInput" }, "prescription": { "__typename": "GlassesPrescriptionOptionsInput" }, "fulfillment": { "__typename": "GlassesFulfillmentOptionsInput" } }

PatientInput

Information about the patient

patientId

Patient ID

firstName

First name

middleName

Middle name

lastName

Last name

dateOfBirth

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

phoneNumber

Phone number

email

Email address

address

Street address #1

address2

Street address #2

city

City

state

State

zipCode

Zip code

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" }

Scalars

Overview