> ## 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 document status by partner ext_id



## OpenAPI

````yaml /openapi/partner.openapi.yaml get /partner/documents/{ext_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/documents/{ext_id}:
    get:
      tags:
        - Documents
      summary: Get document status by partner ext_id
      operationId: getPartnerDocument
      parameters:
        - name: ext_id
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ExtId'
      responses:
        '200':
          description: Document status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentResponse'
        '404':
          $ref: '#/components/responses/Error'
components:
  schemas:
    ExtId:
      type: string
      minLength: 1
      maxLength: 128
      description: Partner-side idempotency key (unique per partner)
      example: card-issue-20260710-003
    DocumentResponse:
      type: object
      properties:
        ext_id:
          $ref: '#/components/schemas/ExtId'
        type:
          type: string
          enum:
            - withdrawal
            - card_issue
            - card_topup
            - card_freeze
            - esim_purchase
            - esim_topup
            - gift_purchase
        id:
          type: string
        status:
          type: string
        updated_at:
          type: string
          format: date-time
        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

````