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

# Get Partner Transactions

> List transactions for your partner account

Returns a paginated list of transactions associated with your partner account.

<ParamField query="page" type="number">
  Page number (1-based). Default: `1`.
</ParamField>

<ParamField query="limit" type="number">
  Results per page (max 100). Default: `20`.
</ParamField>

<ParamField query="status" type="string">
  Filter by status: `PENDING`, `DONE`, `FAILED`.
</ParamField>

<ParamField query="fromChain" type="number">
  Filter by source chain ID.
</ParamField>

<ParamField query="toChain" type="number">
  Filter by destination chain ID.
</ParamField>

<ParamField query="fromDate" type="string">
  Filter by start date (ISO 8601 format).
</ParamField>

<ParamField query="toDate" type="string">
  Filter by end date (ISO 8601 format).
</ParamField>

<ResponseExample>
  ```json 200 theme={"system"}
  {
    "data": {
      "transactions": [
        {
          "id": "txn_abc123",
          "type": "swap",
          "status": "DONE",
          "fromChain": 1,
          "toChain": 42161,
          "fromToken": { "symbol": "ETH", "address": "0x0000000000000000000000000000000000000000" },
          "toToken": { "symbol": "USDC", "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831" },
          "fromAmount": "1000000000000000000",
          "toAmount": "3237500000",
          "fromAmountUSD": "3250.00",
          "toAmountUSD": "3237.50",
          "fromAddress": "0xSenderAddress",
          "toAddress": "0xReceiverAddress",
          "sourceTxHash": "0xSourceTxHash",
          "destinationTxHash": "0xDestTxHash",
          "tool": "stargate",
          "feeUSD": "4.88",
          "createdAt": "2024-03-25T10:30:00Z",
          "completedAt": "2024-03-25T10:32:00Z"
        }
      ],
      "pagination": {
        "page": 1,
        "limit": 20,
        "total": 4523,
        "totalPages": 227
      }
    },
    "error": null,
    "meta": {
      "requestId": "y5b6c7d8-e9f0-1234-8901-345678901234",
      "timestamp": 1711234583,
      "rateLimit": {
        "limit": 2000,
        "remaining": 1975,
        "reset": 1711234627
      }
    }
  }
  ```
</ResponseExample>

<CodeGroup>
  ```typescript TypeScript theme={"system"}
  const txns = await client.getPartnerTransactions({
    page: 1,
    limit: 20,
    status: "DONE",
    fromChain: 1,
  });

  console.log(`Page 1 of ${txns.data.pagination.totalPages}`);
  for (const tx of txns.data.transactions) {
    console.log(`${tx.id}: ${tx.fromAmountUSD} USD via ${tx.tool} — ${tx.status}`);
  }
  ```

  ```bash cURL theme={"system"}
  curl "https://api.hypermid.io/v1/partner/transactions?page=1&limit=20&status=DONE" \
    -H "X-API-Key: your-api-key"
  ```

  ```go Go theme={"system"}
  req, _ := http.NewRequest("GET",
      "https://api.hypermid.io/v1/partner/transactions?page=1&limit=20&status=DONE", nil)
  req.Header.Set("X-API-Key", "your-api-key")
  resp, _ := http.DefaultClient.Do(req)
  ```
</CodeGroup>


## OpenAPI

````yaml GET /v1/partner/transactions
openapi: 3.0.3
info:
  title: Hypermid Partner API
  version: 1.0.0
  description: >-
    Cross-chain swap aggregator API. Supports 30+ EVM chains, Solana, Bitcoin,
    Sui, and Near Intents chains (NEAR, TON, Tron, XRP, etc.).


    ## Authentication

    Pass your API key via the `X-API-Key` header. Public endpoints work without
    a key (anonymous tier). Partner endpoints (`/v1/partner/*`) require a valid
    key.


    ## Rate Limits

    - **Anonymous**: 30 requests/minute (per IP)

    - **Partner (authenticated)**: 100 requests/minute (per API key)


    These limits are designed for human-driven widget usage and mirror our
    upstream aggregator (LiFi) limits to prevent any single user from exhausting
    shared quota.


    Rate limit info is returned in `meta.rateLimit` on every response.


    ## Response Envelope

    All responses follow the shape:

    ```json

    { "data": <T | null>, "error": <{ code, message, details? } | null>, "meta":
    { "requestId", "timestamp", "rateLimit?" } }

    ```
  contact:
    name: Hypermid
    url: https://hypermid.io
servers:
  - url: https://api.hypermid.io
    description: Production
security:
  - ApiKeyAuth: []
  - {}
tags:
  - name: Swap
    description: Cross-chain swap quoting, routing, status, and reference data
  - name: Execute
    description: Transaction execution and deposit management for Near Intents swaps
  - name: On-Ramp
    description: Fiat-to-crypto on-ramp via RampNow
  - name: Partner
    description: Partner account, analytics, and webhook management (requires X-API-Key)
  - name: Tracking
    description: Swap event tracking for partner attribution
  - name: System
    description: Health check and API metadata
paths:
  /v1/partner/transactions:
    get:
      tags:
        - Partner
      summary: List partner transactions
      description: Returns paginated transaction history for the authenticated partner.
      operationId: getPartnerTransactions
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            minimum: 1
          description: Page number
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
          description: Items per page
      responses:
        '200':
          description: Transaction list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ApiResponse:
      type: object
      properties:
        data:
          description: Response payload (null on error)
        error:
          nullable: true
          type: object
          properties:
            code:
              type: string
              example: INVALID_PARAMS
            message:
              type: string
              example: 'Missing required parameters: fromChain'
            details:
              type: object
              additionalProperties: true
          required:
            - code
            - message
        meta:
          $ref: '#/components/schemas/Meta'
      required:
        - data
        - error
        - meta
    Meta:
      type: object
      properties:
        requestId:
          type: string
          format: uuid
        timestamp:
          type: integer
          description: Unix epoch seconds
        rateLimit:
          type: object
          properties:
            limit:
              type: integer
            remaining:
              type: integer
            reset:
              type: integer
              description: Unix epoch seconds when the window resets
      required:
        - requestId
        - timestamp
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Partner API key. Optional for public endpoints, required for
        /v1/partner/*.

````