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

# Preview Seat Change

> Preview the proration and recurring-amount impact of adding or removing seat add-ons.

``seat_delta`` is signed — positive = adding, negative = removing. Mirrors
the ``change-plan/preview`` contract so ``AddSeatsPanel`` / ``RemoveSeatsPanel``
can render the same "What you'll pay" breakdown before the user confirms.

Read-only: does not mutate Stripe or workspace state.



## OpenAPI

````yaml /openapi.json get /api/v1/workspaces/{workspace_id}/billing/seats/preview
openapi: 3.1.0
info:
  description: Change Impact Engine for multi-repo systems
  title: Riftmap
  version: 1.12.3
servers: []
security: []
paths:
  /api/v1/workspaces/{workspace_id}/billing/seats/preview:
    get:
      tags:
        - billing
      summary: Preview Seat Change
      description: >-
        Preview the proration and recurring-amount impact of adding or removing
        seat add-ons.


        ``seat_delta`` is signed — positive = adding, negative = removing.
        Mirrors

        the ``change-plan/preview`` contract so ``AddSeatsPanel`` /
        ``RemoveSeatsPanel``

        can render the same "What you'll pay" breakdown before the user
        confirms.


        Read-only: does not mutate Stripe or workspace state.
      operationId: >-
        preview_seat_change_api_v1_workspaces__workspace_id__billing_seats_preview_get
      parameters:
        - in: path
          name: workspace_id
          required: true
          schema:
            format: uuid
            title: Workspace Id
            type: string
        - in: query
          name: seat_delta
          required: true
          schema:
            title: Seat Delta
            type: integer
        - in: header
          name: X-Workspace-Id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
        - in: cookie
          name: riftmap_access
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Riftmap Access
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SeatChangePreviewResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - APIKeyHeader: []
        - HTTPBearer: []
components:
  schemas:
    SeatChangePreviewResponse:
      properties:
        currency:
          title: Currency
          type: string
        next_invoice_amount:
          title: Next Invoice Amount
          type: integer
        next_invoice_date:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Next Invoice Date
        next_invoice_proration:
          title: Next Invoice Proration
          type: integer
        next_invoice_recurring:
          title: Next Invoice Recurring
          type: integer
        prorated_today:
          title: Prorated Today
          type: integer
        seat_delta:
          title: Seat Delta
          type: integer
      required:
        - seat_delta
        - prorated_today
        - next_invoice_recurring
        - next_invoice_proration
        - next_invoice_amount
        - next_invoice_date
        - currency
      title: SeatChangePreviewResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey
    HTTPBearer:
      description: API key as Bearer token (rfm_live_... prefix)
      scheme: bearer
      type: http

````