---
updatedAt: 2026-04-06T12:57:35.000Z
agentTools:
  projectIndex: https://boomfi.readme.io/llms.txt
---

# Get Plan by ID

The **Get Plan by ID** endpoint lets you retrieve detailed information about a specific subscription plan using its unique identifier. Use this endpoint to manage and review individual plans effectively.


<HTMLBlock>{`
<style>
  :root {
    --callout-border: 0;
    --callout-border-radius: 4px;
    --text-color: #000000;

    /* Info Callout Colors */
    --info-light-bg: #DAF8FF;
    --info-light-border: #7CCEDF;
    --info-light-header: #57B3C7;
    --info-light-text: #283652;
    --info-light-link: #57B3C7;
    --info-dark-bg: #DAF8FF;
    --info-dark-border: #7CCEDF;
    --info-dark-header: #57B3C7;
    --info-dark-text: #97B5BC;
    --info-dark-link: #57B3C7;

    /* Okay Callout Colors */
    --okay-light-bg: #DFFFE8;
    --okay-light-border: #116E5F;
    --okay-light-header: #116E5F;
    --okay-light-text: #116E5F;
    --okay-light-link: #61AEA0;
    --okay-dark-bg: #DFFFE8;
    --okay-dark-header: #5BB2A4;
    --okay-dark-text: #7B9792;
    --okay-dark-link: #61AEA0;

    /* Default Callout Colors */
    --default-light-bg: #e8e8e8;
    --default-light-border: #ACACAC;
    --default-light-text: #8A8A8A;
    --default-dark-bg: #e8e8e8;
    --default-dark-text: #FFFFFF;

    /* Warn Callout Colors */
    --warn-light-bg: #fff9c2;
    --warn-light-border: #FFB293;
    --warn-light-header: #FF966B;
    --warn-light-text: #80776C;
    --warn-light-link: #FF966B;
    --warn-dark-bg: #fff9c2;
    --warn-dark-header: #FF966B;
    --warn-dark-text: #989693;
    --warn-dark-link: #FF966B;

    /* Error Callout Colors */
    --error-light-bg: #ffdada;
    --error-light-border: #FA94A6;
    --error-light-header: #FF728B;
    --error-light-text: #B56978;
    --error-light-link: #FF728B;
    --error-dark-bg: #ffdada;
    --error-dark-header: #FF728B;
    --error-dark-text: #C6A5AB;
    --error-dark-link: #FF728B;
  }

  .field-description blockquote,
  .markdown-body blockquote {
    border-left: 0;
  }

  .callout {
    border-radius: var(--callout-border-radius);
    border: var(--callout-border);
  }

  .callout .callout-heading p,
  .callout p,
  .callout ul {
    color: var(--text-color) !important;
  }

  @media (prefers-color-scheme: dark) {

    [data-color-mode="system"] .callout .callout-heading p,
    [data-color-mode="system"] .callout p,
    [data-color-mode="system"] .callout ul {
      color: var(--text-color) !important;
    }
  }

  [data-color-mode="dark"] .callout .callout-heading p,
  [data-color-mode="dark"] .callout p,
  [data-color-mode="dark"] .callout ul {
    color: var(--text-color) !important;
  }

  /* INFO CALLOUT */
  .callout.callout_info {
    background: var(--info-light-bg);
  }

  .callout.callout_info a {
    color: var(--info-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_info {
      background-color: var(--info-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_info a {
      color: var(--info-dark-link) !important;
    }
  }

  [data-color-mode="dark"] .callout.callout_info {
    background-color: var(--info-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_info a {
    color: var(--info-dark-link) !important;
  }

  /* INFO CALLOUT */

  /* OKAY CALLOUT */
  .callout.callout_okay {
    background: var(--okay-light-bg);
  }

  .callout.callout_okay a {
    color: var(--okay-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_okay {
      background-color: var(--okay-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_okay a {
      color: var(--okay-dark-link) !important;
    }
  }

  [data-color-mode="dark"] .callout.callout_okay {
    background-color: var(--okay-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_okay a {
    color: var(--okay-dark-link) !important;
  }

  /* OKAY CALLOUT */

  /* DEFAULT CALLOUT */
  .callout.callout_default {
    background: var(--default-light-bg);
  }

  .callout.callout_default a {
    color: var(--text-color) !important;
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_default {
      background-color: var(--default-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_default a {
      color: var(--text-color) !important;
    }

  }

  [data-color-mode="dark"] .callout.callout_default {
    background-color: var(--default-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_default a {
    color: var(--text-color) !important;
  }

  /* DEFAULT CALLOUT */

  /* WARN CALLOUT */
  .callout.callout_warn {
    background: var(--warn-light-bg);
  }

  .callout.callout_warn a {
    color: var(--warn-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_warn {
      background-color: var(--warn-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_warn a {
      color: var(--warn-dark-link);
    }
  }

  [data-color-mode="dark"] .callout.callout_warn {
    background-color: var(--warn-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_warn a {
    color: var(--warn-dark-link);
  }

  /* WARN CALLOUT */

  /* ERROR CALLOUT */
  .callout.callout_error {
    background: var(--error-light-bg);
  }

  .callout.callout_error a {
    color: var(--error-light-link);
  }

  @media (prefers-color-scheme: dark) {
    [data-color-mode="system"] .callout.callout_error {
      background-color: var(--error-dark-bg) !important;
    }

    [data-color-mode="system"] .callout.callout_error a {
      color: var(--error-dark-link);
    }
  }

  [data-color-mode="dark"] .callout.callout_error {
    background-color: var(--error-dark-bg) !important;
  }

  [data-color-mode="dark"] .callout.callout_error a {
    color: var(--error-dark-link);
  }

  /* ERROR CALLOUT */

  img {
    border-radius: 14px !important;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.15);
  }

  .Sidebar-listWrapper6Q9_yUrG906C.rm-Sidebar-section:nth-child(3),
  .rm-Sidebar-section:nth-child(3), .rm-Sidebar-section:nth-child(4) {
    display: none;
  }

  .Select option {
    color: var(--color-input-text);
  }
</style>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The BoomFi Merchants API provides a set of endpoints for merchants to manage their accounts, transactions, and more.",
    "title": "BoomFi Merchants API",
    "contact": {
      "name": "API Support",
      "email": "support@boomfi.xyz"
    },
    "version": "1.0"
  },
  "paths": {
    "/v1/plan/{planId}": {
      "get": {
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "description": "The **Get Plan by ID** endpoint lets you retrieve detailed information about a specific subscription plan using its unique identifier. Use this endpoint to manage and review individual plans effectively.\n",
        "tags": [
          "Plans"
        ],
        "summary": "Get Plan by ID",
        "operationId": "get-plan-by-id",
        "parameters": [
          {
            "description": "The unique identifier of the plan.",
            "name": "planId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.Response-plan_PlanResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/internal.ErrorResponse500"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "//mapi.boomfi.xyz"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    },
    "schemas": {
      "internal.ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/internal.ErrorStruct"
          }
        }
      },
      "internal.ErrorResponse500": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/internal.ErrorStruct500"
          }
        }
      },
      "internal.ErrorStruct": {
        "type": "object",
        "properties": {
          "code": {
            "description": "The error code returned by the server.\nExample: 400",
            "type": "integer",
            "example": 400
          },
          "errors": {
            "description": "A list of detailed error objects.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/internal.SingleError"
            }
          },
          "message": {
            "description": "A descriptive message explaining the error.\nExample: Insufficient quantity",
            "type": "string",
            "example": "Insufficient quantity"
          }
        }
      },
      "internal.ErrorStruct500": {
        "type": "object",
        "properties": {
          "code": {
            "description": "The error code returned by the server.\nExample: 500",
            "type": "integer",
            "example": 500
          },
          "errors": {
            "description": "A list of detailed error objects.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/internal.SingleError500"
            }
          },
          "message": {
            "description": "A descriptive message explaining the error.\nExample: Internal server error",
            "type": "string",
            "example": "Internal server error"
          }
        }
      },
      "internal.Response-plan_PlanResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/plan.PlanResponse"
          },
          "error": {
            "type": "boolean"
          }
        }
      },
      "internal.SingleError": {
        "type": "object",
        "properties": {
          "domain": {
            "description": "The domain associated with the error.\nExample: orders",
            "type": "string",
            "example": "orders"
          },
          "reason": {
            "description": "The reason for the error.\nExample: InsufficientQuantity",
            "type": "string",
            "example": "InsufficientQuantity"
          }
        }
      },
      "internal.SingleError500": {
        "type": "object",
        "properties": {
          "domain": {
            "description": "The domain associated with the error.\nExample: orders",
            "type": "string",
            "example": "orders"
          },
          "reason": {
            "description": "The reason for the error.\nExample: Internal",
            "type": "string",
            "example": "Internal"
          }
        }
      },
      "models.BillingScheme": {
        "description": "The billing scheme determines how the charges are calculated for the subscription.\n- 1 = Flatfee - 2 = Perunit - 3 = Graduated - 4 = Volume",
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4
        ],
        "x-enum-varnames": [
          "BillingSchemeFlatfee",
          "BillingSchemePerunit",
          "BillingSchemeGraduated",
          "BillingSchemeVolume"
        ]
      },
      "models.BillingSource": {
        "description": "The source  of this billing information. Can be one of the following:\n- 1 = Lago\n- 2 = Boomfi\n- 3 = Stripe\n- 4 = Chargebee",
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4
        ],
        "x-enum-varnames": [
          "BillingSourceLago",
          "BillingSourceBoomfi",
          "BillingSourceStripe",
          "BillingSourceChargebee"
        ]
      },
      "models.PlanType": {
        "description": "The type of the plan:\n- **1** = Unknown\n- **2** = Onetime\n- **3** = Recurring",
        "type": "string",
        "enum": [
          "1",
          "2",
          "3"
        ],
        "x-enum-varnames": [
          "PlanTypeUnknown",
          "PlanTypeOnetime",
          "PlanTypeRecurring"
        ]
      },
      "models.RecurringInterval": {
        "type": "string",
        "description": "The recurring interval for the payment link:\n- **Week**\n- **Month**\n- **Year**\n",
        "enum": [
          "Week",
          "Month",
          "Year"
        ],
        "x-enum-varnames": [
          "RecurringIntervalWeek",
          "RecurringIntervalMonth",
          "RecurringIntervalYear"
        ]
      },
      "models.RecurringUsageType": {
        "type": "integer",
        "enum": [
          1,
          2,
          3
        ],
        "x-enum-varnames": [
          "RecurringUsageTypeUnknown",
          "RecurringUsageTypeLicensed",
          "RecurringUsageTypeMetered"
        ]
      },
      "plan.PlanResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the plan.",
            "example": "2eJh1L1rDrCZxTyE6vwGhck7LWI"
          },
          "org_id": {
            "type": "string",
            "description": "The identifier of the organization associated with the plan.",
            "example": "2Tpmnmh6GHJXumKN1oBy2u56Ima"
          },
          "source": {
            "type": "string",
            "description": "The source of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.BillingSource"
              }
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.PlanType"
              }
            ]
          },
          "type": {
            "type": "string",
            "description": "The type of the plan."
          },
          "billing_scheme": {
            "type": "string",
            "description": "The billing scheme of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.BillingScheme"
              }
            ]
          },
          "price": {
            "type": "string",
            "description": "The price of the plan."
          },
          "currency": {
            "type": "string",
            "description": "The currency of the plan."
          },
          "available_quantity": {
            "type": "integer",
            "description": "The available quantity of the plan."
          },
          "trial_period": {
            "type": "string",
            "description": "The trial period of the plan."
          },
          "recurring_interval": {
            "type": "string",
            "description": "The recurring interval of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.RecurringInterval"
              }
            ]
          },
          "recurring_interval_count": {
            "type": "integer",
            "description": "The count of recurring intervals for the plan."
          },
          "recurring_usage_type": {
            "type": "string",
            "description": "The recurring usage type of the plan.",
            "allOf": [
              {
                "$ref": "#/components/schemas/models.RecurringUsageType"
              }
            ]
          },
          "reference": {
            "type": "string",
            "description": "The reference of the plan."
          },
          "enabled": {
            "type": "boolean",
            "description": "Indicates whether the plan is enabled or not."
          },
          "v1": {
            "type": "string",
            "description": "Additional information about the plan."
          },
          "created_by": {
            "type": "string",
            "description": "The identifier of the user who created the plan."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the plan was created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the plan was last updated."
          },
          "deleted_at": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp when the plan was deleted, if applicable."
          },
          "metadata": {
            "type": "object",
            "description": "Additional metadata associated with the plan.",
            "additionalProperties": true,
            "example": {
              "key": "value"
            }
          },
          "properties": {
            "type": "object",
            "description": "Additional properties of the plan.",
            "additionalProperties": true,
            "example": {
              "key": "value"
            }
          }
        }
      }
    }
  }
}
```