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

# Update auto-recharge settings

> Configures automatic balance top-up: when the balance drops below the threshold, a one-off invoice charges the saved payment method to restore it to the target. Requires an admin-role caller: an API key carries its creator's organization role, so the key must belong to an org admin. This only tunes when the saved payment method is charged — adding funds or payment methods stays in the dashboard.



## OpenAPI

````yaml /api-reference/openapi-backend.json put /billing/auto-recharge
openapi: 3.1.0
info:
  description: Axilio backend HTTP API.
  title: Axilio API
  version: 0.85.0
servers:
  - url: https://api.axilio.ai/api/v1
    description: Production
security: []
tags:
  - name: API Keys
  - name: Billing
  - name: Files
  - name: Organization
  - name: Phones
  - name: Runs
  - name: Skill
  - name: Usage
  - name: Workflows
paths:
  /billing/auto-recharge:
    put:
      tags:
        - Billing
      summary: Update auto-recharge settings
      description: >-
        Configures automatic balance top-up: when the balance drops below the
        threshold, a one-off invoice charges the saved payment method to restore
        it to the target. Requires an admin-role caller: an API key carries its
        creator's organization role, so the key must belong to an org admin.
        This only tunes when the saved payment method is charged — adding funds
        or payment methods stays in the dashboard.
      operationId: billing_update_auto_recharge
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionAutoRechargeSettings'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionAutoRechargeSettingsResponse'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    SubscriptionAutoRechargeSettings:
      additionalProperties: false
      description: >-
        Auto-recharge configuration: top up the balance automatically when it
        drops below a threshold.
      properties:
        enabled:
          description: Whether auto-recharge is active.
          type: boolean
        target_cents:
          description: >-
            Balance the recharge restores to, in cents (minimum 500 = $5.00).
            The charge is target minus current balance.
          format: int64
          type: integer
        threshold_cents:
          description: Recharge when the balance drops below this amount, in cents.
          format: int64
          type: integer
      required:
        - enabled
        - threshold_cents
        - target_cents
      type: object
    SubscriptionAutoRechargeSettingsResponse:
      additionalProperties: false
      description: The org's auto-recharge configuration and status.
      properties:
        disabled_reason:
          description: >-
            Why auto-recharge turned itself off (payment_failed), if it did.
            Re-enabling clears it.
          enum:
            - payment_failed
          type: string
        enabled:
          description: Whether auto-recharge is active.
          type: boolean
        target_cents:
          description: >-
            Balance the recharge restores to, in cents (minimum 500 = $5.00).
            The charge is target minus current balance.
          format: int64
          type: integer
        threshold_cents:
          description: Recharge when the balance drops below this amount, in cents.
          format: int64
          type: integer
      required:
        - enabled
        - threshold_cents
        - target_cents
      type: object
    V2ErrorModel:
      additionalProperties: false
      description: >-
        Error response, following RFC 9457 (Problem Details for HTTP APIs).
        Returned with a application/problem+json content type.
      properties:
        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/V2ErrorDetail'
          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
    V2ErrorDetail:
      additionalProperties: false
      description: >-
        One specific problem within an error response, locating the offending
        part of the request.
      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
  securitySchemes:
    apiKeyAuth:
      description: Customer API key (axl_ prefix).
      in: header
      name: X-Axilio-Api-Key
      type: apiKey

````

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