> ## 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.

# Get Admission Estimate

> 
### Overview

This API returns the **bill estimate** of an IPD admission of your workspace: the estimate lines, the billing totals, and the receipts of the admission's visits.

The **first item is always the rate plan line**: its `rate` is the sum of the rate plan's inclusions (per night), `quantity` is the admission duration (or `1`), and `name` is `<rate plan name>/night`. When the admission has no rate plan, this line is a placeholder with `rate` and `quantity` of `0` and `name` of `-`. The remaining items are the admission's estimate lines.

Estimate line ids are not included in this response.

Returns `400` with `Admission not found` when the admission does not exist in your workspace.



## OpenAPI

````yaml get /ipd/v1/service/admissions/{admission_id}/estimate
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/admissions/{admission_id}/estimate:
    get:
      tags:
        - IPD API
      summary: Get Admission Estimate
      description: >-

        ### Overview


        This API returns the **bill estimate** of an IPD admission of your
        workspace: the estimate lines, the billing totals, and the receipts of
        the admission's visits.


        The **first item is always the rate plan line**: its `rate` is the sum
        of the rate plan's inclusions (per night), `quantity` is the admission
        duration (or `1`), and `name` is `<rate plan name>/night`. When the
        admission has no rate plan, this line is a placeholder with `rate` and
        `quantity` of `0` and `name` of `-`. The remaining items are the
        admission's estimate lines.


        Estimate line ids are not included in this response.


        Returns `400` with `Admission not found` when the admission does not
        exist in your workspace.
      operationId: GetIpdAdmissionEstimate
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
        - name: admission_id
          in: path
          description: Id of the IPD admission.
          required: true
          style: simple
          schema:
            type: string
          example: a1b2c3d4-5678-90ab-cdef-1234567890ab
      responses:
        '200':
          description: OK — the admission's bill estimate.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      totalBilled:
                        type: number
                        description: Total billed for the admission so far.
                      totalPaid:
                        type: number
                        description: Total paid for the admission so far.
                      items:
                        type: array
                        description: Estimate lines; the first is the rate plan line.
                        items:
                          $ref: '#/components/schemas/IpdEstimateItem'
                      receipts:
                        type: array
                        description: Receipts of the visits linked to the admission.
                        items:
                          $ref: '#/components/schemas/IpdVisitReceipt'
              example:
                success: true
                data:
                  totalBilled: 7545
                  totalPaid: 5000
                  items:
                    - id: 66f1c6f0e4b0a1b2c3d4e904
                      name: Standard ICU/night
                      rate: 2500
                      quantity: 3
                      date: '2026-10-05T10:30:00.000Z'
                    - name: Pharmacy order
                      rate: 45
                      quantity: 1
                  receipts:
                    - receipt_id: 90210
                      receipt_url: https://example.com/receipts/90210.pdf
                      net_amount: 5000
                      created_at: '2026-10-05T11:00:00.000Z'
                      remarks: Advance
                      aid: visit-12345
        '400':
          description: Bad Request — the admission was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
              example:
                success: false
                error: Admission not found
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdEstimateItem:
      title: IpdEstimateItem
      type: object
      properties:
        id:
          type: string
          description: Rate plan id. Present only on the rate plan line.
        name:
          type: string
          description: Name of the line.
        service:
          type: object
          additionalProperties: true
          description: Service details, when stored on the line.
        rate:
          type: number
          description: Price per unit.
        quantity:
          type: number
          description: Quantity.
        discount:
          type: object
          properties:
            category:
              type: string
              enum:
                - percentage
                - fixed
            value:
              type: number
          description: Discount on the line.
        remarks:
          type: string
          description: Remarks on the line.
        date:
          description: >-
            Date of the line. On the rate plan line, the admission's created
            date-time as an ISO-8601 string.
    IpdVisitReceipt:
      title: IpdVisitReceipt
      type: object
      properties:
        receipt_id:
          type: number
          description: Receipt id.
        receipt_url:
          type: string
          description: URL of the receipt.
        net_amount:
          type: number
          description: Net amount of the receipt.
        created_at:
          type: string
          description: Date-time the receipt was created.
        remarks:
          type: string
          description: Receipt remarks.
        receipt_payment:
          type: array
          description: Payments on the receipt.
          items:
            type: object
            properties:
              paymode:
                type: string
              amount:
                type: number
        receipt_sku:
          type: array
          description: Billed items on the receipt.
          items:
            type: object
            additionalProperties: true
        aid:
          type: string
          description: Id of the visit the receipt belongs to.
    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.