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

# Pull reconciliation ledger lines



## OpenAPI

````yaml /openapi/partner.openapi.yaml get /partner/reconciliation
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/reconciliation:
    get:
      tags:
        - Reconciliation
      summary: Pull reconciliation ledger lines
      operationId: getPartnerReconciliation
      parameters:
        - name: from
          in: query
          required: true
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 100
        - name: cursor
          in: query
          schema:
            type: string
      responses:
        '200':
          description: Reconciliation page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReconciliationResponse'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
components:
  schemas:
    ReconciliationResponse:
      type: object
      properties:
        currency:
          type: string
        network:
          type: string
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
        as_of:
          type: string
          format: date-time
        opening_balance:
          $ref: '#/components/schemas/DecimalString'
        closing_balance:
          $ref: '#/components/schemas/DecimalString'
        total_debit:
          $ref: '#/components/schemas/DecimalString'
        total_credit:
          $ref: '#/components/schemas/DecimalString'
        entries:
          type: array
          items:
            type: object
            properties:
              ts:
                type: string
                format: date-time
              operation_type:
                type: string
                enum:
                  - deposit
                  - withdrawal
                  - withdrawal_fee
                  - card_issue
                  - card_topup
                  - card_fee
                  - esim_purchase
                  - esim_topup
                  - gift_purchase
                  - adjustment
              amount:
                $ref: '#/components/schemas/DecimalString'
              direction:
                type: string
                enum:
                  - debit
                  - credit
              ext_id:
                type: string
              ref_id:
                type: string
        next_cursor:
          type:
            - string
            - 'null'
        request_id:
          $ref: '#/components/schemas/RequestId'
    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

````