# saveOrder

**Type:** GraphQL mutations

**Description:**
Save order details

## Arguments
- order (OrderInput): Order details
  - orderId (String): Unique order ID
  - orderedAt (String): Date and time when the order was placed in ISO 8601 format
  - total (Float): Total order amount
  - customer (CustomerInput, Not Null): Customer information
    - 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
  - shipping (ShippingInput, Not Null): Shipping details
    - method (String): Shipping method
    - address (ShippingAddressInput): Shipping address, customer address by default
      - to (String): Name of the recipient if different than the Patient name
      - address (String): Street address #1
      - address2 (String): Street address #2
      - city (String): City
      - state (String): State
      - zipCode (String): Zip code
  - items (ItemInput): Items in the order
    - type (ItemType, Not Null): undefined

    - itemId (String)
    - description (String)
    - comment (String)
    - glasses (GlassesItemInput): undefined
      - lens (LensInput)
      - frame (FrameInput)
      - protection (Boolean)
      - comment (String)
      - glasses (GlassesInput)
      - options (GlassesJobOptionsInput)
      - tags (TagInput)
      - quantity (Int)
    - lensReplacement (LensReplacementItemInput): undefined
      - box (Boolean)
      - lens (LensInput)
      - protection (Boolean)
      - quantity (Int)
      - comment (String)
    - contacts (ContactsItemInput): undefined
      - patient (PatientInput): Optional patient information
      - doctorId (String): Optional doctor Id
      - doctor (DoctorInput): Optional doctor information
      - products (ContactProductInput): Optional ordered products
      - prescriptions (ContactProductInput): Prescriptions pertinent to the ordered products
      - fileIds (String): File IDs from *uploadFile* for flat files containing prescription information
      - quantity (Int)
      - comment (String)
      - contacts (ContactsInput)
      - options (ContactsJobOptionsInput)
      - tags (TagInput)

## Response
**Type:** Boolean
