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

# List subscriptions

> Retrieves a list of all subscriptions for a given store. Supports filtering by status, customer ID, and product ID. Includes pagination.

**Business Use-case:** Useful for managing and analyzing all active and past subscriptions.

**Query Parameters:**
- `x-store-id`: Store identifier (header, required).
- `limit`: Limit the number of subscriptions retrieved.
- `status`: Filter by subscription status.
- `customer_id`: Filter by customer ID.
- `product_id`: Filter by product ID.

**Responses:**
- `200`: Subscriptions retrieved successfully.
- `401`: Unauthorized if `x-store-id` is missing.



## OpenAPI

````yaml /api-reference/blink-api.json get /v1/subscriptions
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:
  - storeIdHeader: []
tags:
  - name: Invoices
    description: Unified merchant of record invoices for products and subscriptions.
  - name: Geo Pricing
    description: Resolve Purchasing Power Parity (PPP) localized pricing.
paths:
  /v1/subscriptions:
    get:
      tags:
        - Subscriptions
      summary: List subscriptions
      description: >-
        Retrieves a list of all subscriptions for a given store. Supports
        filtering by status, customer ID, and product ID. Includes pagination.


        **Business Use-case:** Useful for managing and analyzing all active and
        past subscriptions.


        **Query Parameters:**

        - `x-store-id`: Store identifier (header, required).

        - `limit`: Limit the number of subscriptions retrieved.

        - `status`: Filter by subscription status.

        - `customer_id`: Filter by customer ID.

        - `product_id`: Filter by product ID.


        **Responses:**

        - `200`: Subscriptions retrieved successfully.

        - `401`: Unauthorized if `x-store-id` is missing.
      parameters:
        - name: x-store-id
          in: header
          required: true
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
        - name: status
          in: query
          schema:
            type: string
        - name: customer_id
          in: query
          schema:
            type: string
        - name: product_id
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Subscriptions list retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionsListResponse'
        '401':
          description: Unauthorized
components:
  schemas:
    SubscriptionsListResponse:
      type: object
      properties:
        meta:
          type: object
          properties:
            total:
              type: integer
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              store_id:
                type: string
              product_id:
                type: string
              variant_id:
                type: string
              status:
                type: string
              current_period_end:
                type: string
                format: date-time
              cancel_at_period_end:
                type: boolean
              metadata:
                type: object
              created_at:
                type: string
                format: date-time
              updated_at:
                type: string
                format: date-time
              stripe_customer_id:
                type: string
  securitySchemes:
    storeIdHeader:
      type: apiKey
      in: header
      name: x-store-id

````