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

# Unlink Rate Plan from Clinic

> 
### Overview

This API removes the link between an **IPD rate plan** and a **clinic** of your workspace. The link is archived, not removed, and can be made active again with [Link Rate Plan to Clinic](/api-reference/doc-tool/ipd-api/rate-plans/link-rate-plan-to-clinic).

The rate plan and clinic are sent in the **request body**, not in the path.

Returns `400` with `Rate plan clinic relation not found` when no link exists for the given `plan` and `clinic_id` in your workspace.



## OpenAPI

````yaml delete /ipd/v1/service/rate-plan-clinic-relations
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/rate-plan-clinic-relations:
    delete:
      tags:
        - IPD API
      summary: Unlink Rate Plan from Clinic
      description: >-

        ### Overview


        This API removes the link between an **IPD rate plan** and a **clinic**
        of your workspace. The link is archived, not removed, and can be made
        active again with [Link Rate Plan to
        Clinic](/api-reference/doc-tool/ipd-api/rate-plans/link-rate-plan-to-clinic).


        The rate plan and clinic are sent in the **request body**, not in the
        path.


        Returns `400` with `Rate plan clinic relation not found` when no link
        exists for the given `plan` and `clinic_id` in your workspace.
      operationId: DeleteIpdRatePlanClinicRelation
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
      requestBody:
        description: The rate plan and clinic to unlink.
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - plan
                - clinic_id
              properties:
                plan:
                  type: string
                  description: Id of the rate plan.
                clinic_id:
                  type: string
                  description: Id of the clinic.
            example:
              plan: 66f1c6f0e4b0a1b2c3d4e904
              clinic_id: clinic-01
      responses:
        '200':
          description: OK — the rate plan-clinic link was archived.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdDeleteResponse'
              example:
                success: true
                data:
                  success: true
        '400':
          description: >-
            Bad Request. Returns `{ success: false, error }` when the `plan` is
            not a valid id or no link was found, or `{ message }` when the
            request body failed schema validation (the `message` is currently
            empty).
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/IpdServiceFailure'
                  - $ref: '#/components/schemas/IpdServiceError'
              example:
                success: false
                error: Rate plan clinic relation not found
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdDeleteResponse:
      title: IpdDeleteResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            success:
              type: boolean
    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.