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

# Top up a card (USDT debit from partner balance)



## OpenAPI

````yaml /openapi/partner.openapi.yaml post /partner/cards/{card_id}/topups
openapi: 3.1.0
info:
  title: IMBA Partner API
  version: 1.0.0
  summary: B2B Partner API for USDT settlement, cards, eSIM, and gift cards
  description: |
    Logical REST surface for IMBA B2B partners.

    - API base URL: `https://api.imbawallet.com`
    - Human docs: `https://api-docs.imbawallet.com`
    - Authenticate with `POST /auth/v1/partner/token` (assertion JWT), then call
      Partner endpoints with `Authorization: Bearer <access_token>`.
    - Amounts are decimal strings. Timestamps are UTC RFC 3339.
  contact:
    name: IMBA Partner Support
    email: support@imbawallet.com
  license:
    name: Proprietary
    url: https://imbawallet.com
servers:
  - url: https://api.imbawallet.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Auth
    description: Assertion JWT → access token
  - name: Balance
    description: Partner settlement balance
  - name: Deposit
    description: Sticky USDT TRC-20 deposit address
  - name: Withdrawals
    description: USDT withdrawals from partner balance
  - name: Cards
    description: Card catalog, issue, secrets, topup, freeze
  - name: eSIM
    description: eSIM offers, purchase, topup
  - name: Gift cards
    description: Gift offers and purchases
  - name: Documents
    description: Poll async documents by ext_id
  - name: Reconciliation
    description: Ledger lines for partner books
paths:
  /partner/cards/{card_id}/topups:
    post:
      tags:
        - Cards
      summary: Top up a card (USDT debit from partner balance)
      operationId: createPartnerCardTopup
      parameters:
        - $ref: '#/components/parameters/cardId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - amount_usdt
                - ext_id
              properties:
                amount_usdt:
                  $ref: '#/components/schemas/DecimalString'
                ext_id:
                  $ref: '#/components/schemas/ExtId'
      responses:
        '202':
          description: Topup accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardTopupResponse'
        '409':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
components:
  parameters:
    cardId:
      name: card_id
      in: path
      required: true
      schema:
        type: string
        example: 00112233445566778899aabb
  schemas:
    DecimalString:
      type: string
      pattern: ^-?\d+(\.\d+)?$
      example: '12.50'
    ExtId:
      type: string
      minLength: 1
      maxLength: 128
      description: Partner-side idempotency key (unique per partner)
      example: card-issue-20260710-003
    CardTopupResponse:
      type: object
      properties:
        ext_id:
          $ref: '#/components/schemas/ExtId'
        topup_id:
          type: string
        card_id:
          type: string
        amount:
          $ref: '#/components/schemas/DecimalString'
        fee:
          $ref: '#/components/schemas/DecimalString'
        status:
          type: string
          example: accepted
        request_id:
          $ref: '#/components/schemas/RequestId'
    RequestId:
      type: string
      format: uuid
      description: Correlation id for support
    Error:
      type: object
      required:
        - error
        - message
        - request_id
      properties:
        error:
          type: string
          example: insufficient_balance
        message:
          type: string
        request_id:
          $ref: '#/components/schemas/RequestId'
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token from POST /auth/v1/partner/token

````