# Get all subscriptions

> Retrieves a list of all subscriptions.

Source: https://help.boltapp.com/api-reference/subscriptions/subscriptions/listsubscriptions

`GET /v1/subscriptions`

## OpenAPI definition

This endpoint as it appears in the OpenAPI document, with every schema it references included.

```json
{
  "openapi": "3.2.0",
  "info": {
    "title": "Subscriptions API",
    "version": "v1",
    "description": "API for managing subscriptions and products."
  },
  "servers": [
    {
      "url": "https://api.boltapp.com",
      "description": "The Production URL (Live Data)."
    },
    {
      "url": "https://api-sandbox.boltapp.com",
      "description": "The Sandbox URL (Test Data)."
    },
    {
      "url": "https://api-staging.boltapp.com",
      "description": "The Staging URL (Staged Data)."
    }
  ],
  "security": [
    {
      "X-API-Key": []
    },
    {
      "X-Publishable-Key": []
    }
  ],
  "paths": {
    "/v1/subscriptions": {
      "get": {
        "operationId": "listSubscriptions",
        "summary": "Get all subscriptions",
        "description": "Retrieves a list of all subscriptions.",
        "tags": [
          "Subscriptions"
        ],
        "parameters": [
          {
            "in": "query",
            "name": "customer_ids",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated list of customer IDs to filter subscriptions.",
            "required": false
          },
          {
            "in": "query",
            "name": "emails",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated list of email addresses to filter subscriptions.",
            "required": false
          },
          {
            "in": "query",
            "name": "product_ids",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated list of product IDs to filter subscriptions.",
            "required": false
          },
          {
            "in": "query",
            "name": "plan_ids",
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated list of plan IDs to filter subscriptions.",
            "required": false
          },
          {
            "in": "query",
            "name": "seller_id",
            "schema": {
              "type": "string"
            },
            "description": "Seller ID for Connect marketplace operations. Filter subscriptions by seller.",
            "required": false
          }
        ],
        "security": [
          {
            "X-API-Key": []
          },
          {
            "X-Publishable-Key": []
          }
        ],
        "responses": {
          "200": {
            "description": "List of subscriptions.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "subscriptions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Subscription"
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "page_size": {
                          "type": "integer"
                        },
                        "total_count": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - Invalid or missing API key."
          },
          "404": {
            "description": "Subscription not found."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Subscription": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "examples": [
              "s_1234567890"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2023-10-01T12:00:00Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2023-10-01T12:00:00Z"
            ]
          },
          "consumer_id": {
            "type": "integer",
            "format": "int64"
          },
          "subscription_plan_id": {
            "type": "string",
            "description": "ID of the subscription plan.",
            "examples": [
              "spl_ba_PpkW16oIW"
            ]
          },
          "merchant_name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "price": {
            "type": "integer",
            "format": "int64",
            "description": "Deprecated. Use `total_amount` instead. Represents the price of the subscription in cents, e.g. `199` would translate to `$1.99`.",
            "deprecated": true,
            "examples": [
              999
            ]
          },
          "currency": {
            "type": "string",
            "description": "ISO4217 compatible currency code",
            "examples": [
              "USD"
            ]
          },
          "quantity": {
            "type": "integer",
            "format": "int64"
          },
          "product_names": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Product name"
            }
          },
          "next_renewal_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "canceled_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "examples": [
              null
            ]
          },
          "paused_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "examples": [
              null
            ]
          },
          "payment_method": {
            "$ref": "#/components/schemas/PaymentMethod"
          },
          "status": {
            "$ref": "#/components/schemas/SubscriptionStatus",
            "deprecated": true
          },
          "status_details": {
            "$ref": "#/components/schemas/StatusDetails"
          },
          "total_amount": {
            "$ref": "#/components/schemas/AmountView"
          },
          "plan": {
            "$ref": "#/components/schemas/Plan"
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          }
        }
      },
      "PaymentMethod": {
        "type": "object",
        "properties": {
          "card_last_4": {
            "type": "string",
            "examples": [
              "4123"
            ]
          },
          "card_network": {
            "type": "string",
            "examples": [
              "Visa"
            ]
          }
        },
        "required": [
          "card_last_4",
          "card_network"
        ]
      },
      "SubscriptionStatus": {
        "type": "string",
        "enum": [
          "active",
          "paused",
          "canceled",
          "payment_failed"
        ],
        "examples": [
          "active"
        ]
      },
      "StatusDetails": {
        "type": "object",
        "properties": {
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reason for the current status",
            "enum": [
              "payment_failed",
              "cancelled_manually"
            ],
            "examples": [
              "payment_failed"
            ]
          },
          "type": {
            "type": "string",
            "description": "Type of status detail",
            "enum": [
              "active",
              "paused",
              "canceled",
              "payment_failed"
            ],
            "examples": [
              "canceled"
            ]
          }
        }
      },
      "AmountView": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "format": "int64",
            "description": "Amount in cents"
          },
          "currency": {
            "type": "string",
            "description": "ISO4217 compatible currency code"
          },
          "currency_symbol": {
            "type": "string",
            "description": "Currency symbol"
          }
        }
      },
      "Plan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "unique identifier for the plan.",
            "examples": [
              "spl_ba_PpkW16oIW"
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the plan.",
            "examples": [
              "Monthly Subscription"
            ]
          },
          "sku": {
            "type": "string",
            "description": "SKU of the product.",
            "examples": [
              "BOLT-12345"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2023-10-01T12:00:00Z"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "examples": [
              "2023-10-01T12:00:00Z"
            ]
          },
          "frequency": {
            "type": "integer",
            "format": "int64",
            "examples": [
              1
            ]
          },
          "product_id": {
            "type": "string",
            "description": "ID of the product associated with the plan.",
            "examples": [
              "sp_Tlj0Osm0N76T"
            ]
          },
          "frequency_unit": {
            "type": "string",
            "description": "Unit of frequency (e.g., week, month).",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ],
            "examples": [
              "month"
            ]
          },
          "initial_period": {
            "type": [
              "object",
              "null"
            ],
            "description": "How long the initial period lasts before we move over to the regular plan.",
            "properties": {
              "frequency": {
                "type": "integer",
                "format": "int64",
                "description": "Number of units the initial period lasts.",
                "examples": [
                  2
                ]
              },
              "frequency_unit": {
                "type": "string",
                "enum": [
                  "day",
                  "week",
                  "month",
                  "year"
                ],
                "description": "Unit of the initial period (e.g. week, month).",
                "examples": [
                  "week"
                ]
              }
            }
          },
          "checkout_link": {
            "type": "string",
            "description": "Checkout link for the plan.",
            "examples": [
              "https://your_site.c.boltapp.com/g?merchant_product_id=37&merchant_variant_id=67&publishable_key=BQ9PKQksUGtj.Q9LwVLfV3WF4.32122926f7b9651a416a5099dc92dc2b4c87c8b922c114229f83b345d65f1195"
            ]
          }
        }
      },
      "Metadata": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "securitySchemes": {
      "X-API-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "X-Publishable-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Publishable-Key"
      }
    }
  }
}
```
