> ## Documentation Index
> Fetch the complete documentation index at: https://www.ravion.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get BillingPlan by id

> Retrieve a single billing plan by ID. Returns its full configuration and current state. GET /billing-plans/{id} in the Ravion API reference.



## OpenAPI

````yaml https://api.ravion.com/openapi.yaml get /billing-plans/{id}
openapi: 3.0.0
info:
  title: Ravion
  version: 0.0.0
servers:
  - url: https://api.ravion.com
security:
  - BearerAuth: []
tags:
  - name: Projects
  - name: Environments
  - name: Pipelines
  - name: PipelineRuns
  - name: TerraformResources
  - name: TerraformExecutionSummaries
  - name: PipelineStepExecutions
  - name: AwsCloudWatch
  - name: PipelineVersions
  - name: Organizations
  - name: Stacks
  - name: StackWorkspaces
  - name: Auth
  - name: OAuth
  - name: User
  - name: Health
  - name: Memberships
  - name: ServiceAccounts
  - name: AwsDefaultNetworks
  - name: AwsAccounts
  - name: ApiKeys
  - name: AwsAmp
  - name: EksPrometheus
  - name: EksLoki
  - name: ExecutionEnvironments
  - name: ModuleDefinitions
  - name: ModuleCategories
  - name: ModuleVersions
  - name: ModuleInstances
  - name: DefaultValueDefinitions
  - name: DefaultValues
  - name: CodeSources
  - name: Github
  - name: Gitlab
  - name: Git
  - name: Values
  - name: Deployments
  - name: DeploymentResources
  - name: InfrastructureEvents
  - name: WebSocket
  - name: Domains
  - name: AcmCertificates
  - name: Describe
  - name: Reports
  - name: BillingPlans
  - name: BillingAccounts
  - name: BillingUsageSummaries
  - name: BillingAddOns
  - name: BillingInvoices
paths:
  /billing-plans/{id}:
    get:
      tags:
        - BillingPlans
      summary: Get BillingPlan by id
      description: >-
        Retrieve a single billing plan by ID. Returns its full configuration and
        current state.
      operationId: GetBillingPlan
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    $ref: '#/components/schemas/BillingPlan'
                required:
                  - data
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The request is invalid or malformed.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You are not authenticated
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: You do not have permission to access this resource.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: The server cannot find the requested resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors.UserFacingErrorData'
          description: Server error
components:
  schemas:
    BillingPlan:
      additionalProperties: false
      properties:
        deprecated:
          readOnly: true
          type: boolean
        displayName:
          readOnly: true
          type: string
        entitlements:
          items:
            $ref: '#/components/schemas/BillingEntitlement'
          readOnly: true
          type: array
        id:
          readOnly: true
          type: string
        pricing:
          allOf:
            - $ref: '#/components/schemas/BillingPlan.Pricing'
          readOnly: true
        tier:
          allOf:
            - $ref: '#/components/schemas/BillingPlanTier'
          readOnly: true
      required:
        - id
        - displayName
        - tier
        - deprecated
        - entitlements
        - pricing
      type: object
    Errors.UserFacingErrorData:
      additionalProperties: false
      description: |-
        User-facing error presentation data.
        This is what the API returns to the frontend after formatting ErrorData
        using CEL templates from the error registry.

        Used for both:
        - Error fields on domain models (e.g., PipelineRun.error)
        - API error response bodies (HTTP 4xx/5xx responses)
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Errors.Action'
          description: Optional action to help resolve the error
        code:
          description: Full error code, e.g., "Ravion:Pipeline:NOT_FOUND"
          type: string
        description:
          description: Additional description with more details
          type: string
        details:
          description: Structured details rendered as user-facing sections.
          items:
            $ref: '#/components/schemas/Errors.UserFacingErrorDetailSection'
          type: array
        isInternal:
          description: >-
            Indicates whether this error is internal (only set when
            ShowInternal=true).

            This allows SUPERADMINs to identify internal errors while viewing
            full details.
          type: boolean
        message:
          description: Main error message (required)
          type: string
        metadata:
          additionalProperties: {}
          description: >-
            Error params/metadata. Stripped for internal errors unless
            superadmin.
          type: object
        requestId:
          description: Request ID for correlating errors with server logs.
          type: string
      required:
        - code
        - message
      type: object
    BillingEntitlement:
      additionalProperties: false
      properties:
        enabled:
          type: boolean
        key:
          $ref: '#/components/schemas/BillingEntitlementKey'
        kind:
          $ref: '#/components/schemas/BillingEntitlementKind'
        limit:
          format: int64
          type: integer
        unlimited:
          type: boolean
      required:
        - key
        - kind
      type: object
    BillingPlan.Pricing:
      additionalProperties: false
      description: >-
        List prices the plan bills usage at, in USD, from the billing catalogue.
        A free plan bills nothing.
      properties:
        containerModuleMonthly:
          allOf:
            - $ref: '#/components/schemas/BillingDecimal'
          description: Per container module-month.
        monthlyCredit:
          allOf:
            - $ref: '#/components/schemas/BillingDecimal'
          description: Credit netted against each month's usage.
        pipelineMinute:
          allOf:
            - $ref: '#/components/schemas/BillingDecimal'
          description: Per pipeline minute beyond the included allowance.
        pipelineMinutesIncluded:
          format: int64
          type: integer
        previewShare:
          allOf:
            - $ref: '#/components/schemas/BillingDecimal'
          description: Share of the full module price a preview module bills at, e.g. 0.25.
        standardModuleMonthly:
          allOf:
            - $ref: '#/components/schemas/BillingDecimal'
          description: Per standard module-month.
      required:
        - standardModuleMonthly
        - containerModuleMonthly
        - previewShare
        - pipelineMinute
        - pipelineMinutesIncluded
        - monthlyCredit
      type: object
    BillingPlanTier:
      enum:
        - FREE
        - TEAM
        - ENTERPRISE
      type: string
    Errors.Action:
      additionalProperties: false
      description: Action to help user resolve the error
      properties:
        label:
          description: Button/link label text
          type: string
        url:
          description: URL to navigate to for resolution
          type: string
      required:
        - label
        - url
      type: object
    Errors.UserFacingErrorDetailSection:
      additionalProperties: false
      description: Structured user-facing error detail section.
      properties:
        items:
          description: List of detail values for this section.
          items:
            type: string
          type: array
        object:
          additionalProperties: {}
          description: Structured detail payload for object rendering.
          type: object
        render:
          description: Rendering hint for clients. Valid values are list or object.
          type: string
        title:
          description: Detail section title shown in the UI.
          type: string
      required:
        - title
        - render
      type: object
    BillingEntitlementKey:
      enum:
        - SAML
        - SCIM
        - COMPLIANCE_CONTROLS
        - BAA
        - SLACK_SUPPORT
        - PREVIEW_ENVIRONMENTS
        - MAX_MEMBERS
        - MAX_LIVE_MODULES
        - PIPELINE_MINUTES
        - AI_TOKEN_CENTS
      type: string
    BillingEntitlementKind:
      enum:
        - BOOLEAN
        - LIMIT
      type: string
    BillingDecimal:
      description: An exact decimal billing quantity serialized as a string.
      pattern: ^-?(0|[1-9]\d*)(\.\d+)?$
      type: string
  securitySchemes:
    BearerAuth:
      scheme: Bearer
      type: http

````