code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Subscription.retrieve(
    "sub_1JbiLB2eZvKYlo2CNHnqfMzf",
  )
  '''Response {
    "id": "sub_1JbiLB2eZvKYlo2CNHnqfMzf",
    "object": "subscription",
    "application": null,
    "application_fee_percent": null,
    "automatic_tax": {
      "enabled": false
    },
    "billing_cycle_anchor": 1633337949,
    "billing_thresholds": null,
    "cancel_at": null,
    "cancel_at_period_end": false,
    "canceled_at": null,
    "collection_method": "charge_automatically",
    "created": 1632128349,
    "currency": "usd",
    "current_period_end": 1660553949,
    "current_period_start": 1658739549,
    "customer": "cus_KGEouBKGmh7mXW",
    "days_until_due": null,
    "default_payment_method": "pm_1JbiL92eZvKYlo2CuiUB2nL1",
    "default_source": null,
    "default_tax_rates": [],
    "description": null,
    "discount": null,
    "ended_at": null,
    "items": {
      "object": "list",
      "data": [
        {
          "id": "si_KGEo6oKuLzcuYw",
          "object": "subscription_item",
          "billing_thresholds": null,
          "created": 1632128350,
          "metadata": {},
          "price": {
            "id": "15",
            "object": "price",
            "active": true,
            "billing_scheme": "per_unit",
            "created": 1386685951,
            "currency": "usd",
            "custom_unit_amount": null,
            "livemode": false,
            "lookup_key": null,
            "metadata": {
              "charset": "utf-8",
              "content": "15"
            },
            "nickname": null,
            "product": "prod_BTdpcRLIUTfsFR",
            "recurring": {
              "aggregate_usage": null,
              "interval": "week",
              "interval_count": 3,
              "usage_type": "licensed"
            },
            "tax_behavior": "unspecified",
            "tiers_mode": null,
            "transform_quantity": null,
            "type": "recurring",
            "unit_amount": 444,
            "unit_amount_decimal": "444"
          },
          "quantity": 1,
          "subscription": "sub_1JbiLB2eZvKYlo2CNHnqfMzf",
          "tax_rates": []
        }
      ],
      "has_more": false,
      "url": "/v1/subscription_items?subscription=sub_1JbiLB2eZvKYlo2CNHnqfMzf"
    },
    "latest_invoice": "in_1LPN8U2eZvKYlo2C2h002pSa",
    "livemode": false,
    "metadata": {},
    "next_pending_invoice_item_invoice": null,
    "pause_collection": null,
    "payment_settings": {
      "payment_method_options": null,
      "payment_method_types": null,
      "save_default_payment_method": null
    },
    "pending_invoice_item_interval": null,
    "pending_setup_intent": null,
    "pending_update": null,
    "schedule": null,
    "start_date": 1632128349,
    "status": "active",
    "test_clock": null,
    "transfer_data": null,
    "trial_end": 1633337949,
    "trial_start": 1632128349
  }'''
nl: Retrieve a subscriptionRetrieves the subscription with the given ID.ParametersNo parameters.ReturnsReturns the subscription object