# Get 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 Transaction Details
      deprecated: false
      description: >-

        :::highlight purple 📌

        This API retrieves the details of a specific transaction using the PG
        reference number (provided as `uniqueReferenceNumber` during fund
        allocation)

        :::
      tags:
        - Prepaid Cards/APIs - Prepaid Card/Non Reloadable Gift 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
                cardAccountId:
                  type: string
                  description: Unique Card Account Id
                enKashCardId:
                  type: string
                  description: Specific Enkash Card Id
                pgReferenceNumber:
                  type: string
                  description: Single Unique Txn Reference Number
              required:
                - companyId
                - cardAccountId
                - enKashCardId
                - pgReferenceNumber
              x-apidog-orders:
                - companyId
                - cardAccountId
                - enKashCardId
                - pgReferenceNumber
            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:
                  code:
                    type: integer
                  message:
                    type: string
                  payload:
                    type: object
                    properties:
                      recordsCount:
                        type: integer
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            enKashCardTransactionId:
                              type: string
                            maskedCard:
                              type: string
                            cardHolderName:
                              type: string
                            companyName:
                              type: string
                            companyId:
                              type: string
                            cardAccountId:
                              type: string
                            principalAmount:
                              type: integer
                            balance:
                              type: integer
                            pgReferenceNumber:
                              type: string
                            description:
                              type: string
                            currency:
                              type: string
                            cardTransactionType:
                              type: string
                            createdBy:
                              type: string
                            status:
                              type: string
                            type:
                              type: string
                            createdOn:
                              type: string
                            txnDate:
                              type: string
                            modifiedOn:
                              type: string
                            txnDetails:
                              type: object
                              properties: {}
                              x-apidog-orders: []
                            enkashCardId:
                              type: string
                            userId:
                              type: string
                            email:
                              type: string
                            enkashCardRemarks:
                              type: string
                            platformTxn:
                              type: boolean
                            remarks:
                              type: string
                            approvalStatus:
                              type: object
                              properties:
                                name:
                                  type: string
                                label:
                                  type: string
                              required:
                                - name
                                - label
                              x-apidog-orders:
                                - name
                                - label
                          x-apidog-orders:
                            - enKashCardTransactionId
                            - maskedCard
                            - cardHolderName
                            - companyName
                            - companyId
                            - cardAccountId
                            - principalAmount
                            - balance
                            - pgReferenceNumber
                            - description
                            - currency
                            - cardTransactionType
                            - createdBy
                            - status
                            - type
                            - createdOn
                            - txnDate
                            - modifiedOn
                            - txnDetails
                            - enkashCardId
                            - userId
                            - email
                            - enkashCardRemarks
                            - platformTxn
                            - remarks
                            - approvalStatus
                    required:
                      - recordsCount
                      - data
                    x-apidog-orders:
                      - recordsCount
                      - data
                required:
                  - code
                  - message
                  - payload
                x-apidog-orders:
                  - code
                  - message
                  - payload
              example:
                code: 0
                message: Success
                payload:
                  recordsCount: 30
                  data:
                    - enKashCardTransactionId: ECT4A28Y1MVC3
                      maskedCard: XXXX XXXX XXXX 8878
                      cardHolderName: Nay Doe
                      companyName: Anay Meal
                      companyId: CEKEP5GSGP
                      cardAccountId: CAW4SFC
                      principalAmount: 100
                      balance: 100
                      pgReferenceNumber: ref_anay
                      description: Funds allocated from Parent Account to Card by Admin
                      currency: INR
                      cardTransactionType: CR
                      createdBy: anay.nagar+cp@enkash.com
                      status: SUCCESS
                      type: ALLOCATE_FUND
                      createdOn: Jan 23, 2025 5:20:31 PM
                      txnDate: Jan 23, 2025 5:20:29 PM
                      modifiedOn: Jan 23, 2025 5:20:31 PM
                      txnDetails: {}
                      enkashCardId: EKC1S511BV
                      userId: EKSPB35L
                      email: anay.test12345@enkash.com
                      enkashCardRemarks: string
                      platformTxn: false
                      remarks: string
                      approvalStatus:
                        name: PENDING
                        label: Pending
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: Prepaid Cards/APIs - Prepaid Card/Non Reloadable Gift Cards
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/616243/apis/api-26006299-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://ekpayout-uat.enkash.in
    description: Testing Env
security: []

```
