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

# List active add-ons

> List current one-time credit packs in the environment selected by your API key.

Returns the active one-time credit packs for this organization. Each item has `type: "credit_pack"`, a positive `creditAmount`, and a positive `priceCents` amount in USD cents. The `items` array is empty if no packs have been created; archived packs are omitted.

Pass an add-on ID to [Attach a plan or add-on](https://docs.integrateledger.com/api-reference/billing/attach.md) to start a customer's hosted Checkout. A pack's credits are granted after Stripe confirms payment. Use [Create an add-on](https://docs.integrateledger.com/api-reference/add-ons/create.md) to add one without replacing unrelated catalog items.


## OpenAPI

````yaml openapi.json GET /v1/add-ons
openapi: 3.1.0
info:
  title: Ledger API
  version: 0.1.0
servers:
  - url: https://api.integrateledger.com
    description: Hosted Ledger API
security: []
paths:
  /v1/add-ons:
    get:
      tags:
        - Add-ons
      summary: List active add-ons
      operationId: listAddOns
      responses:
        '200':
          description: Active add-ons
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddOnList'
        '401':
          description: Invalid Ledger API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKey: []
      x-codeSamples:
        - lang: bash
          label: cURL
          source: |-
            curl --request GET 'https://api.integrateledger.com/v1/add-ons' \
              -H "Authorization: Bearer $LEDGER_API_KEY"
        - lang: python
          label: Python SDK (source only)
          source: |-
            import os
            from ledger_sdk import Ledger

            ledger = Ledger(api_key=os.environ["LEDGER_API_KEY"])
            ledger.list_add_ons()
        - lang: typescript
          label: TypeScript SDK (source only)
          source: >-
            import { Ledger } from "@ledger/sdk";


            const ledger = new Ledger({ apiKey: process.env.LEDGER_API_KEY ?? ""
            });

            await ledger.listAddOns();
components:
  schemas:
    AddOnList:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AddOnItem'
      required:
        - items
    AddOnItem:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[a-zA-Z0-9_-]+$
        name:
          type: string
          minLength: 1
          maxLength: 120
        type:
          type: string
          enum:
            - credit_pack
        creditAmount:
          type: integer
          exclusiveMinimum: 0
          maximum: 2147483647
        priceCents:
          type: integer
          exclusiveMinimum: 0
          maximum: 2147483647
      required:
        - id
        - name
        - type
        - creditAmount
        - priceCents
      additionalProperties: false
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.