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

# Get a single CalcRule

> Retrieve a single `CalcRule` by ID.



## OpenAPI

````yaml /api-reference/services_docs_mintlify/billing_reseller_api.yaml get /billing/org/v1/calc-rules/{id}
openapi: 3.1.0
info:
  title: Gcore OpenAPI – Billing Reseller API
  description: >-
    This OpenAPI is an aggregated OpenAPI specification that unifies all Gcore
    products into a single file. It covers Cloud, CDN, DNS, WAAP, DDoS
    Protection, Object Storage, Streaming, and FastEdge services.
  version: 0a2f0545eb4d
servers:
  - url: https://api.gcore.com
security:
  - APIKey: []
tags:
  - name: addendums
    description: Operations on client addendums
  - name: calc_rules
  - name: currencies
  - name: erp-invoices
  - name: expenses
    description: Operations on expenses
  - name: plans
    description: Operations on tariff plans and their contents
  - name: products
  - name: reports
    description: >-
      Operations involving reports and the associated background tasks that
      handle their processing
  - name: trials
paths:
  /billing/org/v1/calc-rules/{id}:
    get:
      tags:
        - calc_rules
      summary: Get a single CalcRule
      description: Retrieve a single `CalcRule` by ID.
      operationId: v1_calc_rules_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalcRule'
          description: Request successful.
        '401':
          description: Authentication credentials were not provided or are invalid.
        '403':
          description: You do not have permission to perform this action.
        '404':
          description: The requested resource was not found.
components:
  schemas:
    CalcRule:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          readOnly: true
        rule_type:
          enum:
            - commit
            - overcommit
            - stepped
            - staged
            - commit_hourly
          type: string
          description: |-
            - `commit` - commit
            - `overcommit` - overcommit
            - `stepped` - stepped
            - `staged` - staged
            - `commit_hourly` - `commit_hourly`
          x-spec-enum-id: 46d5e926a44582db
          readOnly: true
      required:
        - id
        - name
        - rule_type
  securitySchemes:
    APIKey:
      description: >-
        API key for authentication. Make sure to include the word `apikey`,
        followed by a single space and then your token.

        Example: `apikey 1234$abcdef`
      type: apiKey
      in: header
      name: Authorization

````