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

# Post an externally collected prepaid payment using bootstrap authority



## OpenAPI

````yaml /openapi.json post /api/v1/admin/billing/credits
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 1.0.0
servers:
  - description: Local InferCrane API and gateway
    url: http://127.0.0.1:18000
security: []
tags:
  - name: Admission
  - name: Adoption
  - name: Alerts
  - name: Async inference
  - name: Audit
  - name: Autopilot
  - name: Benchmarks
  - name: Billing
  - name: Billing administration
  - name: Burst Guard
  - name: Capacity intelligence
  - name: Compute
  - name: Context Passport
  - name: Deployments
  - name: Diagnostics
  - name: Endpoints
  - name: External capacity
  - name: FinOps
  - name: Identity
  - name: Inference
  - name: Inference Lab
  - name: Inference decisions
  - name: Inference optimization
  - name: Infrastructure
  - name: Model APIs
  - name: Model artifacts
  - name: Model catalog
  - name: Monitoring
  - name: Operations
  - name: Providers
  - name: Recipes
  - name: Release Guard
  - name: Release evidence
  - name: Replay
  - name: Revisions
  - name: Routing
  - name: Sandboxes
  - name: Scaling
  - name: Secrets
  - name: System
  - name: Targets
  - name: Training lineage
paths:
  /api/v1/admin/billing/credits:
    post:
      tags:
        - Billing administration
      summary: Post an externally collected prepaid payment using bootstrap authority
      operationId: creditManagedWallet
      parameters:
        - description: >-
            Stable key used to adopt the original durable operation after
            retries or disconnects.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 128
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManagedWalletCredit'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedWalletEnvelope'
          description: Created
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    ManagedWalletCredit:
      additionalProperties: false
      properties:
        amount_microusd:
          minimum: 1
          type: integer
        description:
          maxLength: 255
          minLength: 1
          type: string
        tenant_id:
          minLength: 1
          type: string
      required:
        - tenant_id
        - amount_microusd
        - description
      type: object
    ManagedWalletEnvelope:
      properties:
        checkout_amounts_microusd:
          items:
            enum:
              - 25000000
              - 50000000
              - 100000000
              - 250000000
              - 500000000
            type: integer
          type: array
        credit_id:
          type: string
        data:
          $ref: '#/components/schemas/ManagedWallet'
        funding_available:
          type: boolean
        funding_mode:
          const: prepaid
          type: string
        funding_provider:
          enum:
            - ''
            - stripe
          type: string
        payment_collected_by_infercrane:
          type: boolean
        payment_collection:
          type: string
      required:
        - data
        - funding_mode
        - funding_available
        - funding_provider
        - checkout_amounts_microusd
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    ManagedWallet:
      additionalProperties: false
      properties:
        available_microusd:
          type: integer
        balance_microusd:
          type: integer
        currency:
          const: USD
          type: string
        reserved_microusd:
          minimum: 0
          type: integer
        tenant_id:
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - tenant_id
        - currency
        - balance_microusd
        - reserved_microusd
        - available_microusd
        - updated_at
      type: object
    Error:
      properties:
        category:
          type: string
        code:
          type: string
        message:
          type: string
        remediation:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````