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

# Get the monetary credit balance for a subscription

> Returns the customer's monetary credit balance applicable to this subscription, evaluated at the `as_of` timestamp (defaults to now). Expired grants are excluded from the returned balance.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /subscriptions/{id}/credits/balance
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Invoices
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Wallet Grants
  - name: Wallets
paths:
  /subscriptions/{id}/credits/balance:
    get:
      tags:
        - Subscriptions
      summary: Get the monetary credit balance for a subscription
      description: >-
        Returns the customer's monetary credit balance applicable to this
        subscription, evaluated at the `as_of` timestamp (defaults to now).
        Expired grants are excluded from the returned balance.
      operationId: get-subscription-credit-balance
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the subscription
            type: string
        - in: query
          name: as_of
          required: true
          schema:
            description: >-
              Point in time to evaluate the balance at (RFC3339). Defaults to
              now.
            example: '2026-04-01T00:00:00Z'
            format: date-time
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionCreditBalanceResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    SubscriptionCreditBalanceResponse:
      properties:
        as_of:
          description: The point in time the balance was evaluated at
          example: '2026-04-01T00:00:00Z'
          format: date-time
          type: string
        balance:
          description: Current balance at the evaluated point in time
          example: '125.00'
          type: string
        credit_type:
          description: Credit type
          example: monetary
          type: string
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        subscription_id:
          description: Subscription ID
          example: sub_abc123
          type: string
      required:
        - as_of
        - balance
        - credit_type
        - currency
        - subscription_id
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````