{
  "openapi": "3.0.4",
  "info": {
    "title": "RestasisAPICore",
    "version": "1.0"
  },
  "paths": {
    "/api/Lookup/userexists/{email}": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Lookup/specialoffer/{email}": {
      "get": {
        "tags": [
          "Lookup"
        ],
        "parameters": [
          {
            "name": "email",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Presbysol/ConsumerSignUp": {
      "post": {
        "tags": [
          "Presbysol"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Presbysol/HCPSignUp": {
      "post": {
        "tags": [
          "Presbysol"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Presbysol/UnSubscribe": {
      "post": {
        "tags": [
          "Presbysol"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PresbysolLoyalty/ConsumerSignUp": {
      "post": {
        "tags": [
          "PresbysolLoyalty"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PresbysolLoyalty/DoubleSMSOptIn": {
      "post": {
        "tags": [
          "PresbysolLoyalty"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PresbysolUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/PresbysolLoyalty/DeleteProfile": {
      "post": {
        "tags": [
          "PresbysolLoyalty"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteUser"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteUser"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteUser"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteUser"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Restasis": {
      "get": {
        "tags": [
          "Restasis"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/Restasis/UpsertUser": {
      "post": {
        "tags": [
          "Restasis"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Restasis/CreateSurvey": {
      "post": {
        "tags": [
          "Restasis"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Restasis/CreateResponse": {
      "post": {
        "tags": [
          "Restasis"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Restasis/Unsubscribe": {
      "post": {
        "tags": [
          "Restasis"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Restasis/GetCard": {
      "post": {
        "tags": [
          "Restasis"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/User"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ISavingsCardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ISavingsCardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ISavingsCardResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/Restasis/AddResponseCode": {
      "post": {
        "tags": [
          "Restasis"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SavingsCardRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavingsCardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SavingsCardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SavingsCardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ISavingsCardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ISavingsCardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ISavingsCardResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DeleteUser": {
        "type": "object",
        "properties": {
          "ExternalContactId": {
            "type": "string",
            "nullable": true
          },
          "SourceId": {
            "type": "integer",
            "format": "int32"
          },
          "WebSiteId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "IResponse": {
        "type": "object",
        "properties": {
          "Status": {
            "type": "string",
            "nullable": true
          },
          "Message": {
            "type": "string",
            "nullable": true
          },
          "ResponseObject": {
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ISavingsCardResponse": {
        "type": "object",
        "properties": {
          "Code": {
            "$ref": "#/components/schemas/ResponseStatusCode"
          },
          "IsValid": {
            "type": "boolean"
          },
          "Message": {
            "type": "string",
            "nullable": true
          },
          "ExternalContactId": {
            "type": "string",
            "nullable": true
          },
          "NewOldPatientFlag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Member": {
        "type": "object",
        "properties": {
          "CardProviderTrasactionId": {
            "type": "string",
            "nullable": true
          },
          "Group": {
            "type": "string",
            "nullable": true
          },
          "Group30": {
            "type": "string",
            "nullable": true
          },
          "Group90": {
            "type": "string",
            "nullable": true
          },
          "MemberId": {
            "type": "string",
            "nullable": true
          },
          "MasterProgram": {
            "type": "string",
            "nullable": true
          },
          "ProgramReprint": {
            "type": "string",
            "nullable": true
          },
          "ActivationDateTime": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OptIn": {
        "type": "object",
        "properties": {
          "OptValue": {
            "type": "integer",
            "format": "int32"
          },
          "TopicId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "StatusId": {
            "$ref": "#/components/schemas/OptStatus"
          }
        },
        "additionalProperties": false
      },
      "OptStatus": {
        "enum": [
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "PresbysolUser": {
        "type": "object",
        "properties": {
          "ExternalContactId": {
            "type": "string",
            "nullable": true
          },
          "UserProfileId": {
            "type": "string",
            "format": "uuid"
          },
          "Transactionid": {
            "type": "integer",
            "format": "int32"
          },
          "FirstName": {
            "type": "string",
            "nullable": true
          },
          "LastName": {
            "type": "string",
            "nullable": true
          },
          "DateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "EmailAddress": {
            "type": "string",
            "nullable": true
          },
          "EmailStatusCode": {
            "type": "string",
            "nullable": true
          },
          "EmailValid": {
            "type": "string",
            "nullable": true
          },
          "Address1": {
            "type": "string",
            "nullable": true
          },
          "Address2": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "StateCode": {
            "type": "string",
            "nullable": true
          },
          "ZipCode": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          },
          "MobilePhone": {
            "type": "string",
            "nullable": true
          },
          "GroupNumber": {
            "type": "string",
            "nullable": true
          },
          "CampaignId": {
            "type": "string",
            "nullable": true
          },
          "GovermentHealthCare": {
            "type": "string",
            "nullable": true
          },
          "OptIn": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptIn"
            },
            "nullable": true
          },
          "Survey": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Survey"
            },
            "nullable": true
          },
          "ResponseCode": {
            "type": "string",
            "nullable": true
          },
          "RegistrationType": {
            "type": "integer",
            "format": "int32"
          },
          "Emailcode": {
            "type": "string",
            "nullable": true
          },
          "MergedProfile": {
            "type": "boolean",
            "nullable": true
          },
          "TopicId": {
            "type": "string",
            "nullable": true
          },
          "AEM_Transaction_ID": {
            "type": "string",
            "nullable": true
          },
          "AEM_UUID": {
            "type": "string",
            "nullable": true
          },
          "Signature": {
            "type": "boolean",
            "nullable": true
          },
          "SignatureDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "SourceId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "WebSiteId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "Presbyope": {
            "type": "boolean",
            "nullable": true
          },
          "MemberId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Replacecard": {
        "type": "object",
        "properties": {
          "RetrievalGroupNumber90Days": {
            "type": "string",
            "nullable": true
          },
          "RetrievalGroupNumber30Days": {
            "type": "string",
            "nullable": true
          },
          "MemberId": {
            "type": "string",
            "nullable": true
          },
          "LostCardStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResponseStatusCode": {
        "enum": [
          200,
          210,
          300,
          301,
          302,
          303,
          304,
          305,
          306,
          307,
          308,
          400,
          500,
          600,
          601
        ],
        "type": "integer",
        "format": "int32"
      },
      "SavingsCardMember": {
        "type": "object",
        "properties": {
          "MemberId": {
            "type": "string",
            "nullable": true
          },
          "GroupNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SavingsCardRequest": {
        "type": "object",
        "properties": {
          "SavingsCardId": {
            "type": "string",
            "nullable": true
          },
          "SourceId": {
            "type": "integer",
            "format": "int32"
          },
          "WebsiteId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Source": {
        "type": "object",
        "properties": {
          "SourceId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Survey": {
        "type": "object",
        "properties": {
          "SurveyId": {
            "type": "integer",
            "format": "int32"
          },
          "QuestionId": {
            "type": "integer",
            "format": "int32"
          },
          "AnswerId": {
            "type": "integer",
            "format": "int32"
          },
          "AnswerText": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "User": {
        "type": "object",
        "properties": {
          "ContactDummyID": {
            "type": "integer",
            "format": "int32"
          },
          "UserProfileId": {
            "type": "string",
            "format": "uuid"
          },
          "CRMRecipientId": {
            "type": "string",
            "nullable": true
          },
          "Transactionid": {
            "type": "integer",
            "format": "int32"
          },
          "FirstName": {
            "type": "string",
            "nullable": true
          },
          "LastName": {
            "type": "string",
            "nullable": true
          },
          "Email": {
            "type": "string",
            "nullable": true
          },
          "EmailValid": {
            "type": "string",
            "nullable": true
          },
          "Address1": {
            "type": "string",
            "nullable": true
          },
          "Address2": {
            "type": "string",
            "nullable": true
          },
          "City": {
            "type": "string",
            "nullable": true
          },
          "StateCode": {
            "type": "string",
            "nullable": true
          },
          "ZipCode": {
            "type": "string",
            "nullable": true
          },
          "Phone": {
            "type": "string",
            "nullable": true
          },
          "MobilePhone": {
            "type": "string",
            "nullable": true
          },
          "GroupNumber": {
            "type": "string",
            "nullable": true
          },
          "MemberId": {
            "type": "string",
            "nullable": true
          },
          "CampaignId": {
            "type": "string",
            "nullable": true
          },
          "GovermentHealthCare": {
            "type": "string",
            "nullable": true
          },
          "Opt": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OptIn"
            },
            "nullable": true
          },
          "Survey": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Survey"
            },
            "nullable": true
          },
          "SourceResponses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            },
            "nullable": true
          },
          "Replacecard": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Replacecard"
            },
            "nullable": true
          },
          "Member": {
            "$ref": "#/components/schemas/Member"
          },
          "Source": {
            "$ref": "#/components/schemas/Source"
          },
          "ResponseCode": {
            "type": "string",
            "nullable": true
          },
          "RegistrationType": {
            "type": "integer",
            "format": "int32"
          },
          "Emailcode": {
            "type": "string",
            "nullable": true
          },
          "MergedProfile": {
            "type": "boolean",
            "nullable": true
          },
          "TopicId": {
            "type": "string",
            "nullable": true
          },
          "CreatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "EXT_RECORD_TS": {
            "type": "string",
            "nullable": true
          },
          "Carddata": {
            "$ref": "#/components/schemas/SavingsCardMember"
          },
          "SMSCommunicationOpt": {
            "type": "boolean"
          },
          "ThirdpartyOpt": {
            "type": "boolean"
          },
          "AEM_TransactionID": {
            "type": "string",
            "nullable": true
          },
          "AEM_UUID": {
            "type": "string",
            "nullable": true
          },
          "Signature": {
            "type": "boolean",
            "nullable": true
          },
          "SignatureDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "SourceId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "BIN": {
            "type": "string",
            "nullable": true
          },
          "PCN": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}