Skip to content

GraphQL Overview

Download GraphQL schema

Queries

Overview

Mutations

Overview

saveContactsPrescription

(prescription)
Boolean

Save contacts prescription details

Arguments

prescription

Contacts prescription details

Return type

Boolean

The Boolean scalar type represents true or false.

Mutation sample
mutation saveContactsPrescription($prescription: ContactsPrescriptionInput!) {
  saveContactsPrescription(prescription: $prescription) 
}
Variables
{ "prescription": { "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "patient": { "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" }, "products": { "right": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 }, "left": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } }, "issueDate": "Example String", "expirationDate": "Example String" } }
Response sample
{ "data": true }

saveGlassesPrescription

(prescription)
Boolean

Save glasses prescription details

Arguments

prescription
GlassesPrescriptionInput!,non-nullrequired

Glasses prescription details

Return type

Boolean

The Boolean scalar type represents true or false.

Mutation sample
mutation saveGlassesPrescription($prescription: GlassesPrescriptionInput!) {
  saveGlassesPrescription(prescription: $prescription) 
}
Variables
{ "prescription": { "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "patient": { "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" }, "corrections": [ { "right": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } } ], "issueDate": "Example String", "expirationDate": "Example String" } }
Response sample
{ "data": true }

startWorkflowdeprecated

(...args)

Deprecation reason

Use startVisionTest.

Start a workflow utilizing one or more Visibly services

Arguments

name
String!,non-nullrequired

The name of the workflow to run

Optional patient information

doctorId
String

Optional doctor Id

Optional doctor information

Optional ordered products

Prescriptions pertinent to the ordered products

fileIds
[String]

File IDs from uploadFile for flat files containing prescription information

List of tags used to correlate this workflow with other systems

Return type

Workflow
workflowId
String!,non-null

Unique ID for this workflow

launchUrl
String

If applicable, the launch URL for the first step in this workflow

requestId
String

Unique ID for a prescription verification request if applicable

Current request status

jobId
String

Unique ID for a prescription verification job (conditionally available)

status
String

Current prescription verification job status (conditionally available)

updatedAt
String

Last date and time this request was updated

Mutation sample
mutation startWorkflow(
  $name: String!
  $patient: PatientInput
  $doctorId: String
  $doctor: DoctorInput
  $products: [ContactProductInput]
  $prescriptions: [ContactProductInput]
  $fileIds: [String]
  $tags: [TagInput]
) {
  startWorkflow(
    name: $name
    patient: $patient
    doctorId: $doctorId
    doctor: $doctor
    products: $products
    prescriptions: $prescriptions
    fileIds: $fileIds
    tags: $tags
  ) {
    workflowId 
    launchUrl 
    requestId 
    requestStatus 
    jobId 
    status 
    updatedAt 
  }
}
Variables
{ "name": "Example String", "patient": { "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" }, "doctorId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "products": [ { "productId": "Example String", "eye": "RIGHT", "sphere": "Example String", "diameter": "Example String", "baseCurve": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } ], "prescriptions": [ { "productId": "Example String", "eye": "RIGHT", "sphere": "Example String", "diameter": "Example String", "baseCurve": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } ], "fileIds": [ "Example String" ], "tags": [ { "name": "Example String", "value": "Example String" } ] }
Response sample
{ "data": { "workflowId": "Example String", "launchUrl": "Example String", "requestId": "Example String", "requestStatus": "NEW", "jobId": "Example String", "status": "Example String", "updatedAt": "Example String" } }

fulfillOrderdeprecated

(...args)

Deprecation reason

Use submitOrder

Fulfill order

Arguments

orderedAt
String!,non-nullrequired

Date and time when the order was placed in ISO 8601 format

customer
CustomerInput!,non-nullrequired

Customer information

shipping
ShippingInput!,non-nullrequired

Shipping details

Items in the order

List of tags

Return type

Order
orderId
String

Unique ID for this order

status
String

Current order status

Mutation sample
mutation fulfillOrder(
  $orderedAt: String!
  $customer: CustomerInput!
  $shipping: ShippingInput!
  $items: [ItemInput]
  $tags: [TagInput]
) {
  fulfillOrder(
    orderedAt: $orderedAt
    customer: $customer
    shipping: $shipping
    items: $items
    tags: $tags
  ) {
    orderId 
    status 
  }
}
Variables
{ "orderedAt": "Example String", "customer": { "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" }, "shipping": { "method": "Example String", "address": { "to": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String" } }, "items": [ { "type": "GLASSES", "itemId": "Example String", "description": "Example String", "comment": "Example String", "glasses": { "lens": { "type": "DEMO", "focus": "BIFOCAL", "material": "CR39", "quality": "STANDARD", "color": "Example String", "edge": "POLISH", "addons": "Example String", "prescription": { "fileId": "Example String" }, "corrections": { "right": { "sphere": "Example String", "cylinder": "Example String", "axis": "Example String", "addition": "Example String", "pupillaryDistance": 40, "segmentHeight": 40, "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "sphere": "Example String", "cylinder": "Example String", "axis": "Example String", "addition": "Example String", "pupillaryDistance": 40, "segmentHeight": 40, "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } } } }, "frame": { "sku": "Example String" }, "protection": true, "comment": "Example String", "glasses": { "lenses": { "right": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "frame": { "sku": "Example String" }, "prescription": { "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "patient": { "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" }, "corrections": [ { "right": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } } ], "issueDate": "Example String", "expirationDate": "Example String" } }, "options": { "glassesPrescriptionVerification": { "jobId": "Example String" }, "glassesPrescriptionIssuance": { "jobId": "Example String", "sendText": true, "sendEmail": true, "buyLink": true }, "glassesFulfillment": { "frameOnly": true, "lensReplacement": true, "lensProtection": true, "sendBox": true }, "wait": 40 }, "tags": [ { "name": "Example String", "value": "Example String" } ], "quantity": 40 }, "lensReplacement": { "box": true, "lens": { "type": "DEMO", "focus": "BIFOCAL", "material": "CR39", "quality": "STANDARD", "color": "Example String", "edge": "POLISH", "addons": "Example String", "prescription": { "fileId": "Example String" }, "corrections": { "right": { "sphere": "Example String", "cylinder": "Example String", "axis": "Example String", "addition": "Example String", "pupillaryDistance": 40, "segmentHeight": 40, "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "sphere": "Example String", "cylinder": "Example String", "axis": "Example String", "addition": "Example String", "pupillaryDistance": 40, "segmentHeight": 40, "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } } } }, "protection": true, "quantity": 40, "comment": "Example String" }, "contacts": { "patient": { "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" }, "doctorId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "products": [ { "productId": "Example String", "eye": "RIGHT", "sphere": "Example String", "diameter": "Example String", "baseCurve": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } ], "prescriptions": [ { "productId": "Example String", "eye": "RIGHT", "sphere": "Example String", "diameter": "Example String", "baseCurve": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } ], "fileIds": [ "Example String" ], "quantity": 40, "comment": "Example String", "contacts": { "products": { "right": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 }, "left": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } }, "prescription": { "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "patient": { "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" }, "products": { "right": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 }, "left": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } }, "issueDate": "Example String", "expirationDate": "Example String" } }, "options": { "contactsSuggestion": { "jobId": "Example String" }, "contactsPrescriptionVerification": { "jobId": "Example String" }, "contactsPrescriptionIssuance": { "jobId": "Example String", "sendText": true, "sendEmail": true, "buyLink": true }, "contactsFulfillment": { "jobId": "Example String" }, "wait": 40 }, "tags": [ { "name": "Example String", "value": "Example String" } ] } } ], "tags": [ { "name": "Example String", "value": "Example String" } ] }
Response sample
{ "data": { "orderId": "Example String", "status": "Example String" } }

