Patient Input
Information about the patient
Patient ID
First name
Middle name
Last name
Date of birth in ISO 8601 format, i.e., YYYY-MM-DD
Phone number
Email address
Street address #1
Street address #2
City
State
Zip code
{ "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" }
Lens Input
Information about the lens
Lens type
Lens focus
Lens material
Lens quality
Lens color
Lens edge type
Additional anti-reflective, anti-fog, anti-scratch, and other coatings
Optionally provided prescription details, applicable to CORRECTIVE lenses only
Optionally provided correction details, applicable to CORRECTIVE lenses only
{ "type": "DEMO", "focus": "BIFOCAL", "material": "CR39", "quality": "STANDARD", "color": "Example String", "edge": "POLISH", "addons": "Example String", "prescription": { "__typename": "PrescriptionInput" }, "corrections": { "__typename": "CorrectionsInput" } }
Prescription Input
Prescription details
File ID
{ "fileId": "Example String" }
Item Input
Use glasses property
{ "type": "GLASSES", "itemId": "Example String", "description": "Example String", "comment": "Example String", "glasses": { "__typename": "GlassesItemInput" }, "lensReplacement": { "__typename": "LensReplacementItemInput" }, "contacts": { "__typename": "ContactsItemInput" } }
Glasses Item Input
Glasses lens and frame details, used for frame-only, lens replacement, and frame + glasses orders
Use glasses.lenses property
Use glasses.frame property
Use options.fulfillment.protection item
Use item.comment item
{ "lens": { "__typename": "LensInput" }, "frame": { "__typename": "FrameInput" }, "protection": true, "comment": "Example String", "glasses": { "__typename": "GlassesInput" }, "options": { "__typename": "GlassesOptionsInput" }, "tags": [ { "__typename": "TagInput" } ], "quantity": 40 }
Lens Replacement Item Input
{ "box": true, "lens": { "__typename": "LensInput" }, "protection": true, "quantity": 40, "comment": "Example String" }
Contacts Item Input
Optional patient information
Use contacts.prescription.patient property
Optional doctor Id
Use contacts.prescription.doctor.doctorId property
Optional doctor information
Use contacts.prescription.doctor property
Optional ordered products
Use contacts.products property
Prescriptions pertinent to the ordered products
Use contacts.prescription property
File IDs from uploadFile for flat files containing prescription information
Use prescription.doctor.fileId property
Use contacts.products.[right|left].quantity property
Use item.comment property
{ "patient": { "__typename": "PatientInput" }, "doctorId": "Example String", "doctor": { "__typename": "DoctorInput" }, "products": [ { "__typename": "ContactProductInput" } ], "prescriptions": [ { "__typename": "ContactProductInput" } ], "fileIds": [ "Example String" ], "quantity": 40, "comment": "Example String", "contacts": { "__typename": "ContactsInput" }, "options": { "__typename": "ContactsOptionsInput" }, "tags": [ { "__typename": "TagInput" } ] }
Order Input
Unique order ID
Date and time when the order was placed in ISO 8601 format
Total order amount
Customer information
Shipping details
Items in the order
{ "orderId": "Example String", "orderedAt": "Example String", "total": 40, "customer": { "__typename": "CustomerInput" }, "shipping": { "__typename": "ShippingInput" }, "items": [ { "__typename": "ItemInput" } ] }