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

# Get card transactions

> Get transaction history for a card



## OpenAPI

````yaml /partner-openapi.json get /partner/cards/{id}/transactions
openapi: 3.1.0
info:
  title: Contro Partner API
  version: 1.0.0
  license:
    name: Proprietary
    url: https://contro.me/terms
  description: >-
    The Contro Partner API enables Card-as-a-Service (CaaS) partners to
    programmatically issue cards, manage cardholders, and monitor transactions.


    ## Authentication


    All requests require your partner API key in the `x-contro-api-key` header:


    ```

    x-contro-api-key: sk_live_...

    ```


    Use `sk_test_*` keys for sandbox and `sk_live_*` keys for production.


    ## Rate Limits


    The API allows 1,000 requests per minute per API key. When exceeded,
    responses return HTTP 429 with a `Retry-After` header.


    ## Pagination


    List endpoints use page-based pagination:


    ```json

    {
      "data": [...],
      "page": 1,
      "limit": 20,
      "total": 137
    }

    ```


    Pass `?page=2&limit=20` to paginate. `limit` accepts 1–100 (default 20);
    `page` defaults to 1.


    ## Errors


    All errors return:


    ```json

    {
      "success": false,
      "error": "Human-readable message"
    }

    ```
servers:
  - url: https://api.contro.me/v1
    description: Production server for live traffic
  - url: https://stg-api.contro.dev/v1
    description: Sandbox environment for testing
security:
  - apiKey: []
paths:
  /partner/cards/{id}/transactions:
    get:
      tags:
        - Partner - Cards
      summary: Get card transactions
      description: Get transaction history for a card
      operationId: getCardTransactions
      parameters:
        - schema:
            type: string
            description: Card ID
            example: card_def456
          required: true
          description: Card ID
          name: id
          in: path
        - schema:
            type: integer
            minimum: 1
            default: 1
            description: Page number
          required: false
          description: Page number
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
            description: Number of items per page (1-100)
          required: false
          description: Number of items per page (1-100)
          name: limit
          in: query
        - schema:
            type: string
            format: date-time
            description: ISO 8601 start timestamp (inclusive)
          required: false
          description: ISO 8601 start timestamp (inclusive)
          name: from
          in: query
        - schema:
            type: string
            format: date-time
            description: ISO 8601 end timestamp (inclusive)
          required: false
          description: ISO 8601 end timestamp (inclusive)
          name: to
          in: query
        - schema:
            type: string
            description: Filter by transaction status
            example: accepted
          required: false
          description: Filter by transaction status
          name: status
          in: query
        - schema:
            type: string
            description: Filter by transaction type
            example: purchase
          required: false
          description: Filter by transaction type
          name: type
          in: query
      responses:
        '200':
          description: Card transactions
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Transaction ID
                          example: tx_abc123
                        type:
                          type: string
                          description: >-
                            Transaction type. One of: purchase, refund,
                            withdrawal, fee
                          example: purchase
                        maskedCardNo:
                          type:
                            - string
                            - 'null'
                          description: Last 4 digits of the card number used
                          example: '0000'
                        direction:
                          type:
                            - string
                            - 'null'
                          description: 'Transaction direction. C: credit, D: debit'
                          example: D
                        amount:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Transaction amount in base units. Divide by
                            10^currencyPrecision for the decimal value — do not
                            assume cents.
                          example: 4250000000
                        currency:
                          type:
                            - string
                            - 'null'
                          description: ISO 4217 currency code
                          example: SGD
                        currencyPrecision:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Decimal places `amount` is scaled by. Derived from
                            the writer, not from `currency` — read it rather
                            than assuming a fixed scale.
                          example: 8
                        billingAmount:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Billing amount in base units. Divide by
                            10^billingCurrencyPrecision for the decimal value.
                          example: 42500000
                        billingCurrencyCode:
                          type:
                            - string
                            - 'null'
                          description: Billing currency code
                          example: USDC
                        billingCurrencyPrecision:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Decimal places `billingAmount` is scaled by (USDC →
                            6).
                          example: 6
                        billingTimestamp:
                          type:
                            - string
                            - 'null'
                          description: ISO 8601 billing/clearing timestamp
                          example: '2026-03-20T14:30:00Z'
                        status:
                          type: string
                          description: >-
                            Transaction status. One of: pending, completed,
                            declined, reversed
                          example: completed
                        merchant:
                          type:
                            - string
                            - 'null'
                          description: Merchant name
                          example: Coffee Shop
                        timestamp:
                          type: string
                          description: ISO 8601 transaction timestamp
                          example: '2026-03-20T14:30:00Z'
                      required:
                        - id
                        - type
                        - maskedCardNo
                        - direction
                        - amount
                        - currency
                        - currencyPrecision
                        - billingAmount
                        - billingCurrencyCode
                        - billingCurrencyPrecision
                        - billingTimestamp
                        - status
                        - merchant
                        - timestamp
                  total:
                    type: number
                  page:
                    type: number
                  limit:
                    type: number
                required:
                  - data
                  - total
                  - page
                  - limit
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
        '429':
          description: Rate Limited
        '500':
          description: Internal Server Error
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-contro-api-key
      description: Partner API key (sk_live_* for production, sk_test_* for sandbox)

````