# Get All Transaction Details

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v0/partner/enKashCard/transaction/all:
    post:
      summary: Get All Transaction Details
      deprecated: false
      description: >-

        :::highlight purple 📌

        This API retrieves transactions based on filters such as date, amount,
        company, and card account, for a specific card or across all cards.

        :::
      tags:
        - Prepaid Cards/APIs - Prepaid Card/Reloadable Prepaid Cards
      parameters:
        - name: partnerId
          in: header
          description: ''
          required: true
          example: CRMXWB3ZM
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer M3_0-aF0Tuvl1t9vSWnPf9ReqVw
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Cookie
          in: header
          description: ''
          required: true
          example: JSESSIONID=B01764303CD3DEFC3C0699B3EF351505
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                companyId:
                  type: string
                  description: Company Id provided after onboarding
                cardHolderName:
                  type: string
                  description: Card Holder name
                userId:
                  type: string
                  description: Enkash user Id
                cardAccountId:
                  type: string
                  description: Unique Card Account Id
                enKashCardId:
                  type: string
                  description: Specific Enkash Card Id
                status:
                  type: string
                  description: Transaction Status - SUCCESS, FAILED
                enKashTransactionIds:
                  type: array
                  items:
                    type: string
                  description: Array of Enkash Card Transaction IDs
                enKashTransactionId:
                  type: string
                  description: Single Enkash CardTxn Id
                cardTransactionType:
                  type: string
                  description: CR (Credit) , DR (Debit)
                amountFrom:
                  type: integer
                amountTo:
                  type: integer
                pgReferenceNumbers:
                  type: array
                  items:
                    type: string
                  description: Array of unique Transaction Reference Numbers
                pgReferenceNumber:
                  type: string
                  description: Single Unique Txn Reference Number
                txnDateFrom:
                  type: string
                txnDateTo:
                  type: string
                transactionTypes:
                  type: array
                  items:
                    type: string
                  description: |
                    List of Transaction Types such as:
                    SALE, 
                    REPAYMENT, 
                    RECOVERY, 
                    LOAD_MONEY, 
                    REFUND, 
                    REVERSAL, 
                    CREDIT, 
                    FEE, 
                    ALLOCATE_FUND, 
                    UNALLOCATE_FUND, 
                    CASHBACK, 
                    FUNDPOST_DEBIT, 
                    PAYOUT, 
                    DISCOUNT, 
                    OPEN_VOUCHER, 
                    ALLOCATE_POINT, 
                    UNALLOCATE_POINT, 
                    VA_UNALLOCATE_FUND, 
                    VA_ALLOCATE_FUND, 
                    EXCESS_LOAD, 
                    EXCESS_UNLOAD, 
                    ALLOCATE_COIN;
                transactionTypesNotIn:
                  type: array
                  items:
                    type: string
                balanceFrom:
                  type: integer
                  description: Card balance
                balanceTo:
                  type: integer
                limit:
                  type: integer
                offset:
                  type: integer
                mobile:
                  type: string
                  description: Mobile number of card holder
              required:
                - companyId
                - cardHolderName
                - userId
                - cardAccountId
                - enKashCardId
              x-apidog-orders:
                - companyId
                - cardHolderName
                - userId
                - cardAccountId
                - enKashCardId
                - status
                - enKashTransactionIds
                - enKashTransactionId
                - cardTransactionType
                - amountFrom
                - amountTo
                - pgReferenceNumbers
                - pgReferenceNumber
                - txnDateFrom
                - txnDateTo
                - transactionTypes
                - transactionTypesNotIn
                - balanceFrom
                - balanceTo
                - limit
                - offset
                - mobile
            example:
              companyId: string
              companyName: string
              cardHolderName: string
              userId: string
              cardAccountId: string
              enKashCardId: string
              status: CREATED
              enKashTransactionIds:
                - string
              enKashTransactionId: string
              cardTransactionType: DR
              amountFrom: 0
              amountTo: 0
              pgReferenceNumbers:
                - string
              pgReferenceNumber: string
              txnDateFrom: '2025-01-24T08:47:01.505Z'
              txnDateTo: '2025-01-24T08:47:01.505Z'
              transactionTypes:
                - SALE
              transactionTypesNotIn:
                - SALE
              balanceFrom: 1000000000
              balanceTo: 1000000000
              limit: 0
              offset: 0
              transactionCode:
                - PRINCIPLE
              mobile: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Prepaid Cards/APIs - Prepaid Card/Reloadable Prepaid Cards
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-26006300-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
