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

# Get billing package



## OpenAPI

````yaml en/openapi/v3-current/ledger.yaml get /v1/organizations/{organization_id}/billing-packages/{billing_package_id}
openapi: 3.1.0
info:
  title: Midaz Ledger API
  description: >-
    Complete API reference for Midaz Ledger services including organization
    management, ledger operations, assets, segments, portfolios, accounts,
    account types, transactions, operations, balances, operation routes,
    transaction routes, and metadata indexes.
  version: 3.7.8
servers:
  - url: https://ledger.sandbox.lerian.net
security: []
tags:
  - name: Organizations API
  - name: Ledgers API
  - name: Assets API
  - name: Segments API
  - name: Portfolios API
  - name: Account Types API
  - name: Accounts API
  - name: Balances API
  - name: Transactions API
  - name: Operations API
  - name: Operation Routes API
  - name: Transaction Routes API
  - name: Metadata Indexes API
  - name: Holders API
  - name: Instruments API
  - name: Billing Packages API
  - name: Packages API
  - name: Billing Calculation API
  - name: Estimation API
  - name: Encryption API
  - name: Protection API
  - name: Asset Rates API
paths:
  /v1/organizations/{organization_id}/billing-packages/{billing_package_id}:
    get:
      tags:
        - Billing Packages API
      summary: Get billing package
      parameters:
        - $ref: '#/components/parameters/OrganizationId'
        - name: billing_package_id
          in: path
          required: true
          description: Billing package ID (UUID)
          schema:
            type: string
        - $ref: '#/components/parameters/XRequestId'
        - $ref: '#/components/parameters/Authorization'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeeBillingPackage'
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    OrganizationId:
      name: organization_id
      in: path
      description: The unique identifier of the Organization associated with the Ledger.
      required: true
      example: 019c96a0-0a98-7287-9a31-786e0809c769
      schema:
        type: string
        format: uuid
    XRequestId:
      name: X-Request-Id
      in: header
      description: A unique identifier used to trace and track each request.
      required: false
      example: 019c96a0-0a98-7287-9a31-786e0809c769
      schema:
        type: string
        format: uuid
    Authorization:
      name: Authorization
      in: header
      required: false
      schema:
        type: string
      description: >
        Bearer JWT token for authentication.

        Required when `PLUGIN_AUTH_ENABLED=true` (enforced in multi-tenant
        deployments).

        Optional in default OSS single-tenant mode.

        Format: `Bearer <token>`
  schemas:
    FeeBillingPackage:
      additionalProperties: false
      properties:
        accountTarget:
          $ref: '#/components/schemas/FeeAccountTarget'
        assetCode:
          examples:
            - BRL
          type: string
        countMode:
          examples:
            - perRoute
          type: string
        createdAt:
          examples:
            - '2026-01-01T00:00:00Z'
          type: string
        creditAccountAlias:
          examples:
            - account_fees_credit
          type: string
        debitAccountAlias:
          examples:
            - account_fees_debit
          type: string
        deletedAt:
          examples:
            - '2026-06-01T00:00:00Z'
          type: string
        description:
          examples:
            - Charges per completed transaction route
          type: string
        discountTiers:
          items:
            $ref: '#/components/schemas/FeeDiscountTier'
          type:
            - array
            - 'null'
        enable:
          examples:
            - true
          type:
            - boolean
            - 'null'
        eventFilter:
          $ref: '#/components/schemas/FeeEventFilter'
        feeAmount:
          examples:
            - '50.00'
          type: string
        freeQuota:
          examples:
            - 100
          format: int64
          type: integer
        id:
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        label:
          examples:
            - Monthly Volume Billing
          type: string
        ledgerId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        maintenanceCreditAccount:
          examples:
            - account_maintenance_credit
          type: string
        organizationId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        pricingModel:
          examples:
            - tiered
          type: string
        tiers:
          items:
            $ref: '#/components/schemas/FeePricingTier'
          type:
            - array
            - 'null'
        type:
          examples:
            - volume
          type: string
        updatedAt:
          examples:
            - '2026-01-01T00:00:00Z'
          type: string
      required:
        - id
        - organizationId
        - ledgerId
        - label
        - type
        - enable
        - createdAt
        - updatedAt
      type: object
    Error:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    FeeAccountTarget:
      additionalProperties: false
      properties:
        aliases:
          examples:
            - - account_alpha
              - account_beta
          items:
            type: string
          type:
            - array
            - 'null'
        portfolioId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
        segmentId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          type: string
      type: object
    FeeDiscountTier:
      additionalProperties: false
      properties:
        discountPercentage:
          examples:
            - '10.00'
          type: string
        minQuantity:
          examples:
            - 1000
          format: int64
          type: integer
      required:
        - minQuantity
        - discountPercentage
      type: object
    FeeEventFilter:
      additionalProperties: false
      properties:
        status:
          examples:
            - APPROVED
          type: string
        transactionRoute:
          examples:
            - payment_route
          type: string
      required:
        - transactionRoute
        - status
      type: object
    FeePricingTier:
      additionalProperties: false
      properties:
        maxQuantity:
          examples:
            - 999
          format: int64
          type: integer
        minQuantity:
          examples:
            - 0
          format: int64
          type: integer
        unitPrice:
          examples:
            - '1.50'
          type: string
      required:
        - minQuantity
        - unitPrice
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object

````