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

# Contract Line Items Api

> Get line items (plan items) for a specific contract.



## OpenAPI

````yaml get /api/v1/contract/{contract_id}/line-items
openapi: 3.1.0
info:
  title: NinjaAPI
  version: 1.0.0
  description: ''
servers:
  - url: https://api.justpaid.io
security: []
paths:
  /api/v1/contract/{contract_id}/line-items:
    get:
      summary: Contract Line Items Api
      description: Get line items (plan items) for a specific contract.
      operationId: loopfour_backend_contract_api_external_contract_line_items_api
      parameters:
        - in: path
          name: contract_id
          schema:
            format: uuid
            title: Contract Id
            type: string
          required: true
        - name: contract_id
          in: path
          description: The UUID of the contract
          required: true
          schema:
            type: string
          example: 123e4567-e89b-12d3-a456-426614174000
      responses:
        '200':
          description: List of plan items with pricing details
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PlanItemOut'
                title: Response
                type: array
              example:
                - uuid: item-uuid
                  name: API Calls
                  description: Pay per API call
                  billing_alias: api_calls
                  prices:
                    - uuid: price-uuid
                      price: 0.001
                      billing_cycle: monthly
                      price_type: usage_based_fee
                      recurring: false
                      usage_based_unit: calls
                      usage_based_unit_price: 0.001
                      min_units: 0
                      max_units: null
        '404':
          description: Contract not found
          content:
            application/json:
              example:
                detail: Contract not found
      security:
        - HttpBearerAuth: []
components:
  schemas:
    PlanItemOut:
      description: Plan item with pricing information.
      properties:
        billing_alias:
          anyOf:
            - type: string
            - type: 'null'
          description: The billing alias for this plan item
          example: api_calls
          title: Billing Alias
        prices:
          default: []
          description: List of prices for this plan item
          items:
            $ref: '#/components/schemas/PlanItemPriceOut'
          title: Prices
          type: array
        uuid:
          format: uuid
          title: Uuid
          type: string
        name:
          maxLength: 255
          title: Name
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      required:
        - name
      title: PlanItemOut
      type: object
    PlanItemPriceOut:
      description: Detailed plan item price information.
      properties:
        price:
          anyOf:
            - type: number
            - type: 'null'
          description: The price of the plan item
          example: 99.99
          title: Price
        billing_cycle:
          anyOf:
            - type: string
            - type: 'null'
          description: The billing cycle for this price
          example: monthly
          title: Billing Cycle
        price_type:
          anyOf:
            - type: string
            - type: 'null'
          description: The type of price (fixed_fee, usage_based_fee, tiered_fee, etc.)
          example: fixed_fee
          title: Price Type
        minimum_spend:
          anyOf:
            - type: number
            - type: 'null'
          description: Minimum amount to be charged for usage-based pricing
          example: 100
          title: Minimum Spend
        minimum_units:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            Minimum number of units to be billed if usage is below this
            threshold
          example: 1000
          title: Minimum Units
        allocated_units:
          anyOf:
            - type: number
            - type: 'null'
          description: Number of units allocated before overage charges apply
          example: 10000
          title: Allocated Units
        uuid:
          format: uuid
          title: Uuid
          type: string
      title: PlanItemPriceOut
      type: object
  securitySchemes:
    HttpBearerAuth:
      type: http
      scheme: bearer

````