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

# Get a card transaction

> One card transaction.



## OpenAPI

````yaml api-reference/endl-cards-api.json GET /api/v0/cards/{customerId}/transactions/{transactionId}
openapi: 3.1.0
info:
  title: Endl Cards API
  version: '0'
  description: >-
    Issue virtual cards to your customers: enrol the customer, fund the card
    balance, issue cards, show card details securely, and follow every
    transaction by webhook.


    Paths are under `/api/v0`. The key must carry the **`cards`** permission.
    **This API is not final yet** — see [what may still
    change](/api-reference/cards/introduction#not-final-yet).
servers:
  - url: https://api-sandbox.endl.io
    description: Sandbox
security:
  - apiKey: []
tags:
  - name: Enrolment
  - name: Cardholders
  - name: Cards
  - name: Card details
  - name: Transactions and balance
  - name: Deposits
  - name: Withdrawals
paths:
  /api/v0/cards/{customerId}/transactions/{transactionId}:
    get:
      tags:
        - Transactions and balance
      summary: Get a card transaction
      description: One card transaction.
      parameters:
        - $ref: '#/components/parameters/ApiVersion'
        - $ref: '#/components/parameters/CustomerId'
        - $ref: '#/components/parameters/TransactionId'
      responses:
        '200':
          description: The card transaction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CardTransaction'
              example:
                transactionId: ctx_9pL3...
                cardId: crd_4fT9...
                cardholderId: cus_8Qw2...
                businessId: cus_1Xb7...
                type: purchase
                status: completed
                amount:
                  amount: '42.99'
                  currency: USD
                authorizedAmount:
                  amount: '42.99'
                  currency: USD
                originalAmount:
                  amount: '39.50'
                  currency: EUR
                merchant:
                  name: ACME STORE
                  city: Berlin
                  country: DE
                  mcc: '5411'
                  category: Grocery
                declineReason: null
                relatedTransactionId: null
                fees:
                  - type: transaction_fee
                    amount:
                      amount: '0.43'
                      currency: USD
                authorizedAt: '2026-10-14T10:01:22Z'
                settledAt: '2026-10-15T02:10:00Z'
                updatedAt: '2026-10-15T02:10:00Z'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The API key lacks the `cards` permission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Customer or transaction not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    ApiVersion:
      name: Api-Version
      in: header
      required: true
      description: >-
        The API version this request targets. `2026-09.1`. See
        [Versioning](/api-reference/versioning).
      schema:
        type: string
        pattern: ^\d{4}-\d{2}\.\d+$
        default: 2026-09.1
      example: 2026-09.1
    CustomerId:
      name: customerId
      in: path
      required: true
      description: An individual, a business or an employee (`cus_`).
      schema:
        type: string
        example: cus_1Xb7...
    TransactionId:
      name: transactionId
      in: path
      required: true
      description: The card transaction (`ctx_`).
      schema:
        type: string
        example: ctx_9pL3...
  schemas:
    CardTransaction:
      type: object
      properties:
        transactionId:
          type: string
          example: ctx_9pL3...
        cardId:
          type: string
        cardholderId:
          type: string
        businessId:
          type:
            - string
            - 'null'
        type:
          type: string
          enum:
            - purchase
            - refund
          description: >-
            A refund is its own transaction with a positive amount;
            `relatedTransactionId` points to the purchase when known.
        status:
          type: string
          enum:
            - pending
            - completed
            - reversed
            - declined
          description: >-
            `pending` (authorised), `completed` (settled), `reversed`,
            `declined`.
        amount:
          allOf:
            - $ref: '#/components/schemas/Money'
          description: The current amount, in the card's currency.
        authorizedAmount:
          allOf:
            - $ref: '#/components/schemas/Money'
          description: The amount when it was authorised.
        originalAmount:
          allOf:
            - $ref: '#/components/schemas/Money'
          description: The amount in the merchant's currency.
        merchant:
          type: object
          properties:
            name:
              type: string
            city:
              type: string
            country:
              type: string
            mcc:
              type: string
            category:
              type: string
        declineReason:
          type:
            - object
            - 'null'
          description: >-
            `{ code, message }`. Codes: `insufficient_funds`, `limit_exceeded`,
            `card_frozen`, `card_canceled`, `card_inactive`,
            `merchant_not_allowed`, `fraud_suspected`, `other`.
          properties:
            code:
              type: string
              enum:
                - insufficient_funds
                - limit_exceeded
                - card_frozen
                - card_canceled
                - card_inactive
                - merchant_not_allowed
                - fraud_suspected
                - other
            message:
              type: string
        relatedTransactionId:
          type:
            - string
            - 'null'
        fees:
          type: array
          items:
            $ref: '#/components/schemas/Fee'
          description: Endl fees on this transaction.
        authorizedAt:
          type: string
          format: date-time
        settledAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
          description: If you receive two copies, keep the one with the newest value.
    Error:
      type: object
      description: >-
        The standard Endl error body. `errors[].code` is an `ERRCRD_` code —
        **the code numbers are not final yet** — and `field` names the request
        field when one is at fault.
      properties:
        code:
          type: integer
        message:
          type: string
        status:
          type: string
          enum:
            - ERROR
        data:
          type: 'null'
        errors:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              message:
                type: string
              field:
                type:
                  - string
                  - 'null'
    Money:
      type: object
      required:
        - amount
        - currency
      description: A decimal string and a currency code.
      properties:
        amount:
          type: string
          description: Decimal string, e.g. `"42.99"`.
          example: '42.99'
        currency:
          type: string
          description: Currency code, e.g. `USD`.
          example: USD
    Fee:
      type: object
      description: >-
        An Endl fee. The `fees` shape is final; the fee **amounts** are not
        final yet.
      properties:
        type:
          type: string
          example: transaction_fee
        amount:
          $ref: '#/components/schemas/Money'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Api-Key
      description: Partner API key. Must carry the `cards` permission.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.