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

# Preview a subscription swap

> Preview the prorated invoice amounts for a potential subscription swap.



## OpenAPI

````yaml get /subscriptions/{id}/preview-swap
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security: []
paths:
  /subscriptions/{id}/preview-swap:
    get:
      tags:
        - Subscriptions
      summary: Preview a subscription swap
      description: Preview the prorated invoice amounts for a potential subscription swap.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: variant_id
          in: query
          required: false
          schema:
            type: string
        - name: product_id
          in: query
          required: false
          schema:
            type: string
        - name: x-store-id
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
        '400':
          description: Bad Request
        '401':
          description: Unauthorized

````