> ## 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.

# Get card details (secrets via JWE or plaintext mode)



## OpenAPI

````yaml /openapi/partner.openapi.yaml get /partner/cards/{card_id}
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}:
    get:
      tags:
        - Cards
      summary: Get card details (secrets via JWE or plaintext mode)
      operationId: getPartnerCard
      parameters:
        - $ref: '#/components/parameters/cardId'
      responses:
        '200':
          description: Card details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardGetResponse'
        '404':
          $ref: '#/components/responses/Error'
components:
  parameters:
    cardId:
      name: card_id
      in: path
      required: true
      schema:
        type: string
        example: 00112233445566778899aabb
  schemas:
    CardGetResponse:
      type: object
      properties:
        card_id:
          type: string
        ext_id:
          $ref: '#/components/schemas/ExtId'
        card_product:
          type: integer
        issue_status:
          type: string
        status:
          type: string
          enum:
            - issuing
            - active
            - frozen
            - closed
            - failed
        currency:
          type: string
        number_masked:
          type: string
        card_encrypted:
          type:
            - string
            - 'null'
          description: Compact JWE (ECDH-ES + A256GCM) when card_payload=jwe
        card:
          type:
            - object
            - 'null'
          additionalProperties: true
          description: Present only when card_payload=plaintext
        balance:
          type: object
          properties:
            available:
              $ref: '#/components/schemas/DecimalString'
            pending:
              $ref: '#/components/schemas/DecimalString'
            cached_at:
              type: string
              format: date-time
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        request_id:
          $ref: '#/components/schemas/RequestId'
    ExtId:
      type: string
      minLength: 1
      maxLength: 128
      description: Partner-side idempotency key (unique per partner)
      example: card-issue-20260710-003
    DecimalString:
      type: string
      pattern: ^-?\d+(\.\d+)?$
      example: '12.50'
    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

````