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

# List Dawakhana Pending Clearances

> 
### Overview

This API lists the **admissions waiting for the in-house pharmacy's discharge clearance** in your workspace — patients being discharged whose pharmacy dues the in-house pharmacy still has to close. The oldest request comes first.



## OpenAPI

````yaml get /ipd/v1/service/dawakhana/orders/clearances
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /ipd/v1/service/dawakhana/orders/clearances:
    get:
      tags:
        - IPD API
      summary: List Dawakhana Pending Clearances
      description: >-

        ### Overview


        This API lists the **admissions waiting for the in-house pharmacy's
        discharge clearance** in your workspace — patients being discharged
        whose pharmacy dues the in-house pharmacy still has to close. The oldest
        request comes first.
      operationId: ListIpdDawakhanaClearances
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
      responses:
        '200':
          description: OK — the pending clearance requests.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/IpdDawakhanaClearanceRequest'
              example:
                success: true
                data:
                  - admissionId: a1b2c3d4-5678-90ab-cdef-1234567890ab
                    pharmacyId: dawakhana
                    ipdId: IPD-2026-0042
                    patientName: Ravi Kumar
                    bed: ICU-04
                    requestedAt: '2026-10-07T14:00:00.000Z'
        '400':
          description: Bad Request — the clearance requests could not be loaded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdDawakhanaClearanceRequest:
      title: IpdDawakhanaClearanceRequest
      type: object
      properties:
        admissionId:
          type: string
          description: Id of the IPD admission being discharged.
        pharmacyId:
          type: string
          description: >-
            Id of the pharmacy asked for clearance (`dawakhana` for the in-house
            pharmacy).
        ipdId:
          type: string
          description: Patient IPD case number.
        patientName:
          type: string
          description: Name of the patient.
        bed:
          type: string
          description: Bed of the patient.
        requestedAt:
          type: string
          description: Date-time clearance was requested, as an ISO-8601 string.
    IpdServiceFailure:
      title: IpdServiceFailure
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        error:
          type: string
          description: Human-readable error message.
    IpdServiceError:
      title: IpdServiceError
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.