Get subscription products

📘

API Refs

Query Parameters

NameTypeDescriptionRequired
include_plansbooleanWhether to include pricing plans in the responseno

Response body

Success Response (200 OK)

Returns an array of product objects.

Product Object

FieldTypeDescription
stripeProductIdstringStripe product identifier
namestringProduct name
descriptionstringProduct description
plansarrayAvailable pricing plans (only if include_plans=true)

Plan Object (when included)

FieldTypeDescription
stripePriceIdstringStripe price ID
amountnumberPrice amount in cents
currencystringCurrency code
intervalstringBilling interval

Response

[
  {
    "stripeProductId": "prod_ExampleProductABC",
    "name": "Auto Insurance Plans",
    "description": "Comprehensive auto insurance coverage with multiple plan options",
    "plans": [
      {
        "stripePriceId": "price_ExamplePriceID456",
        "amount": 4999,
        "currency": "usd",
        "interval": "month"
      },
      {
        "stripePriceId": "price_ExamplePriceID789",
        "amount": 49999,
        "currency": "usd",
        "interval": "year"
      }
    ]
  },
  {
    "stripeProductId": "prod_ExampleProductDEF",
    "name": "Home Insurance Plans",
    "description": "Complete home insurance protection",
    "plans": [
      {
        "stripePriceId": "price_ExamplePriceID321",
        "amount": 7999,
        "currency": "usd",
        "interval": "month"
      }
    ]
  }
]

Description

This endpoint retrieves all subscription products for the merchant. Products represent what you're selling (e.g., different insurance coverage tiers), and optionally include the associated pricing plans that define billing intervals and amounts.

Use this endpoint to:

  • Display available subscription options to your customers
  • Get product and price IDs for creating subscriptions
  • Manage your product catalog

Error Responses

  • 401 Unauthorized: Invalid or missing authorization token
  • 403 Forbidden: Insufficient permissions