openapi: 3.1.0
info:
  title: ows-email-campaigns
  description: Email Campaigns
  version: 1.0.0
servers:
- url: https://qa-email-campaigns-center.theorchard.io
paths:
  /hello/:
    get:
      tags:
      - Infra
      summary: Hello
      operationId: hello
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HelloResponse'
  /domains:
    get:
      tags:
      - Domains
      summary: Get Email Domains
      operationId: getEmailDomains
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: vendorId
        in: query
        required: true
        schema:
          type: integer
          description: Account vendor id
          title: Vendorid
        description: Account vendor id
      - name: subaccountId
        in: query
        required: true
        schema:
          type: integer
          description: Account subaccount id
          title: Subaccountid
        description: Account subaccount id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EmailDomain'
                title: Response Getemaildomains
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/list:
    post:
      tags:
      - Campaigns
      summary: Get Campaigns
      operationId: getCampaigns
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetEmailCampaignsInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitOffsetPage_EmailCampaign_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /campaigns/search:
    post:
      tags:
      - Campaigns
      summary: Search Campaigns
      operationId: searchCampaigns
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchCampaignsInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/CampaignPreview'
                type: array
                title: Response Searchcampaigns
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /campaigns:
    post:
      tags:
      - Campaigns
      summary: Create Email Campaign
      operationId: createEmailCampaign
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEmailCampaignInput'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaign'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/InvalidGlobalParticipantIdError'
                - $ref: '#/components/schemas/InvalidAccountError'
                - $ref: '#/components/schemas/EmailCampaignUniqueNameError'
                - $ref: '#/components/schemas/InvalidCustomListIdError'
                - $ref: '#/components/schemas/FanDataListIdIsRequiredError'
                title: Response 400 Createemailcampaign
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /campaigns/{campaignId}:
    put:
      tags:
      - Campaigns
      summary: Update Email Campaign
      operationId: updateEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmailCampaignInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaign'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
                - $ref: '#/components/schemas/EmailCampaignUniqueNameError'
                - $ref: '#/components/schemas/InvalidGlobalParticipantIdError'
                - $ref: '#/components/schemas/InvalidAudienceIdError'
                - $ref: '#/components/schemas/ArchivedAudienceError'
                - $ref: '#/components/schemas/NotSupportedAudienceTargetError'
                - $ref: '#/components/schemas/EmptyAudienceError'
                - $ref: '#/components/schemas/InvalidEmailDomainIdError'
                - $ref: '#/components/schemas/InvalidCustomListIdError'
                - $ref: '#/components/schemas/FanDataListIdIsRequiredError'
                title: Response 400 Updateemailcampaign
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MalformedEmailCampaignError'
          description: Internal Server Error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Campaigns
      summary: Delete Email Campaign
      operationId: deleteEmailCampaignContent
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign
      operationId: getEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaign'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/preview:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Email Preview
      operationId: getCampaignEmailPreview
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      - name: applySubstitutions
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Applysubstitutions
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreview'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/content:
    patch:
      tags:
      - Campaigns
      summary: Update Email Campaign Content
      operationId: updateEmailCampaignContent
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmailContentInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreview'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/fonts:
    patch:
      tags:
      - Campaigns
      summary: Update Email Campaign Fonts
      operationId: updateEmailCampaignFonts
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmailFontsInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CustomFont'
                title: Response Updateemailcampaignfonts
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidGoogleFontError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/send-test-email:
    post:
      tags:
      - Campaigns
      summary: Send Test Email Campaign
      operationId: sendTestEmail
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendTestEmailCampaignInput'
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailCampaignRequiredFieldsError'
                - $ref: '#/components/schemas/EmailCampaignSenderEmailNotValidError'
                title: Response 400 Sendtestemail
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/schedule:
    post:
      tags:
      - Campaigns
      summary: Schedule Email Campaign
      operationId: scheduleEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduleEmailCampaignInput'
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
                - $ref: '#/components/schemas/EmailCampaignSendAtMustBeFutureError'
                - $ref: '#/components/schemas/EmailCampaignRequiredFieldsError'
                - $ref: '#/components/schemas/InvalidAudienceIdError'
                - $ref: '#/components/schemas/ArchivedAudienceError'
                - $ref: '#/components/schemas/NotSupportedAudienceTargetError'
                - $ref: '#/components/schemas/EmptyAudienceError'
                title: Response 400 Scheduleemailcampaign
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Campaigns
      summary: Edit Schedule Email Campaign
      operationId: editScheduleEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduleEmailCampaignInput'
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailCampaignMustBeScheduledError'
                - $ref: '#/components/schemas/EmailCampaignSendAtMustBeFutureError'
                - $ref: '#/components/schemas/EmailCampaignRequiredFieldsError'
                - $ref: '#/components/schemas/InvalidAudienceIdError'
                - $ref: '#/components/schemas/ArchivedAudienceError'
                - $ref: '#/components/schemas/NotSupportedAudienceTargetError'
                - $ref: '#/components/schemas/EmptyAudienceError'
                title: Response 400 Editscheduleemailcampaign
          description: Bad Request
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailDomainMissingError'
          description: Internal Server Error
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/unschedule:
    post:
      tags:
      - Campaigns
      summary: Unschedule Email Campaign
      operationId: unscheduleEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailCampaignMustBeScheduledError'
                - $ref: '#/components/schemas/CampaignAlreadyQueuedError'
                title: Response 400 Unscheduleemailcampaign
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/send:
    post:
      tags:
      - Campaigns
      summary: Send Email Campaign
      operationId: sendEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
                - $ref: '#/components/schemas/EmailCampaignRequiredFieldsError'
                - $ref: '#/components/schemas/InvalidAudienceIdError'
                - $ref: '#/components/schemas/ArchivedAudienceError'
                - $ref: '#/components/schemas/NotSupportedAudienceTargetError'
                - $ref: '#/components/schemas/EmptyAudienceError'
                title: Response 400 Sendemailcampaign
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/duplicate:
    post:
      tags:
      - Campaigns
      summary: Duplicate Email Campaign
      operationId: duplicateEmailCampaign
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DuplicateEmailCampaignInput'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaign'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignUniqueNameError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/status:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Live Status
      operationId: getCampaignLiveStatus
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCampaignLiveStatusOutput'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/stripo/token:
    get:
      tags:
      - Campaigns
      summary: Get Stripo Auth Token
      operationId: getEmailCampaignStripoAuthToken
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailStripoAuthTokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/internal:
    get:
      tags:
      - Campaigns
      - internal
      summary: Get Email Campaign Internal
      operationId: getEmailCampaignInternal
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignInternal'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignRequiredFieldsError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/analytics:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Analytics
      operationId: getEmailCampaignAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/analytics/links:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Link Analytics
      operationId: getEmailCampaignLinkAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailLinkAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/analytics/sales:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Sales Analytics
      operationId: getEmailCampaignSalesAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/analytics/sales/products:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Sales Products Analytics
      operationId: getEmailCampaignSalesProductsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesProductsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/analytics/sales/locations:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Sales Locations Analytics
      operationId: getEmailCampaignSalesLocationsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesLocationsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/analytics/sales/shops:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Sales Shops Analytics
      operationId: getEmailCampaignSalesShopsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesShopsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/autosave:
    post:
      tags:
      - Campaigns
      - internal
      summary: Autosave Email Campaign
      operationId: autosaveEmailCampaign
      security:
      - HTTPBasic: []
      parameters:
      - name: plugin-ui-data
        in: header
        required: false
        schema:
          anyOf:
          - type: string
            contentMediaType: application/json
            contentSchema:
              type: object
              additionalProperties: true
          - type: 'null'
          title: Plugin-Ui-Data
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutosaveEmailInput'
      responses:
        '200':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutosaveUnauthorizedError'
          description: Unauthorized
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/autosave/v2:
    post:
      tags:
      - Campaigns
      - internal
      summary: Autosave Email Campaign V2
      operationId: autosaveEmailCampaignV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutosaveEmailV2Input'
        required: true
      responses:
        '200':
          description: Successful Response
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignMustBeDraftError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutosaveUnauthorizedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
  /campaigns/{campaignId}/send-estimation:
    get:
      tags:
      - Campaigns
      summary: Estimate Email Campaign Send Time
      operationId: estimateEmailCampaignSendTime
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      - name: sendAt
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Sendat
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EstimateSendTimeResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/send-estimation:
    post:
      tags:
      - Campaigns
      summary: Bulk Estimate Email Campaign Send Time
      operationId: bulkEstimateEmailCampaignSendTime
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkEstimateSendTimeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/CampaignEstimate'
                type: array
                title: Response Bulkestimateemailcampaignsendtime
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /campaigns/{campaignId}/privacy-footer:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Privacy Footer
      operationId: getEmailCampaignPrivacyFooter
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPrivacyFooter'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns/{campaignId}/public-preview-url:
    post:
      tags:
      - Campaigns
      summary: Generate Email Campaign Public Preview Url
      operationId: generateEmailCampaignPublicPreviewUrl
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateEmailPublicPreviewUrlInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateEmailPublicPreviewUrlResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailCampaignNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /campaigns-public-preview/hello/:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Public Hello
      operationId: get_email_campaign_public_hello_campaigns_public_preview_hello__get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HelloResponse'
  /campaigns-public-preview/{campaignId}:
    get:
      tags:
      - Campaigns
      summary: Get Email Campaign Public Preview
      operationId: getEmailCampaignPublicPreview
      parameters:
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      - name: pwd
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Pwd
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/autosave:
    post:
      tags:
      - Automated
      - internal
      summary: Autosave Automated Email Campaign
      operationId: autosaveAutomatedEmailCampaign
      security:
      - HTTPBasic: []
      parameters:
      - name: plugin-ui-data
        in: header
        required: false
        schema:
          anyOf:
          - type: string
            contentMediaType: application/json
            contentSchema:
              type: object
              additionalProperties: true
          - type: 'null'
          title: Plugin-Ui-Data
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutosaveEmailInput'
      responses:
        '200':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutosaveUnauthorizedError'
          description: Unauthorized
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/autosave/v2:
    post:
      tags:
      - Automated
      - internal
      summary: Autosave Automated Email Campaign V2
      operationId: autosaveAutomatedEmailCampaignV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutosaveEmailV2Input'
        required: true
      responses:
        '200':
          description: Successful Response
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutosaveUnauthorizedError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBasic: []
  /automated/list:
    post:
      tags:
      - Automated
      summary: Get Automated Emails
      operationId: getAutomatedEmails
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetAutomatedEmailsInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitOffsetPage_AutomatedEmail_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /automated:
    post:
      tags:
      - Automated
      summary: Create Automated Email
      operationId: createAutomatedEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAutomatedEmailInput'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /automated/{emailId}:
    get:
      tags:
      - Automated
      summary: Get Automated Email
      operationId: getAutomatedEmail
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmail'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Automated
      summary: Update Automated Email
      operationId: updateAutomatedEmail
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAutomatedEmailInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmail'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/AutomatedEmailUniqueNameError'
                - $ref: '#/components/schemas/AutomatedEmailSenderEmailNotValidError'
                - $ref: '#/components/schemas/InvalidGlobalParticipantIdError'
                - $ref: '#/components/schemas/InvalidEmailDomainIdError'
                - $ref: '#/components/schemas/InvalidCustomListIdError'
                title: Response 400 Updateautomatedemail
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Automated
      summary: Delete Automated Email
      operationId: deleteAutomatedEmail
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailHasTriggerError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/status:
    get:
      tags:
      - Automated
      summary: Get Automated Email Status
      operationId: getAutomatedEmailStatus
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailStatus'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/duplicate:
    post:
      tags:
      - Automated
      summary: Duplicate Automated Email
      operationId: duplicateAutomatedEmail
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DuplicateAutomatedEmailInput'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmail'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailUniqueNameError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/preview:
    get:
      tags:
      - Automated
      summary: Get Automated Email Preview
      operationId: getAutomatedEmailPreview
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      - name: applySubstitutions
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Applysubstitutions
      - name: withUnappliedChanges
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Withunappliedchanges
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreview'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/content:
    patch:
      tags:
      - Automated
      summary: Update Automated Email Content
      operationId: updateAutomatedEmailContent
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmailContentInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPreview'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/fonts:
    patch:
      tags:
      - Automated
      summary: Update Automated Email Fonts
      operationId: updateAutomatedEmailFonts
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEmailFontsInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomFontsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidGoogleFontError'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/privacy-footer:
    get:
      tags:
      - Automated
      summary: Get Automated Email Privacy Footer
      operationId: getAutomatedEmailPrivacyFooter
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailPrivacyFooter'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/analytics:
    get:
      tags:
      - Automated
      summary: Get Automated Email Analytics
      operationId: getAutomatedEmailAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/analytics/links:
    get:
      tags:
      - Automated
      summary: Get Automated Email Link Analytics
      operationId: getAutomatedEmailLinkAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailLinkAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/analytics/sales:
    get:
      tags:
      - Automated
      summary: Get Automated Email Sales Analytics
      operationId: getAutomatedEmailSalesAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/analytics/sales/products:
    get:
      tags:
      - Automated
      summary: Get Automated Email Sales Products Analytics
      operationId: getAutomatedEmailSalesProductsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesProductsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/analytics/sales/locations:
    get:
      tags:
      - Automated
      summary: Get Automated Email Sales Locations Analytics
      operationId: getAutomatedEmailSalesLocationsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesLocationsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/analytics/sales/shops:
    get:
      tags:
      - Automated
      summary: Get Automated Email Sales Shops Analytics
      operationId: getAutomatedEmailSalesShopsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesShopsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/send-test-email:
    post:
      tags:
      - Automated
      summary: Send Automated Test Email
      operationId: sendAutomatedTestEmail
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendAutomatedTestEmailInput'
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailContentRequiredFieldsError'
                - $ref: '#/components/schemas/EmailSenderEmailNotValidError'
                - $ref: '#/components/schemas/EmailPrivacyFooterMissingError'
                title: Response 400 Sendautomatedtestemail
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/stripo/token:
    get:
      tags:
      - Automated
      summary: Get Automated Email Stripo Auth Token
      operationId: getAutomatedEmailStripoAuthToken
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailStripoAuthTokenResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/public-preview-url:
    post:
      tags:
      - Automated
      summary: Generate Automated Email Public Preview Url
      operationId: generateAutomatedEmailPublicPreviewUrl
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateEmailPublicPreviewUrlInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateEmailPublicPreviewUrlResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/source-campaigns/attach:
    put:
      tags:
      - Automated
      summary: Attach Source Campaigns
      operationId: attachSourceCampaigns
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttachSourceCampaignsInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmail'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/EmailContentRequiredFieldsError'
                - $ref: '#/components/schemas/EmailPrivacyFooterMissingError'
                - $ref: '#/components/schemas/EmailSenderEmailNotValidError'
                - $ref: '#/components/schemas/InvalidSourceCampaignIdError'
                - $ref: '#/components/schemas/SourceCampaignConnectionsEmptyError'
                - $ref: '#/components/schemas/SourceCampaignSubscriptionOnlyRequiredError'
                - $ref: '#/components/schemas/SourceCampaignVendorMismatchError'
                title: Response 400 Attachsourcecampaigns
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/apply-changes:
    post:
      tags:
      - Automated
      summary: Apply Automated Email Changes
      operationId: applyAutomatedEmailChanges
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmailStatus'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated/{emailId}/source-campaigns/detach:
    post:
      tags:
      - Automated
      summary: Detach Source Campaigns
      operationId: detachSourceCampaigns
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DetachSourceCampaignsInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomatedEmail'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailNotFoundError'
          description: Not Found
        '400':
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/InvalidSourceCampaignIdError'
                - $ref: '#/components/schemas/SourceCampaignNotAttachedError'
                title: Response 400 Detachsourcecampaigns
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /automated-emails-public-preview/{emailId}:
    get:
      tags:
      - Automated
      summary: Get Automated Email Public Preview
      operationId: getAutomatedEmailPublicPreview
      parameters:
      - name: emailId
        in: path
        required: true
        schema:
          type: string
          title: Emailid
      - name: pwd
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Pwd
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /source-campaigns/list:
    post:
      tags:
      - Source Campaigns
      summary: Get Source Campaigns
      operationId: getSourceCampaigns
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetSourceCampaignsInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitOffsetPage_SourceCampaign_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
  /source-campaigns/{source}/{campaignId}/automated-emails:
    get:
      tags:
      - Source Campaigns
      - internal
      summary: Get Source Campaign Automated Emails
      operationId: getSourceCampaignAutomatedEmails
      security:
      - JWTAuthorization: []
      parameters:
      - name: source
        in: path
        required: true
        schema:
          type: string
          title: Source
      - name: campaignId
        in: path
        required: true
        schema:
          type: string
          title: Campaignid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSourceCampaignAutomatedEmailsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceCampaignNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /fonts/google:
    get:
      tags:
      - Fonts
      summary: Get Google Fonts
      operationId: getGoogleFonts
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: search
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/GoogleFont'
                title: Response Getgooglefonts
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports:
    get:
      tags:
      - Email Reporting
      summary: List Email Reporting Reports
      operationId: listEmailReportingReports
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: name
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            maximum: 200
            minimum: 1
          - type: 'null'
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
            minimum: 0
          - type: 'null'
          title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitOffsetPage_EmailReportingReportSummaryResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Email Reporting
      summary: Create Email Reporting Report
      operationId: createEmailReportingReport
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailReportingReportInput'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report
      operationId: getEmailReportingReport
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - Email Reporting
      summary: Update Email Reporting Report
      operationId: updateEmailReportingReport
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailReportingReportInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Email Reporting
      summary: Delete Email Reporting Report
      operationId: deleteEmailReportingReport
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '204':
          description: Successful Response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}/analytics:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report Analytics
      operationId: getEmailReportingReportAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailReportingAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}/analytics/links:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report Link Analytics
      operationId: getEmailReportingReportLinkAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailReportingReportLinkAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}/analytics/sales:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report Sales Analytics
      operationId: getEmailReportingReportSalesAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}/analytics/sales/products:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report Sales Products Analytics
      operationId: getEmailReportingReportSalesProductsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesProductsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}/analytics/sales/locations:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report Sales Locations Analytics
      operationId: getEmailReportingReportSalesLocationsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesLocationsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /email-reporting/reports/{reportId}/analytics/sales/shops:
    get:
      tags:
      - Email Reporting
      summary: Get Email Reporting Report Sales Shops Analytics
      operationId: getEmailReportingReportSalesShopsAnalytics
      security:
      - JWTAuthorization: []
      - OrchardIdentityId: []
      parameters:
      - name: reportId
        in: path
        required: true
        schema:
          type: string
          title: Reportid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEmailSalesShopsAnalyticsResponse'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailReportingReportNotFoundError'
          description: Not Found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ArchivedAudienceError:
      properties:
        code:
          type: string
          const: archived_audience
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: ArchivedAudienceError
    AttachSourceCampaignsInput:
      properties:
        connectTo:
          items:
            $ref: '#/components/schemas/SourceCampaignConnection'
          type: array
          title: Connectto
      type: object
      required:
      - connectTo
      title: AttachSourceCampaignsInput
    Audience:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        fanCount:
          type: integer
          title: Fancount
        isArchived:
          type: boolean
          title: Isarchived
        target:
          $ref: '#/components/schemas/AudienceTarget'
      type: object
      required:
      - id
      - name
      - fanCount
      - isArchived
      - target
      title: Audience
    AudienceTarget:
      type: string
      enum:
      - ADS
      - TEXT
      - EMAIL
      title: AudienceTarget
    AutomatedEmail:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        type:
          $ref: '#/components/schemas/AutomatedEmailType'
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        fanDataListId:
          anyOf:
          - $ref: '#/components/schemas/FanDataListId'
          - type: 'null'
        senderName:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendername
        emailUsername:
          anyOf:
          - type: string
          - type: 'null'
          title: Emailusername
        emailDomain:
          anyOf:
          - $ref: '#/components/schemas/EmailDomain'
          - type: 'null'
        subject:
          anyOf:
          - type: string
          - type: 'null'
          title: Subject
        previewText:
          anyOf:
          - type: string
          - type: 'null'
          title: Previewtext
        isAutomated:
          type: boolean
          title: Isautomated
        connectedTo:
          items:
            $ref: '#/components/schemas/AutomatedEmailTrigger'
          type: array
          title: Connectedto
        lastSentAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Lastsentat
        analytics:
          anyOf:
          - $ref: '#/components/schemas/EmailAnalytics'
          - type: 'null'
        hasUnappliedChanges:
          type: boolean
          title: Hasunappliedchanges
        createdAt:
          type: string
          format: date-time
          title: Createdat
        createdBy:
          type: string
          title: Createdby
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        updatedBy:
          type: string
          title: Updatedby
      type: object
      required:
      - id
      - name
      - type
      - vendorId
      - subaccountId
      - emailDomain
      - isAutomated
      - connectedTo
      - lastSentAt
      - hasUnappliedChanges
      - createdAt
      - createdBy
      - updatedAt
      - updatedBy
      title: AutomatedEmail
    AutomatedEmailHasTriggerError:
      properties:
        code:
          type: string
          const: email_campaign_has_trigger_error
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: AutomatedEmailHasTriggerError
    AutomatedEmailNotFoundError:
      properties:
        code:
          type: string
          const: automated_email_not_found
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: AutomatedEmailNotFoundError
    AutomatedEmailSenderEmailNotValidError:
      properties:
        code:
          type: string
          const: automated_email_sender_email_not_valid
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: AutomatedEmailSenderEmailNotValidError
    AutomatedEmailStatus:
      properties:
        isAutomated:
          type: boolean
          title: Isautomated
        hasUnappliedChanges:
          type: boolean
          title: Hasunappliedchanges
      type: object
      required:
      - isAutomated
      - hasUnappliedChanges
      title: AutomatedEmailStatus
    AutomatedEmailTrigger:
      properties:
        subscriptionOnly:
          type: boolean
          title: Subscriptiononly
        sourceCampaign:
          $ref: '#/components/schemas/SourceCampaign'
      type: object
      required:
      - subscriptionOnly
      - sourceCampaign
      title: AutomatedEmailTrigger
    AutomatedEmailType:
      type: string
      enum:
      - TRIGGERED
      - OPT_IN
      title: AutomatedEmailType
    AutomatedEmailUniqueNameError:
      properties:
        code:
          type: string
          const: automated_email_unique_name
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: AutomatedEmailUniqueNameError
    AutosaveEmailInput:
      properties:
        key:
          type: string
          title: Key
        emailId:
          type: string
          title: Emailid
        html:
          type: string
          title: Html
        css:
          type: string
          title: Css
      type: object
      required:
      - key
      - emailId
      - html
      - css
      title: AutosaveEmailInput
    AutosaveEmailV2Input:
      properties:
        emailId:
          type: string
          title: Emailid
        userId:
          type: string
          title: Userid
        dateTime:
          type: integer
          title: Datetime
      type: object
      required:
      - emailId
      - userId
      - dateTime
      title: AutosaveEmailV2Input
    AutosaveUnauthorizedError:
      properties:
        code:
          type: string
          const: unauthorized_autosave
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: AutosaveUnauthorizedError
    BulkEstimateSendTimeRequest:
      properties:
        campaignIds:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Campaignids
      type: object
      required:
      - campaignIds
      title: BulkEstimateSendTimeRequest
    CampaignAlreadyQueuedError:
      properties:
        code:
          type: string
          const: campaign_already_queued
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: CampaignAlreadyQueuedError
    CampaignEstimate:
      properties:
        campaignId:
          type: string
          title: Campaignid
        estimatedSendDuration:
          type: integer
          title: Estimatedsendduration
        emailsToSend:
          type: integer
          title: Emailstosend
      type: object
      required:
      - campaignId
      - estimatedSendDuration
      - emailsToSend
      title: CampaignEstimate
    CampaignPreview:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
      - id
      - name
      title: CampaignPreview
    CampaignSearchContext:
      type: string
      const: AUDIENCE
    CreateAutomatedEmailInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        type:
          $ref: '#/components/schemas/AutomatedEmailType'
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        fanDataListId:
          $ref: '#/components/schemas/FanDataListId'
        htmlContent:
          anyOf:
          - type: string
            format: base64
          - type: 'null'
          title: Htmlcontent
        cssContent:
          anyOf:
          - type: string
            format: base64
          - type: 'null'
          title: Csscontent
      type: object
      required:
      - name
      - type
      - vendorId
      - subaccountId
      - fanDataListId
      title: CreateAutomatedEmailInput
    CreateEmailCampaignInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        fanDataListId:
          $ref: '#/components/schemas/FanDataListId'
        htmlContent:
          anyOf:
          - type: string
            format: base64
          - type: 'null'
          title: Htmlcontent
        cssContent:
          anyOf:
          - type: string
            format: base64
          - type: 'null'
          title: Csscontent
      type: object
      required:
      - name
      - vendorId
      - subaccountId
      - fanDataListId
      title: CreateEmailCampaignInput
    CustomFont:
      properties:
        name:
          type: string
          title: Name
        cssFontFamily:
          type: string
          title: Cssfontfamily
        url:
          type: string
          title: Url
      type: object
      required:
      - name
      - cssFontFamily
      - url
      title: CustomFont
    CustomFontsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/CustomFont'
          type: array
          title: Items
      type: object
      required:
      - items
      title: CustomFontsResponse
    DetachSourceCampaignsInput:
      properties:
        disconnectFrom:
          items:
            type: string
          type: array
          title: Disconnectfrom
      type: object
      required:
      - disconnectFrom
      title: DetachSourceCampaignsInput
    DuplicateAutomatedEmailInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
      type: object
      required:
      - name
      title: DuplicateAutomatedEmailInput
    DuplicateEmailCampaignInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
      type: object
      required:
      - name
      title: DuplicateEmailCampaignInput
    EmailAnalytics:
      properties:
        sends:
          type: integer
          title: Sends
        delivered:
          type: integer
          title: Delivered
        opens:
          type: integer
          title: Opens
        clicks:
          type: integer
          title: Clicks
        uniqueOpens:
          type: integer
          title: Uniqueopens
        uniqueClicks:
          type: integer
          title: Uniqueclicks
        bounces:
          type: integer
          title: Bounces
        spamComplaints:
          type: integer
          title: Spamcomplaints
        unsubscribes:
          type: integer
          title: Unsubscribes
        openRate:
          type: number
          title: Openrate
        deliveredRate:
          type: number
          title: Deliveredrate
        clickThroughRate:
          type: number
          title: Clickthroughrate
        clickToOpenRate:
          type: number
          title: Clicktoopenrate
        bounceRate:
          type: number
          title: Bouncerate
        spamComplaintsRate:
          type: number
          title: Spamcomplaintsrate
        unsubscribeRate:
          type: number
          title: Unsubscriberate
        uniqueClicksDropoff:
          anyOf:
          - type: number
          - type: 'null'
          title: Uniqueclicksdropoff
        uniqueOpensDropoff:
          anyOf:
          - type: number
          - type: 'null'
          title: Uniqueopensdropoff
        bounceRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Bounceratechange
        spamComplaintsRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Spamcomplaintsratechange
        unsubscribeRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Unsubscriberatechange
        openRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Openratechange
        deliveredRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Deliveredratechange
        uniqueClicksChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Uniqueclickschange
        clickThroughRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Clickthroughratechange
        clickToOpenRateChange:
          anyOf:
          - type: number
          - type: 'null'
          title: Clicktoopenratechange
      type: object
      required:
      - sends
      - delivered
      - opens
      - clicks
      - uniqueOpens
      - uniqueClicks
      - bounces
      - spamComplaints
      - unsubscribes
      - openRate
      - deliveredRate
      - clickThroughRate
      - clickToOpenRate
      - bounceRate
      - spamComplaintsRate
      - unsubscribeRate
      - uniqueClicksDropoff
      - uniqueOpensDropoff
      - bounceRateChange
      - spamComplaintsRateChange
      - unsubscribeRateChange
      - openRateChange
      - deliveredRateChange
      - uniqueClicksChange
      - clickThroughRateChange
      - clickToOpenRateChange
      title: EmailAnalytics
    EmailCampaign:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        fanDataListId:
          anyOf:
          - $ref: '#/components/schemas/FanDataListId'
          - type: 'null'
        status:
          $ref: '#/components/schemas/EmailCampaignStatus'
        audienceId:
          anyOf:
          - type: string
          - type: 'null'
          title: Audienceid
        senderName:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendername
        subject:
          anyOf:
          - type: string
          - type: 'null'
          title: Subject
        previewText:
          anyOf:
          - type: string
          - type: 'null'
          title: Previewtext
        emailDomain:
          anyOf:
          - $ref: '#/components/schemas/EmailDomain'
          - type: 'null'
        emailUsername:
          anyOf:
          - type: string
          - type: 'null'
          title: Emailusername
        sendAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Sendat
        sendAtTimezone:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendattimezone
        recipientsCount:
          type: integer
          title: Recipientscount
        cancelReason:
          anyOf:
          - $ref: '#/components/schemas/EmailCampaignCancelReason'
          - type: 'null'
        cancelledAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Cancelledat
        hasUnappliedChanges:
          type: boolean
          title: Hasunappliedchanges
        createdAt:
          type: string
          format: date-time
          title: Createdat
        createdBy:
          type: string
          title: Createdby
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        updatedBy:
          type: string
          title: Updatedby
        analytics:
          anyOf:
          - $ref: '#/components/schemas/EmailAnalytics'
          - type: 'null'
        audience:
          anyOf:
          - $ref: '#/components/schemas/Audience'
          - type: 'null'
      type: object
      required:
      - id
      - name
      - vendorId
      - subaccountId
      - status
      - audienceId
      - senderName
      - subject
      - previewText
      - emailDomain
      - emailUsername
      - sendAt
      - sendAtTimezone
      - recipientsCount
      - cancelReason
      - cancelledAt
      - hasUnappliedChanges
      - createdAt
      - createdBy
      - updatedAt
      - updatedBy
      title: EmailCampaign
    EmailCampaignCancelReason:
      type: string
      enum:
      - NO_FANS
      title: EmailCampaignCancelReason
    EmailCampaignErrorSummary:
      properties:
        audienceId:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        senderName:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        subject:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        emailDomainId:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        emailUsername:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        htmlContent:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
      type: object
      title: EmailCampaignErrorSummary
    EmailCampaignInternal:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        globalParticipantId:
          type: string
          title: Globalparticipantid
        status:
          $ref: '#/components/schemas/EmailCampaignStatus'
        audienceId:
          type: string
          title: Audienceid
        senderName:
          type: string
          title: Sendername
        html:
          type: string
          title: Html
        css:
          type: string
          title: Css
        subject:
          type: string
          title: Subject
        previewText:
          anyOf:
          - type: string
          - type: 'null'
          title: Previewtext
        emailDomain:
          $ref: '#/components/schemas/EmailDomain'
        emailUsername:
          type: string
          title: Emailusername
        sendAt:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Sendat
        sendAtTimezone:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendattimezone
        recipientsCount:
          type: integer
          title: Recipientscount
        createdAt:
          type: string
          format: date-time
          title: Createdat
        createdBy:
          type: string
          title: Createdby
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        updatedBy:
          type: string
          title: Updatedby
      type: object
      required:
      - id
      - name
      - vendorId
      - subaccountId
      - globalParticipantId
      - status
      - audienceId
      - senderName
      - html
      - css
      - subject
      - previewText
      - emailDomain
      - emailUsername
      - sendAt
      - sendAtTimezone
      - recipientsCount
      - createdAt
      - createdBy
      - updatedAt
      - updatedBy
      title: EmailCampaignInternal
    EmailCampaignMustBeDraftError:
      properties:
        code:
          type: string
          const: email_campaign_must_be_draft
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailCampaignMustBeDraftError
    EmailCampaignMustBeScheduledError:
      properties:
        code:
          type: string
          const: email_campaign_must_be_scheduled
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailCampaignMustBeScheduledError
    EmailCampaignNotFoundError:
      properties:
        code:
          type: string
          const: email_campaign_not_found
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailCampaignNotFoundError
    EmailCampaignRequiredFieldsError:
      properties:
        code:
          type: string
          const: email_campaign_required_fields
          title: Code
        message:
          type: string
          title: Message
        fieldErrors:
          $ref: '#/components/schemas/EmailCampaignErrorSummary'
      type: object
      required:
      - code
      - message
      - fieldErrors
      title: EmailCampaignRequiredFieldsError
    EmailCampaignSendAtMustBeFutureError:
      properties:
        code:
          type: string
          const: email_campaign_send_at_must_be_future
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailCampaignSendAtMustBeFutureError
    EmailCampaignSenderEmailNotValidError:
      properties:
        code:
          type: string
          const: email_campaign_sender_email_not_valid
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailCampaignSenderEmailNotValidError
    EmailCampaignStatus:
      type: string
      enum:
      - DRAFT
      - SCHEDULED
      - IN_PROGRESS
      - CANCELLED
      - SENT
      title: EmailCampaignStatus
    EmailCampaignUniqueNameError:
      properties:
        code:
          type: string
          const: email_campaign_unique_name
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailCampaignUniqueNameError
    EmailContentErrorSummary:
      properties:
        senderName:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        subject:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        emailDomainId:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        emailUsername:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
        htmlContent:
          anyOf:
          - $ref: '#/components/schemas/Error'
          - type: 'null'
      type: object
      title: EmailContentErrorSummary
    EmailContentRequiredFieldsError:
      properties:
        code:
          type: string
          const: email_content_required_fields
          title: Code
        message:
          type: string
          title: Message
        fieldErrors:
          $ref: '#/components/schemas/EmailContentErrorSummary'
      type: object
      required:
      - code
      - message
      - fieldErrors
      title: EmailContentRequiredFieldsError
    EmailDomain:
      properties:
        id:
          type: string
          title: Id
        domain:
          type: string
          title: Domain
        brand:
          type: string
          title: Brand
      type: object
      required:
      - id
      - domain
      - brand
      title: EmailDomain
    EmailDomainMissingError:
      properties:
        code:
          type: string
          const: email_missing_domain
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailDomainMissingError
    EmailLinkAnalytics:
      properties:
        url:
          type: string
          title: Url
        totalClicks:
          type: integer
          title: Totalclicks
        uniqueClicks:
          type: integer
          title: Uniqueclicks
        percentageOfTotalClicks:
          type: number
          title: Percentageoftotalclicks
      type: object
      required:
      - url
      - totalClicks
      - uniqueClicks
      - percentageOfTotalClicks
      title: EmailLinkAnalytics
    EmailNotFoundError:
      properties:
        code:
          type: string
          const: email_not_found
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailNotFoundError
    EmailPreview:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        subject:
          anyOf:
          - type: string
          - type: 'null'
          title: Subject
        previewText:
          anyOf:
          - type: string
          - type: 'null'
          title: Previewtext
        senderName:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendername
        html:
          anyOf:
          - type: string
          - type: 'null'
          title: Html
        css:
          anyOf:
          - type: string
          - type: 'null'
          title: Css
        customFonts:
          anyOf:
          - items:
              $ref: '#/components/schemas/CustomFont'
            type: array
          - type: 'null'
          title: Customfonts
        favoriteFonts:
          anyOf:
          - items:
              $ref: '#/components/schemas/CustomFont'
            type: array
          - type: 'null'
          title: Favoritefonts
      type: object
      required:
      - id
      - name
      - subject
      - previewText
      - senderName
      - html
      - css
      title: EmailPreview
    EmailPrivacyFooter:
      properties:
        content:
          type: string
          title: Content
      type: object
      required:
      - content
      title: EmailPrivacyFooter
    EmailPrivacyFooterMissingError:
      properties:
        code:
          type: string
          const: email_privacy_footer_missing
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailPrivacyFooterMissingError
    EmailReportingAnalytics:
      properties:
        sends:
          type: integer
          title: Sends
        delivered:
          type: integer
          title: Delivered
        opens:
          type: integer
          title: Opens
        clicks:
          type: integer
          title: Clicks
        bounces:
          type: integer
          title: Bounces
        spamComplaints:
          type: integer
          title: Spamcomplaints
        unsubscribes:
          type: integer
          title: Unsubscribes
        openRate:
          type: number
          title: Openrate
        deliveredRate:
          type: number
          title: Deliveredrate
        clickThroughRate:
          type: number
          title: Clickthroughrate
        clickToOpenRate:
          type: number
          title: Clicktoopenrate
        bounceRate:
          type: number
          title: Bouncerate
        spamComplaintsRate:
          type: number
          title: Spamcomplaintsrate
        unsubscribeRate:
          type: number
          title: Unsubscriberate
      type: object
      required:
      - sends
      - delivered
      - opens
      - clicks
      - bounces
      - spamComplaints
      - unsubscribes
      - openRate
      - deliveredRate
      - clickThroughRate
      - clickToOpenRate
      - bounceRate
      - spamComplaintsRate
      - unsubscribeRate
      title: EmailReportingAnalytics
    EmailReportingLinkAnalytics:
      properties:
        url:
          type: string
          title: Url
        totalClicks:
          type: integer
          title: Totalclicks
        percentageOfTotalClicks:
          type: number
          title: Percentageoftotalclicks
      type: object
      required:
      - url
      - totalClicks
      - percentageOfTotalClicks
      title: EmailReportingLinkAnalytics
    EmailReportingReportInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        emailIds:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Emailids
        vendorId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Vendorid
        subaccountId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Subaccountid
        globalParticipantId:
          anyOf:
          - type: string
          - type: 'null'
          title: Globalparticipantid
      type: object
      required:
      - name
      title: EmailReportingReportInput
    EmailReportingReportNotFoundError:
      properties:
        code:
          type: string
          const: email_reporting_report_not_found
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailReportingReportNotFoundError
    EmailReportingReportResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        emailIds:
          items:
            type: string
          type: array
          title: Emailids
        emailsCount:
          type: integer
          title: Emailscount
        createdBy:
          type: string
          title: Createdby
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
      type: object
      required:
      - id
      - name
      - emailIds
      - emailsCount
      - createdBy
      - createdAt
      - updatedAt
      title: EmailReportingReportResponse
    EmailReportingReportSummaryResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        emailsCount:
          type: integer
          title: Emailscount
        createdBy:
          type: string
          title: Createdby
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
      type: object
      required:
      - id
      - name
      - emailsCount
      - createdBy
      - createdAt
      - updatedAt
      title: EmailReportingReportSummaryResponse
    EmailSalesAnalytics:
      properties:
        ordersCount:
          type: integer
          title: Orderscount
        itemsSold:
          type: integer
          title: Itemssold
        netSalesUsd:
          type: number
          title: Netsalesusd
        grossSalesUsd:
          type: number
          title: Grosssalesusd
        discountsUsd:
          type: number
          title: Discountsusd
        taxesUsd:
          type: number
          title: Taxesusd
        shippingUsd:
          type: number
          title: Shippingusd
        refundsUsd:
          type: number
          title: Refundsusd
        averageUnitsPerOrder:
          type: number
          title: Averageunitsperorder
        averageOrderAmount:
          type: number
          title: Averageorderamount
        firstTimeBuyerRate:
          type: number
          title: Firsttimebuyerrate
      type: object
      required:
      - ordersCount
      - itemsSold
      - netSalesUsd
      - grossSalesUsd
      - discountsUsd
      - taxesUsd
      - shippingUsd
      - refundsUsd
      - averageUnitsPerOrder
      - averageOrderAmount
      - firstTimeBuyerRate
      title: EmailSalesAnalytics
    EmailSalesLocationAnalytics:
      properties:
        countryCode:
          anyOf:
          - type: string
          - type: 'null'
          title: Countrycode
        itemsSold:
          type: integer
          title: Itemssold
        netSalesUsd:
          type: number
          title: Netsalesusd
        salesRate:
          type: number
          title: Salesrate
      type: object
      required:
      - countryCode
      - itemsSold
      - netSalesUsd
      - salesRate
      title: EmailSalesLocationAnalytics
    EmailSalesProductAnalytics:
      properties:
        productTitle:
          anyOf:
          - type: string
          - type: 'null'
          title: Producttitle
        productType:
          anyOf:
          - type: string
          - type: 'null'
          title: Producttype
        itemsSold:
          type: integer
          title: Itemssold
        netSalesUsd:
          type: number
          title: Netsalesusd
        chartEligible:
          type: boolean
          title: Charteligible
      type: object
      required:
      - productTitle
      - productType
      - itemsSold
      - netSalesUsd
      - chartEligible
      title: EmailSalesProductAnalytics
    EmailSalesShopAnalytics:
      properties:
        shopName:
          type: string
          title: Shopname
        itemsSold:
          type: integer
          title: Itemssold
        netSalesUsd:
          type: number
          title: Netsalesusd
      type: object
      required:
      - shopName
      - itemsSold
      - netSalesUsd
      title: EmailSalesShopAnalytics
    EmailSenderEmailNotValidError:
      properties:
        code:
          type: string
          const: email_sender_email_not_valid
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmailSenderEmailNotValidError
    EmptyAudienceError:
      properties:
        code:
          type: string
          const: empty_audience
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: EmptyAudienceError
    Error:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: Error
    EstimateSendTimeResponse:
      properties:
        estimatedSendDuration:
          type: integer
          title: Estimatedsendduration
          description: Estimated duration in seconds from send_at until campaign completes
            sending.
        emailsToSend:
          type: integer
          title: Emailstosend
        emailsCount:
          type: integer
          title: Emailscount
      type: object
      required:
      - estimatedSendDuration
      - emailsToSend
      - emailsCount
      title: EstimateSendTimeResponse
    FanDataListId:
      properties:
        id:
          type: string
          title: Id
        type:
          $ref: '#/components/schemas/FanDataListType'
      type: object
      required:
      - id
      - type
      title: FanDataListId
    FanDataListIdIsRequiredError:
      properties:
        code:
          type: string
          const: fandata_list_id_is_required
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: FanDataListIdIsRequiredError
    FanDataListType:
      type: string
      enum:
      - ARTIST
      - CUSTOM_LIST
      title: FanDataListType
    GenerateEmailPublicPreviewUrlInput:
      properties:
        domain:
          type: string
          title: Domain
      type: object
      required:
      - domain
      title: GenerateEmailPublicPreviewUrlInput
    GenerateEmailPublicPreviewUrlResponse:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: GenerateEmailPublicPreviewUrlResponse
    GetAutomatedEmailsInput:
      properties:
        search:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
        vendorId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Vendorid
        subaccountId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Subaccountid
        fanDataListIds:
          anyOf:
          - items:
              $ref: '#/components/schemas/FanDataListId'
            type: array
            uniqueItems: true
          - type: 'null'
          title: Fandatalistids
        isAutomated:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Isautomated
        orderBy:
          anyOf:
          - items:
              type: string
              enum:
              - name.asc
              - name.desc
              - type.asc
              - type.desc
              - isAutomated.asc
              - isAutomated.desc
              - lastSentAt.asc
              - lastSentAt.desc
              - createdAt.asc
              - createdAt.desc
              - updatedAt.asc
              - updatedAt.desc
              - bounces.asc
              - bounces.desc
              - bounceRate.asc
              - bounceRate.desc
              - clicks.asc
              - clicks.desc
              - clickThroughRate.asc
              - clickThroughRate.desc
              - clickToOpenRate.asc
              - clickToOpenRate.desc
              - delivered.asc
              - delivered.desc
              - deliveredRate.asc
              - deliveredRate.desc
              - opens.asc
              - opens.desc
              - openRate.asc
              - openRate.desc
              - sends.asc
              - sends.desc
              - spamComplaints.asc
              - spamComplaints.desc
              - spamComplaintsRate.asc
              - spamComplaintsRate.desc
              - unsubscribes.asc
              - unsubscribes.desc
              - unsubscribeRate.asc
              - unsubscribeRate.desc
              - uniqueClicks.asc
              - uniqueClicks.desc
              - uniqueOpens.asc
              - uniqueOpens.desc
            type: array
          - type: 'null'
          title: Orderby
        limit:
          anyOf:
          - type: integer
            maximum: 200.0
            minimum: 1.0
          - type: 'null'
          title: Limit
        offset:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Offset
      type: object
      title: GetAutomatedEmailsInput
    GetCampaignLiveStatusOutput:
      properties:
        status:
          $ref: '#/components/schemas/EmailCampaignStatus'
        emailsToSend:
          type: integer
          title: Emailstosend
        sentEmails:
          type: integer
          title: Sentemails
      type: object
      required:
      - status
      - emailsToSend
      - sentEmails
      title: GetCampaignLiveStatusOutput
    GetEmailAnalyticsResponse:
      properties:
        data:
          anyOf:
          - $ref: '#/components/schemas/EmailAnalytics'
          - type: 'null'
      type: object
      required:
      - data
      title: GetEmailAnalyticsResponse
    GetEmailCampaignsInput:
      properties:
        search:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
        vendorId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Vendorid
        subaccountId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Subaccountid
        fanDataListIds:
          anyOf:
          - items:
              $ref: '#/components/schemas/FanDataListId'
            type: array
            uniqueItems: true
          - type: 'null'
          title: Fandatalistids
        statuses:
          anyOf:
          - items:
              $ref: '#/components/schemas/EmailCampaignStatus'
            type: array
          - type: 'null'
          title: Statuses
        audienceId:
          anyOf:
          - type: string
          - type: 'null'
          title: Audienceid
        orderBy:
          anyOf:
          - items:
              type: string
              enum:
              - name.asc
              - name.desc
              - sendAt.asc
              - sendAt.desc
              - createdAt.asc
              - createdAt.desc
              - updatedAt.asc
              - updatedAt.desc
              - bounces.asc
              - bounces.desc
              - bounceRate.asc
              - bounceRate.desc
              - clicks.asc
              - clicks.desc
              - clickThroughRate.asc
              - clickThroughRate.desc
              - clickToOpenRate.asc
              - clickToOpenRate.desc
              - delivered.asc
              - delivered.desc
              - deliveredRate.asc
              - deliveredRate.desc
              - opens.asc
              - opens.desc
              - openRate.asc
              - openRate.desc
              - sends.asc
              - sends.desc
              - spamComplaints.asc
              - spamComplaints.desc
              - spamComplaintsRate.asc
              - spamComplaintsRate.desc
              - unsubscribes.asc
              - unsubscribes.desc
              - unsubscribeRate.asc
              - unsubscribeRate.desc
              - uniqueClicks.asc
              - uniqueClicks.desc
              - uniqueOpens.asc
              - uniqueOpens.desc
            type: array
          - type: 'null'
          title: Orderby
        limit:
          anyOf:
          - type: integer
            maximum: 200.0
            minimum: 1.0
          - type: 'null'
          title: Limit
        offset:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Offset
      type: object
      title: GetEmailCampaignsInput
    GetEmailLinkAnalyticsResponse:
      properties:
        data:
          anyOf:
          - items:
              $ref: '#/components/schemas/EmailLinkAnalytics'
            type: array
          - type: 'null'
          title: Data
      type: object
      required:
      - data
      title: GetEmailLinkAnalyticsResponse
    GetEmailReportingAnalyticsResponse:
      properties:
        data:
          $ref: '#/components/schemas/EmailReportingAnalytics'
      type: object
      required:
      - data
      title: GetEmailReportingAnalyticsResponse
    GetEmailReportingReportLinkAnalyticsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmailReportingLinkAnalytics'
          type: array
          title: Data
      type: object
      required:
      - data
      title: GetEmailReportingReportLinkAnalyticsResponse
    GetEmailSalesAnalyticsResponse:
      properties:
        data:
          $ref: '#/components/schemas/EmailSalesAnalytics'
      type: object
      required:
      - data
      title: GetEmailSalesAnalyticsResponse
    GetEmailSalesLocationsAnalyticsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmailSalesLocationAnalytics'
          type: array
          title: Data
      type: object
      required:
      - data
      title: GetEmailSalesLocationsAnalyticsResponse
    GetEmailSalesProductsAnalyticsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmailSalesProductAnalytics'
          type: array
          title: Data
      type: object
      required:
      - data
      title: GetEmailSalesProductsAnalyticsResponse
    GetEmailSalesShopsAnalyticsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmailSalesShopAnalytics'
          type: array
          title: Data
      type: object
      required:
      - data
      title: GetEmailSalesShopsAnalyticsResponse
    GetEmailStripoAuthTokenResponse:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
      - token
      title: GetEmailStripoAuthTokenResponse
    GetSourceCampaignAutomatedEmailsResponse:
      properties:
        isParticipationEmailAutomated:
          type: boolean
          title: Isparticipationemailautomated
        isSubscriptionEmailAutomated:
          type: boolean
          title: Issubscriptionemailautomated
        items:
          items:
            $ref: '#/components/schemas/SourceCampaignAutomatedEmail'
          type: array
          title: Items
      type: object
      required:
      - isParticipationEmailAutomated
      - isSubscriptionEmailAutomated
      - items
      title: GetSourceCampaignAutomatedEmailsResponse
    GetSourceCampaignsInput:
      properties:
        search:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
        vendorId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Vendorid
        subaccountId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Subaccountid
        currentAutomatedEmailId:
          anyOf:
          - type: string
          - type: 'null'
          title: Currentautomatedemailid
        status:
          anyOf:
          - type: string
          - type: 'null'
          title: Status
        emailType:
          anyOf:
          - $ref: '#/components/schemas/AutomatedEmailType'
          - type: 'null'
        orderBy:
          anyOf:
          - items:
              type: string
              enum:
              - name.asc
              - name.desc
              - createdAt.asc
              - createdAt.desc
              - updatedAt.asc
              - updatedAt.desc
            type: array
          - type: 'null'
          title: Orderby
        limit:
          anyOf:
          - type: integer
            maximum: 500.0
            minimum: 1.0
          - type: 'null'
          title: Limit
        offset:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Offset
      type: object
      title: GetSourceCampaignsInput
    GoogleFont:
      properties:
        name:
          type: string
          title: Name
        fallbackFont:
          anyOf:
          - type: string
          - type: 'null'
          title: Fallbackfont
        genericFontFamily:
          type: string
          title: Genericfontfamily
        cssFontFamily:
          type: string
          title: Cssfontfamily
        url:
          type: string
          title: Url
      type: object
      required:
      - name
      - genericFontFamily
      - cssFontFamily
      - url
      title: GoogleFont
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        message:
          title: Message
          type: string
        code:
          title: Error code
          type: string
        fieldErrors:
          title: Field errors
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FieldError'
      required:
      - message
      - code
      - fields
      example:
        message: Invalid input
        code: invalid_input
        fieldErrors:
          name:
            message: Cannot be blank
            code: missing
          email:
            message: Not valid email
            code: invalid_email
    HelloResponse:
      properties:
        status:
          type: string
          title: Status
          default: ok
      type: object
      title: HelloResponse
    InvalidAccountError:
      properties:
        code:
          type: string
          const: invalid_account
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidAccountError
    InvalidAudienceIdError:
      properties:
        code:
          type: string
          const: invalid_audience_id
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidAudienceIdError
    InvalidCustomListIdError:
      properties:
        code:
          type: string
          const: invalid_custom_list_id
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidCustomListIdError
    InvalidEmailDomainIdError:
      properties:
        code:
          type: string
          const: invalid_email_domain_id
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidEmailDomainIdError
    InvalidGlobalParticipantIdError:
      properties:
        code:
          type: string
          const: invalid_global_participant_id
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidGlobalParticipantIdError
    InvalidGoogleFontError:
      properties:
        code:
          type: string
          const: invalid_google_font
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidGoogleFontError
    InvalidSourceCampaignIdError:
      properties:
        code:
          type: string
          const: invalid_source_campaign_id
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: InvalidSourceCampaignIdError
    LimitOffsetPage_AutomatedEmail_:
      properties:
        total:
          type: integer
          title: Total
        items:
          items:
            $ref: '#/components/schemas/AutomatedEmail'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
      - total
      - items
      - limit
      - offset
      title: LimitOffsetPage[AutomatedEmail]
    LimitOffsetPage_EmailCampaign_:
      properties:
        total:
          type: integer
          title: Total
        items:
          items:
            $ref: '#/components/schemas/EmailCampaign'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
      - total
      - items
      - limit
      - offset
      title: LimitOffsetPage[EmailCampaign]
    LimitOffsetPage_EmailReportingReportSummaryResponse_:
      properties:
        total:
          type: integer
          title: Total
        items:
          items:
            $ref: '#/components/schemas/EmailReportingReportSummaryResponse'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
      - total
      - items
      - limit
      - offset
      title: LimitOffsetPage[EmailReportingReportSummaryResponse]
    LimitOffsetPage_SourceCampaign_:
      properties:
        total:
          type: integer
          title: Total
        items:
          items:
            $ref: '#/components/schemas/SourceCampaign'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
      - total
      - items
      - limit
      - offset
      title: LimitOffsetPage[SourceCampaign]
    MalformedEmailCampaignError:
      properties:
        code:
          type: string
          const: malformed_email_campaign
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: MalformedEmailCampaignError
    NotSupportedAudienceTargetError:
      properties:
        code:
          type: string
          const: not_supported_audience_target
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: NotSupportedAudienceTargetError
    ScheduleEmailCampaignInput:
      properties:
        sendAt:
          type: string
          format: date-time
          title: Sendat
        timezone:
          type: string
          maxLength: 255
          minLength: 1
          title: Timezone
      type: object
      required:
      - sendAt
      - timezone
      title: ScheduleEmailCampaignInput
    SearchCampaignsInput:
      properties:
        search:
          anyOf:
          - type: string
          - type: 'null'
          title: Search
        searchContext:
          anyOf:
          - $ref: '#/components/schemas/CampaignSearchContext'
          - type: 'null'
        campaignIds:
          anyOf:
          - items:
              type: string
            type: array
            uniqueItems: true
          - type: 'null'
          title: Campaignids
        vendorId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Vendorid
        subaccountId:
          anyOf:
          - type: integer
          - type: 'null'
          title: Subaccountid
        fanDataListIds:
          anyOf:
          - items:
              $ref: '#/components/schemas/FanDataListId'
            type: array
            uniqueItems: true
          - type: 'null'
          title: Fandatalistids
        statuses:
          anyOf:
          - items:
              $ref: '#/components/schemas/EmailCampaignStatus'
            type: array
          - type: 'null'
          title: Statuses
        audienceId:
          anyOf:
          - type: string
          - type: 'null'
          title: Audienceid
        orderBy:
          anyOf:
          - items:
              type: string
              enum:
              - name.asc
              - name.desc
              - sendAt.asc
              - sendAt.desc
              - createdAt.asc
              - createdAt.desc
              - updatedAt.asc
              - updatedAt.desc
              - bounces.asc
              - bounces.desc
              - bounceRate.asc
              - bounceRate.desc
              - clicks.asc
              - clicks.desc
              - clickThroughRate.asc
              - clickThroughRate.desc
              - clickToOpenRate.asc
              - clickToOpenRate.desc
              - delivered.asc
              - delivered.desc
              - deliveredRate.asc
              - deliveredRate.desc
              - opens.asc
              - opens.desc
              - openRate.asc
              - openRate.desc
              - sends.asc
              - sends.desc
              - spamComplaints.asc
              - spamComplaints.desc
              - spamComplaintsRate.asc
              - spamComplaintsRate.desc
              - unsubscribes.asc
              - unsubscribes.desc
              - unsubscribeRate.asc
              - unsubscribeRate.desc
              - uniqueClicks.asc
              - uniqueClicks.desc
              - uniqueOpens.asc
              - uniqueOpens.desc
            type: array
          - type: 'null'
          title: Orderby
        limit:
          anyOf:
          - type: integer
            maximum: 200.0
            minimum: 1.0
          - type: 'null'
          title: Limit
      type: object
      title: SearchCampaignsInput
    SendAutomatedTestEmailInput:
      properties:
        emails:
          items:
            type: string
            format: email
          type: array
          maxItems: 999
          minItems: 1
          uniqueItems: true
          title: Emails
        content:
          anyOf:
          - type: string
            format: base64
          - type: 'null'
          title: Content
        withUnappliedChanges:
          type: boolean
          title: Withunappliedchanges
          default: false
      type: object
      required:
      - emails
      title: SendAutomatedTestEmailInput
    SendTestEmailCampaignInput:
      properties:
        emails:
          items:
            type: string
            format: email
          type: array
          maxItems: 999
          minItems: 1
          uniqueItems: true
          title: Emails
        content:
          anyOf:
          - type: string
            format: base64
          - type: 'null'
          title: Content
      type: object
      required:
      - emails
      title: SendTestEmailCampaignInput
    SourceCampaign:
      properties:
        id:
          type: string
          title: Id
        campaignId:
          type: string
          title: Campaignid
        source:
          type: string
          title: Source
        name:
          type: string
          title: Name
        url:
          anyOf:
          - type: string
          - type: 'null'
          title: Url
        status:
          $ref: '#/components/schemas/SourceCampaignStatus'
        hasOtherConnections:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Hasotherconnections
        fanDataListId:
          anyOf:
          - $ref: '#/components/schemas/FanDataListId'
          - type: 'null'
      type: object
      required:
      - id
      - campaignId
      - source
      - name
      - url
      - status
      title: SourceCampaign
    SourceCampaignAutomatedEmail:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        type:
          $ref: '#/components/schemas/AutomatedEmailType'
        subject:
          anyOf:
          - type: string
          - type: 'null'
          title: Subject
        previewText:
          anyOf:
          - type: string
          - type: 'null'
          title: Previewtext
        senderName:
          anyOf:
          - type: string
          - type: 'null'
          title: Sendername
        emailUsername:
          anyOf:
          - type: string
          - type: 'null'
          title: Emailusername
        emailDomain:
          anyOf:
          - $ref: '#/components/schemas/EmailDomain'
          - type: 'null'
        subscriptionOnly:
          type: boolean
          title: Subscriptiononly
        potentialMailingListIds:
          items:
            type: string
          type: array
          title: Potentialmailinglistids
      type: object
      required:
      - id
      - name
      - type
      - subject
      - subscriptionOnly
      title: SourceCampaignAutomatedEmail
    SourceCampaignConnection:
      properties:
        sourceCampaignId:
          type: string
          title: Sourcecampaignid
        subscriptionOnly:
          type: boolean
          title: Subscriptiononly
          default: false
      type: object
      required:
      - sourceCampaignId
      title: SourceCampaignConnection
    SourceCampaignConnectionsEmptyError:
      properties:
        code:
          type: string
          const: source_campaign_connections_empty
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: SourceCampaignConnectionsEmptyError
    SourceCampaignNotAttachedError:
      properties:
        code:
          type: string
          const: source_campaign_not_attached
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: SourceCampaignNotAttachedError
    SourceCampaignNotFoundError:
      properties:
        code:
          type: string
          const: source_campaign_not_found
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: SourceCampaignNotFoundError
    SourceCampaignStatus:
      type: string
      enum:
      - UNKNOWN
      - DRAFT
      - PUBLISHED
      - INACTIVE
      title: SourceCampaignStatus
    SourceCampaignSubscriptionOnlyRequiredError:
      properties:
        code:
          type: string
          const: source_campaign_subscription_only_required
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: SourceCampaignSubscriptionOnlyRequiredError
    SourceCampaignVendorMismatchError:
      properties:
        code:
          type: string
          const: source_campaign_vendor_mismatch
          title: Code
        message:
          type: string
          title: Message
      type: object
      required:
      - code
      - message
      title: SourceCampaignVendorMismatchError
    UpdateAutomatedEmailInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        fanDataListId:
          $ref: '#/components/schemas/FanDataListId'
        type:
          $ref: '#/components/schemas/AutomatedEmailType'
        senderName:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Sendername
        emailDomainId:
          anyOf:
          - type: string
          - type: 'null'
          title: Emaildomainid
        emailUsername:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Emailusername
        subject:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Subject
        previewText:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Previewtext
      type: object
      required:
      - name
      - vendorId
      - subaccountId
      - fanDataListId
      - type
      title: UpdateAutomatedEmailInput
    UpdateEmailCampaignInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
        vendorId:
          type: integer
          title: Vendorid
        subaccountId:
          type: integer
          title: Subaccountid
        fanDataListId:
          $ref: '#/components/schemas/FanDataListId'
        senderName:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Sendername
        emailDomainId:
          anyOf:
          - type: string
          - type: 'null'
          title: Emaildomainid
        emailUsername:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Emailusername
        subject:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Subject
        previewText:
          anyOf:
          - type: string
            maxLength: 255
            minLength: 1
          - type: 'null'
          title: Previewtext
        audienceId:
          anyOf:
          - type: string
          - type: 'null'
          title: Audienceid
      type: object
      required:
      - name
      - vendorId
      - subaccountId
      - fanDataListId
      title: UpdateEmailCampaignInput
    UpdateEmailContentInput:
      properties:
        html:
          anyOf:
          - type: string
            minLength: 1
            format: base64
          - type: 'null'
          title: Html
        css:
          anyOf:
          - type: string
            minLength: 1
            format: base64
          - type: 'null'
          title: Css
      type: object
      title: UpdateEmailContentInput
    UpdateEmailFontsInput:
      properties:
        font:
          $ref: '#/components/schemas/CustomFont'
      type: object
      required:
      - font
      title: UpdateEmailFontsInput
    FieldError:
      title: FieldError
      type: object
      properties:
        message:
          title: Message
          type: string
        code:
          title: Error code
          type: string
      required:
      - message
      - code
  securitySchemes:
    JWTAuthorization:
      type: http
      scheme: bearer
    OrchardIdentityId:
      type: apiKey
      in: header
      name: Orchard-Identity-Id
    HTTPBasic:
      type: http
      scheme: basic
