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

# Delete a membership plan

> Delete a membership plan (sets is_active to false)



## OpenAPI

````yaml /api-reference/openapi.yaml delete /memberships/{id}
openapi: 3.0.3
info:
  title: Rntor API
  description: REST API for programmatic access to your coworking and space management data
  version: 1.0.0
  contact:
    email: support@rntor.com
    url: https://app.rntor.com
servers:
  - url: https://api.rntor.com/v1
    description: Production server
security:
  - bearerAuth: []
    clientId: []
tags:
  - name: Merchant
    description: Merchant operations
  - name: Bookings
    description: Booking management
  - name: Companies
    description: Company management
  - name: Resources
    description: Resource management
  - name: Locations
    description: Location management
  - name: Invoices
    description: Invoice and credit note management
  - name: Subscriptions
    description: Customer subscription management
  - name: Events
    description: Event management
  - name: Plans
    description: Membership plan management
  - name: Memberships
    description: Membership management
  - name: Benefits
    description: Benefits, categories, and applications
  - name: Contracts
    description: Contract management
  - name: Feed
    description: Feed posts, comments, and likes
  - name: Shop
    description: Shop orders, categories, and products
  - name: Members
    description: Member registrations
  - name: Tickets
    description: Support ticket management
  - name: Transactions
    description: Credit, day pass, and payment transactions
  - name: Visitors
    description: Visitor contacts, requests, and visits
paths:
  /memberships/{id}:
    delete:
      tags:
        - Memberships
      summary: Delete a membership plan
      description: Delete a membership plan (sets is_active to false)
      operationId: deleteMembership
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Membership plan deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Membership'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Membership:
      type: object
      description: A membership plan template that customers can subscribe to
      properties:
        id:
          type: string
          format: uuid
          example: 3c90c3cc-0d44-4b50-8888-8dd25736052a
        location_id:
          type: string
          format: uuid
          description: The location this membership plan belongs to
        name:
          type: string
          example: Premium Membership
        description:
          type: string
          example: Full access to all amenities and resources
        cycle:
          type: string
          enum:
            - daily
            - weekly
            - monthly
            - quarterly
            - yearly
          example: monthly
        price:
          type: number
          example: 299
        currency:
          type: string
          example: USD
        custom_tax_rate:
          type: boolean
          example: false
        tax_rate:
          type: number
          example: 10
        minimum_commitment:
          type: boolean
          example: false
        commitment_cycles:
          type: integer
          example: 12
        expiring_credits:
          type: integer
          description: Monthly credits included in this plan
          example: 100
        expiring_day_passes:
          type: integer
          description: Monthly day passes included in this plan
          example: 5
        discount_rooms:
          type: number
          description: Percentage discount on room bookings
          example: 20
        discount_desks:
          type: number
          description: Percentage discount on desk bookings
          example: 15
        discount_equipment:
          type: number
          example: 10
        discount_events:
          type: number
          example: 25
        discount_shop:
          type: number
          example: 10
        discount_credit_packages:
          type: number
          example: 5
        signup_enabled:
          type: boolean
          example: true
        signup_type:
          type: string
          example: standard
        is_active:
          type: boolean
          example: true
        exclusive_resource_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Resources exclusively available to this plan
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Meta:
      type: object
      properties:
        request_id:
          type: string
          example: req_abc123def456
        timestamp:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: The request body is missing required field 'email'
            details:
              type: object
              properties:
                field:
                  type: string
                  example: email
                reason:
                  type: string
                  example: required
        meta:
          type: object
          properties:
            request_id:
              type: string
              example: req_abc123def456
  responses:
    BadRequest:
      description: Bad Request - Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: validation_error
              message: The request body is missing required field 'email'
              details:
                field: email
                reason: required
            meta:
              request_id: req_abc123def456
    Unauthorized:
      description: Unauthorized - Invalid or missing credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_token
              message: The access token is invalid or expired
            meta:
              request_id: req_abc123def456
    NotFound:
      description: Not Found - Resource doesn't exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: The requested resource was not found
            meta:
              request_id: req_abc123def456
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your API client secret
    clientId:
      type: apiKey
      in: header
      name: X-Client-ID
      description: Your API client ID

````