# Get customer details by email

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/programs/{programId}/customers/{email}:
    get:
      summary: Get customer details by email
      deprecated: false
      description: ''
      operationId: CustomerActionsController_getCustomerByEmail_v1
      tags:
        - Customers
        - Customer Actions
      parameters:
        - name: programId
          in: path
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: email
          in: path
          description: ''
          required: true
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDto'
          headers: {}
          x-apidog-name: ''
      security:
        - api-key: []
          x-apidog:
            schemeGroups:
              - id: 0mLLWI88D6eg4ttkoQgwa
                schemeIds:
                  - api-key
            required: true
            use:
              id: 0mLLWI88D6eg4ttkoQgwa
            scopes:
              0mLLWI88D6eg4ttkoQgwa:
                api-key: []
      x-apidog-folder: Customers
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1139723/apis/api-27706701-run
components:
  schemas:
    CustomerDto:
      type: object
      properties:
        id:
          type: string
        programId:
          type: string
        email:
          type: string
        origin:
          type: string
          enum:
            - API
            - INITIAL_SYNC
            - JERICOMMERCE
            - SHOPIFY
            - UNKNOWN
        referral:
          type: string
        utmCampaign:
          type: string
        utmSource:
          type: string
        utmMedium:
          type: string
        language:
          type: string
        balanceNotifications:
          type: boolean
        tierNotifications:
          type: boolean
        rewardAvailableNotifications:
          type: boolean
        locationNotifications:
          type: boolean
        marketingNotifications:
          type: boolean
        referralEarned:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
        userData:
          $ref: '#/components/schemas/CustomerUserData'
        loyaltyData:
          $ref: '#/components/schemas/CustomerLoyaltyData'
        customerTier:
          $ref: '#/components/schemas/CustomerTier'
      required:
        - id
        - programId
        - email
        - origin
        - referral
        - utmCampaign
        - utmSource
        - utmMedium
        - language
        - balanceNotifications
        - tierNotifications
        - rewardAvailableNotifications
        - locationNotifications
        - marketingNotifications
        - referralEarned
        - createdAt
        - updatedAt
        - userData
        - loyaltyData
        - customerTier
      x-apidog-orders:
        - id
        - programId
        - email
        - origin
        - referral
        - utmCampaign
        - utmSource
        - utmMedium
        - language
        - balanceNotifications
        - tierNotifications
        - rewardAvailableNotifications
        - locationNotifications
        - marketingNotifications
        - referralEarned
        - createdAt
        - updatedAt
        - userData
        - loyaltyData
        - customerTier
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CustomerTier:
      type: object
      properties:
        id:
          type: string
        customerId:
          type: string
        currentTierId:
          type: string
        carryTierId:
          type: string
        currentTierPoints:
          type: number
        carryTierPoints:
          type: number
        tierChangedAt:
          type: string
        recalculationDate:
          type: string
          nullable: true
        currentTier:
          allOf:
            - &ref_0
              $ref: '#/components/schemas/Tier'
          type: 'null'
        carryTier:
          allOf:
            - *ref_0
          type: 'null'
      required:
        - id
        - customerId
        - currentTierId
        - carryTierId
        - currentTierPoints
        - carryTierPoints
        - tierChangedAt
        - currentTier
        - carryTier
      x-apidog-orders:
        - id
        - customerId
        - currentTierId
        - carryTierId
        - currentTierPoints
        - carryTierPoints
        - tierChangedAt
        - recalculationDate
        - currentTier
        - carryTier
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Tier:
      type: object
      properties:
        id:
          type: string
        programId:
          type: string
        name:
          type: string
        content:
          type: string
        image:
          type: string
        requiredPoints:
          type: number
        factor:
          type: number
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - programId
        - name
        - content
        - image
        - requiredPoints
        - factor
        - createdAt
        - updatedAt
      x-apidog-orders:
        - id
        - programId
        - name
        - content
        - image
        - requiredPoints
        - factor
        - createdAt
        - updatedAt
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CustomerLoyaltyData:
      type: object
      properties:
        id:
          type: string
        customerId:
          type: string
        loyaltyCustomerId:
          type: string
        balance:
          type: number
        memberSince:
          type: string
        tierStatus:
          type: string
        referralLink:
          type: string
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - customerId
        - loyaltyCustomerId
        - balance
        - memberSince
        - tierStatus
        - referralLink
        - createdAt
        - updatedAt
      x-apidog-orders:
        - id
        - customerId
        - loyaltyCustomerId
        - balance
        - memberSince
        - tierStatus
        - referralLink
        - createdAt
        - updatedAt
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    CustomerUserData:
      type: object
      properties:
        id:
          type: string
        customerId:
          type: string
        externalCustomerId:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        phone:
          type: string
        birthdate:
          type: string
          nullable: true
        emailVerified:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - customerId
        - externalCustomerId
        - firstName
        - lastName
        - phone
        - birthdate
        - emailVerified
        - createdAt
        - updatedAt
      x-apidog-orders:
        - id
        - customerId
        - externalCustomerId
        - firstName
        - lastName
        - phone
        - birthdate
        - emailVerified
        - createdAt
        - updatedAt
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: jwt
    api-key:
      type: apikey
      in: header
      name: api-key
servers:
  - url: https://api.jericommerce.com
    description: Entorno producción
  - url: ''
    description: Mock Nube
security: []

```
