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

# Update Pharmacy Billing Config

> 
### Overview

This API sets how one pharmacy provider's medicines are priced for a **GST-exempt admission** in your workspace. Each provider (`evital`, `dawakhana`) is configured separately.

`exemptAdmissionPricing` is `base` (the default) or `mrp`:

- `base` — bill the tax-exclusive rate; the workspace absorbs the pharmacy's GST.
- `mrp` — bill the GST-inclusive price per unit that the pharmacy charged.



## OpenAPI

````yaml put /ipd/v1/service/pharmacies/billing-config
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/pharmacies/billing-config:
    put:
      tags:
        - IPD API
      summary: Update Pharmacy Billing Config
      description: >-

        ### Overview


        This API sets how one pharmacy provider's medicines are priced for a
        **GST-exempt admission** in your workspace. Each provider (`evital`,
        `dawakhana`) is configured separately.


        `exemptAdmissionPricing` is `base` (the default) or `mrp`:


        - `base` — bill the tax-exclusive rate; the workspace absorbs the
        pharmacy's GST.

        - `mrp` — bill the GST-inclusive price per unit that the pharmacy
        charged.
      operationId: UpdateIpdPharmacyBillingConfig
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
      requestBody:
        description: The provider and its pricing setting.
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - provider
                - exemptAdmissionPricing
              properties:
                provider:
                  type: string
                  enum:
                    - evital
                    - dawakhana
                  description: Pharmacy provider to configure.
                exemptAdmissionPricing:
                  type: string
                  enum:
                    - base
                    - mrp
                  description: >-
                    How this provider's medicines are priced for a GST-exempt
                    admission.
            example:
              provider: evital
              exemptAdmissionPricing: mrp
      responses:
        '200':
          description: OK — the saved setting.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      provider:
                        type: string
                        enum:
                          - evital
                          - dawakhana
                      exemptAdmissionPricing:
                        type: string
                        enum:
                          - base
                          - mrp
              example:
                success: true
                data:
                  provider: evital
                  exemptAdmissionPricing: mrp
        '400':
          description: >-
            Bad Request. Returns `{ message }` when the request body failed
            schema validation (for example a field is missing or not one of the
            allowed values; the `message` is currently empty), or `{ success:
            false, error }` when the setting could not be saved.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/IpdServiceFailure'
                  - $ref: '#/components/schemas/IpdServiceError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    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.