submitContactPrescriptionVerificationRequestdeprecated

(...args)

Deprecation reason

Use verifyContactsPrescription.

Submit a contact prescription verification request

Arguments

patient
PatientInput!,non-nullrequired

Patient information

doctorId
String

The doctor ID from the doctors query (conditionally required if doctor is not set)

Doctor details (conditionally required if doctorId is not set)

products
[ContactProductInput]!,non-nullrequired

Ordered products

Prescriptions pertinent to the ordered products (conditionally required if fileIds is not set)

fileIds
[String]

File IDs from uploadFile for flat files containing prescription information (conditionally required if prescriptions is not set)

tags
[String]

Optional list of tags used to correlate this request with other systems

Return type

ContactPrescriptionVerificationRequest
id
String!,non-null

Unique ID for this request

Current request status

expirationDate
String

Prescription expiration date if it is available

comments
String

Comments entered by Doctor and/or Visibly

updatedAt
String!,non-null

Last date and time this request was updated

Mutation sample
mutation submitContactPrescriptionVerificationRequest(
  $patient: PatientInput!
  $doctorId: String
  $doctor: DoctorInput
  $products: [ContactProductInput]!
  $prescriptions: [ContactProductInput]
  $fileIds: [String]
  $tags: [String]
) {
  submitContactPrescriptionVerificationRequest(
    patient: $patient
    doctorId: $doctorId
    doctor: $doctor
    products: $products
    prescriptions: $prescriptions
    fileIds: $fileIds
    tags: $tags
  ) {
    id 
    status 
    expirationDate 
    comments 
    updatedAt 
  }
}
Variables
{ "patient": { "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" }, "doctorId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "products": [ { "productId": "Example String", "eye": "RIGHT", "sphere": "Example String", "diameter": "Example String", "baseCurve": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } ], "prescriptions": [ { "productId": "Example String", "eye": "RIGHT", "sphere": "Example String", "diameter": "Example String", "baseCurve": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } ], "fileIds": [ "Example String" ], "tags": [ "Example String" ] }
Response sample
{ "data": { "id": "Example String", "status": "NEW", "expirationDate": "Example String", "comments": "Example String", "updatedAt": "Example String" } }

startVisionTest

(...args)

Start a workflow utilizing one or more Visibly services

Arguments

Optional prescribed and ordered contacts

Optional prescribed and ordered glasses

Optional patient information

Optional List of tags used to correlate this vision test with other systems

Return type

Session
launchUrl
String!,non-null

The launch URL for the vision test

jobId
String

The job ID for the vision-test job (if applicable, simulation support only)

Mutation sample
mutation startVisionTest(
  $contacts: ContactsInput
  $glasses: GlassesInput
  $patient: PatientInput
  $tags: [TagInput]
) {
  startVisionTest(
    contacts: $contacts
    glasses: $glasses
    patient: $patient
    tags: $tags
  ) {
    launchUrl 
    jobId 
  }
}
Variables
{ "contacts": { "products": { "right": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 }, "left": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } }, "prescription": { "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "patient": { "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" }, "products": { "right": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 }, "left": { "productId": "Example String", "diameter": "Example String", "baseCurve": "Example String", "sphere": "Example String", "axis": "Example String", "cylinder": "Example String", "addition": "Example String", "dominance": "Example String", "color": "Example String", "packageSize": 40, "quantity": 40 } }, "issueDate": "Example String", "expirationDate": "Example String" } }, "glasses": { "lenses": { "right": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "frame": { "sku": "Example String" }, "prescription": { "fileId": "Example String", "prescriptionId": "Example String", "doctor": { "doctorId": "Example String", "doctorName": "Example String", "practiceName": "Example String", "phoneNumber": "Example String", "faxNumber": "Example String", "email": "Example String", "address": "Example String", "address2": "Example String", "city": "Example String", "state": "Example String", "zipCode": "Example String", "url": "Example String" }, "patient": { "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" }, "corrections": [ { "right": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "left": { "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } }, "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": { "intermediate": 40, "near": 40, "distance": 40 }, "segmentHeight": "Example String", "prism": { "horizontal": { "power": "Example String", "direction": "IN" }, "vertical": { "power": "Example String", "direction": "UP" } } } ], "issueDate": "Example String", "expirationDate": "Example String" } }, "patient": { "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" }, "tags": [ { "name": "Example String", "value": "Example String" } ] }
Response sample
{ "data": { "launchUrl": "Example String", "jobId": "Example String" } }

mapProducts

(products)

Arguments

products

List of products and parameters to map against their base products using either baseId or productKey

Return type

ContactProductMappingResponse
ok
String!,non-null
Mutation sample
mutation mapProducts($products: [ContactProductMappingInput]!) {
  mapProducts(products: $products) {
    ok 
  }
}
Variables
{ "products": [ { "baseId": "Example String", "productKey": "Example String", "productId": "Example String", "manufacturer": "Example String", "brand": "Example String", "sphere": [ "Example String" ], "diameter": [ "Example String" ], "baseCurve": [ "Example String" ], "axis": [ "Example String" ], "cylinder": [ "Example String" ], "addition": [ "Example String" ], "dominance": [ "Example String" ], "color": [ "Example String" ], "packageSize": [ "Example String" ] } ] }
Response sample
{ "data": { "ok": "Example String" } }

Directives

Overview

Objects

Overview

Interfaces

Overview

Enums

Overview

Inputs

Overview