> ## Documentation Index
> Fetch the complete documentation index at: https://help.elationhealth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Pharmacy

> Retrieve a single pharmacy



## OpenAPI

````yaml get /api/2.0/pharmacies/{ncpdpid}/
openapi: 3.1.0
info:
  contact:
    name: Elation Health
    url: https://www.elationhealth.com/
  description: Elation Health API v2.0
  title: Reference Data API
  version: 2.0.0
servers:
  - description: Sandbox Server
    url: https://sandbox.elationemr.com
  - description: Production Server
    url: https://api.app.elationemr.com
security: []
paths:
  /api/2.0/pharmacies/{ncpdpid}/:
    get:
      tags:
        - Pharmacies
      summary: Retrieve Pharmacy
      description: Retrieve a single pharmacy
      operationId: pharmacies_retrieve
      parameters:
        - description: The NCPDP ID of the pharmacy to retrieve
          in: path
          name: ncpdpid
          required: true
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Pharmacy'
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    Pharmacy:
      properties:
        active_end_time:
          format: date-time
          type: string
        active_start_time:
          format: date-time
          type: string
        address_line1:
          maxLength: 105
          type:
            - string
            - 'null'
        address_line2:
          maxLength: 105
          type:
            - string
            - 'null'
        city:
          maxLength: 105
          type:
            - string
            - 'null'
        fax:
          maxLength: 75
          type:
            - string
            - 'null'
        id:
          format: int64
          type: integer
        ncpdpid:
          maxLength: 21
          type: string
        npi:
          maxLength: 30
          type:
            - string
            - 'null'
        phone_primary:
          maxLength: 75
          type:
            - string
            - 'null'
        specialty_types:
          maxLength: 150
          type:
            - string
            - 'null'
        state:
          maxLength: 6
          type:
            - string
            - 'null'
        store_name:
          maxLength: 105
          type:
            - string
            - 'null'
        zip:
          maxLength: 33
          type:
            - string
            - 'null'
      required:
        - active_end_time
        - active_start_time
        - id
        - ncpdpid
      type: object
  securitySchemes:
    oauth2:
      flows:
        clientCredentials:
          scopes:
            act_as_user: >-
              Impersonate a provider via X-On-Behalf-Of (combinable with apiv2
              or system scopes)
            apiv2: Full access to the API
            system/{resource_name}.read: Read access to a specific resource
            system/{resource_name}.write: Write access to a specific resource
          tokenUrl: /api/2.0/oauth2/token/
      type: oauth2

````