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

# Retrieve one transaction

> Retrieves one transaction by its identifier: everything submitted on ingest, the parties and their sanctions and monitoring state, the resolved status and risk score, and the case if the transaction was flagged. Which rules matched is a separate read — see `rules/`.



## OpenAPI

````yaml /openapi/transaction-monitoring.json get /api/v1/transactions/{transaction_id}/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/transactions/{transaction_id}/:
    get:
      tags:
        - Transactions
      summary: Retrieve one transaction
      description: >-
        Retrieves one transaction by its identifier: everything submitted on
        ingest, the parties and their sanctions and monitoring state, the
        resolved status and risk score, and the case if the transaction was
        flagged. Which rules matched is a separate read — see `rules/`.
      operationId: transactions_retrieve
      parameters:
        - in: path
          name: transaction_id
          schema:
            type: string
            format: uuid
            description: Primary key
          required: true
          description: Identifies the transaction.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TransactionResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        partnerId:
          type: integer
          readOnly: true
        type:
          type: string
          readOnly: true
        externalId:
          type: string
          readOnly: true
          nullable: true
          description: Client's own identifier for the transaction, not unique
        transactionAt:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: >-
            When the transaction happened on the partner side; receipt time when
            the partner did not send one
        direction:
          readOnly: true
          nullable: true
          description: >-
            Which way the money moved for the subject: OUTBOUND puts the subject
            on the sender side, INBOUND on the receiver side. Null for custom
            events


            * `OUTBOUND` - Outbound

            * `INBOUND` - Inbound
          oneOf:
            - $ref: '#/components/schemas/DirectionEnum'
            - $ref: '#/components/schemas/NullEnum'
        eventType:
          type: string
          nullable: true
          readOnly: true
          description: 'Custom events: what happened; null otherwise'
        amount:
          type: string
          format: decimal
          pattern: ^-?\d{0,12}(?:\.\d{0,8})?$
          readOnly: true
          nullable: true
        currency:
          type: string
          readOnly: true
          nullable: true
          description: ISO 4217 currency code, uppercased at ingest
        reportingAmount:
          type: string
          format: decimal
          pattern: ^-?\d{0,12}(?:\.\d{0,8})?$
          readOnly: true
          nullable: true
          description: >-
            `amount` converted into `reporting_currency` — the figure monetary
            rules were compared against. Null whenever the row could not be
            priced; never a zero
        reportingCurrency:
          type: string
          readOnly: true
          nullable: true
          description: >-
            The partner's reporting currency as it was at ingest, which `amount`
            is denominated in. Stored per row so a later config change cannot
            re-denominate history
        fxRate:
          type: string
          format: decimal
          pattern: ^-?\d{0,15}(?:\.\d{0,15})?$
          readOnly: true
          nullable: true
          description: The rate actually used, such that `amount = raw_amount * fx_rate`
        fxRateAsOf:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: Publication timestamp of the rate used, not the time of conversion
        fxRateSource:
          type: string
          readOnly: true
          nullable: true
          description: >-
            Rate provenance, naming both legs when composed through a pivot,
            e.g. 'ECB:EUR/USD*CG:USD/BTC'
        normalisationStatus:
          allOf:
            - $ref: '#/components/schemas/NormalisationStatusEnum'
          readOnly: true
          description: |-
            Why the reporting-currency columns are what they are

            * `NOT_ATTEMPTED` - Not attempted
            * `NOT_APPLICABLE` - Not applicable
            * `SAME_CURRENCY` - Same currency
            * `NORMALISED` - Normalised
            * `UNAVAILABLE` - Unavailable
            * `UNSUPPORTED_CURRENCY` - Unsupported currency
        isUnpriced:
          type: boolean
          readOnly: true
          description: >-
            True when the transaction carries an amount no rate could convert,
            so monetary rules were skipped
        subject:
          allOf:
            - $ref: '#/components/schemas/TransactionSubject'
          readOnly: true
          description: Your customer, whichever way the money moved
        counterparty:
          allOf:
            - $ref: '#/components/schemas/TransactionParty'
          nullable: true
          readOnly: true
          description: The other side; null for a custom event
        description:
          type: string
          nullable: true
          readOnly: true
          description: Free-text description; null for a custom event
        reference:
          type: string
          readOnly: true
          nullable: true
          description: Client-supplied reference string
        paymentScheme:
          readOnly: true
          nullable: true
          description: |-
            Settlement rail the bank payment used, e.g. SEPA Instant or SWIFT

            * `SEPA_INSTANT` - SEPA Instant
            * `SEPA_CREDIT` - SEPA Credit Transfer
            * `SWIFT` - SWIFT
            * `FEDWIRE` - FedWire
            * `OTHER` - Other
          oneOf:
            - $ref: '#/components/schemas/PaymentSchemeEnum'
            - $ref: '#/components/schemas/NullEnum'
        threeDsStatus:
          readOnly: true
          nullable: true
          description: |-
            3-D Secure outcome

            * `AUTHENTICATED` - Authenticated
            * `FAILED` - Failed
            * `NOT_ENROLLED` - Not enrolled
            * `ATTEMPTED` - Attempted
            * `UNKNOWN` - Unknown
          oneOf:
            - $ref: '#/components/schemas/ThreeDsStatusEnum'
            - $ref: '#/components/schemas/NullEnum'
        crypto:
          allOf:
            - $ref: '#/components/schemas/TransactionCrypto'
          nullable: true
          readOnly: true
        device:
          allOf:
            - $ref: '#/components/schemas/TransactionDevice'
          nullable: true
          readOnly: true
        customFields:
          readOnly: true
          description: Partner-defined custom field values from the ingest
        isTest:
          type: boolean
          readOnly: true
          description: >-
            True when this record is test data rather than live monitoring data;
            derived from the record it originates from, never set by hand
        status:
          allOf:
            - $ref: '#/components/schemas/StatusEa9Enum'
          readOnly: true
          description: >-
            Risk-evaluation state, set once rule evaluation for the transaction
            completes


            * `PROCESSING` - Processing

            * `PASSED` - Passed

            * `FLAGGED` - Flagged

            * `ALLOWED` - Allowed

            * `BLOCKED` - Blocked

            * `REJECTED` - Rejected

            * `FAILED` - Failed
        riskScore:
          type: integer
          readOnly: true
          nullable: true
          description: >-
            Highest risk score across this transaction's alerts; 0 when nothing
            matched, null until evaluated
        rejections:
          type: array
          items:
            $ref: '#/components/schemas/TransactionRejection'
          readOnly: true
          description: >-
            Why the transaction was rejected automatically — by a rule or a
            suspended party; empty otherwise
        partySuspended:
          type: boolean
          readOnly: true
          description: >-
            True when the customer or the counterparty is currently suspended
            from transacting
        alertCase:
          allOf:
            - $ref: '#/components/schemas/TransactionAlertCase'
          readOnly: true
          nullable: true
        processedAt:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: When rule evaluation finished for this transaction
        createdAt:
          type: string
          format: date-time
          readOnly: true
        updatedAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - alertCase
        - amount
        - counterparty
        - createdAt
        - crypto
        - currency
        - customFields
        - description
        - device
        - direction
        - eventType
        - externalId
        - fxRate
        - fxRateAsOf
        - fxRateSource
        - id
        - isTest
        - isUnpriced
        - normalisationStatus
        - partnerId
        - partySuspended
        - paymentScheme
        - processedAt
        - reference
        - rejections
        - reportingAmount
        - reportingCurrency
        - riskScore
        - status
        - subject
        - threeDsStatus
        - transactionAt
        - type
        - updatedAt
    DirectionEnum:
      enum:
        - OUTBOUND
        - INBOUND
      type: string
      description: |-
        * `OUTBOUND` - Outbound
        * `INBOUND` - Inbound
    NullEnum:
      enum:
        - null
    NormalisationStatusEnum:
      enum:
        - NOT_ATTEMPTED
        - NOT_APPLICABLE
        - SAME_CURRENCY
        - NORMALISED
        - UNAVAILABLE
        - UNSUPPORTED_CURRENCY
      type: string
      description: |-
        * `NOT_ATTEMPTED` - Not attempted
        * `NOT_APPLICABLE` - Not applicable
        * `SAME_CURRENCY` - Same currency
        * `NORMALISED` - Normalised
        * `UNAVAILABLE` - Unavailable
        * `UNSUPPORTED_CURRENCY` - Unsupported currency
    TransactionSubject:
      type: object
      properties:
        id:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        paymentMethod:
          allOf:
            - $ref: '#/components/schemas/PaymentMethod'
          nullable: true
        mcc:
          type: string
          nullable: true
          description: 'Card payments: the merchant category code'
        aml:
          allOf:
            - $ref: '#/components/schemas/PartyAml'
          description: Screening, monitoring and identification state of this party
        age:
          type: integer
          nullable: true
        riskStatus:
          type: string
          nullable: true
        blacklisted:
          type: boolean
      required:
        - age
        - aml
        - blacklisted
        - country
        - id
        - name
        - riskStatus
        - type
    TransactionParty:
      type: object
      properties:
        id:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        paymentMethod:
          allOf:
            - $ref: '#/components/schemas/PaymentMethod'
          nullable: true
        mcc:
          type: string
          nullable: true
          description: 'Card payments: the merchant category code'
        aml:
          allOf:
            - $ref: '#/components/schemas/PartyAml'
          description: Screening, monitoring and identification state of this party
      required:
        - aml
        - country
        - id
        - name
        - type
    PaymentSchemeEnum:
      enum:
        - SEPA_INSTANT
        - SEPA_CREDIT
        - SWIFT
        - FEDWIRE
        - OTHER
      type: string
      description: |-
        * `SEPA_INSTANT` - SEPA Instant
        * `SEPA_CREDIT` - SEPA Credit Transfer
        * `SWIFT` - SWIFT
        * `FEDWIRE` - FedWire
        * `OTHER` - Other
    ThreeDsStatusEnum:
      enum:
        - AUTHENTICATED
        - FAILED
        - NOT_ENROLLED
        - ATTEMPTED
        - UNKNOWN
      type: string
      description: |-
        * `AUTHENTICATED` - Authenticated
        * `FAILED` - Failed
        * `NOT_ENROLLED` - Not enrolled
        * `ATTEMPTED` - Attempted
        * `UNKNOWN` - Unknown
    TransactionCrypto:
      type: object
      properties:
        asset:
          type: string
          nullable: true
        network:
          type: string
          nullable: true
        txHash:
          type: string
          nullable: true
        txHashUrl:
          type: string
          nullable: true
          description: The transaction on a block explorer, when known
      required:
        - asset
        - network
        - txHash
        - txHashUrl
    TransactionDevice:
      type: object
      properties:
        ipAddress:
          type: string
          nullable: true
        ipCountry:
          type: string
          nullable: true
      required:
        - ipAddress
        - ipCountry
    StatusEa9Enum:
      enum:
        - PROCESSING
        - PASSED
        - FLAGGED
        - ALLOWED
        - BLOCKED
        - REJECTED
        - FAILED
      type: string
      description: |-
        * `PROCESSING` - Processing
        * `PASSED` - Passed
        * `FLAGGED` - Flagged
        * `ALLOWED` - Allowed
        * `BLOCKED` - Blocked
        * `REJECTED` - Rejected
        * `FAILED` - Failed
    TransactionRejection:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        source:
          allOf:
            - $ref: '#/components/schemas/TransactionRejectionSourceEnum'
          readOnly: true
          description: >-
            RULE when a REJECTED rule matched; PROFILE_SUSPENDED when a party on
            it was suspended


            * `RULE` - Rule

            * `PROFILE_SUSPENDED` - Profile suspended
        ruleId:
          type: string
          format: uuid
          description: The rejecting rule, for a RULE rejection
          nullable: true
          readOnly: true
        ruleName:
          type: string
          readOnly: true
          nullable: true
          description: Rule name at match time, so a renamed rule still reads
        severity:
          type: string
          readOnly: true
          nullable: true
          description: >-
            The rejecting rule's severity at match time; null for a suspension
            and for rows recorded before it
        riskScore:
          type: integer
          readOnly: true
          nullable: true
          description: The rejecting rule's risk score; null for a suspension
        suspensionId:
          type: string
          format: uuid
          description: The suspension that caused a PROFILE_SUSPENDED rejection
          nullable: true
          readOnly: true
        reason:
          type: string
          readOnly: true
          description: Human-readable reason for the rejection
        createdAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - createdAt
        - id
        - reason
        - riskScore
        - ruleId
        - ruleName
        - severity
        - source
        - suspensionId
    TransactionAlertCase:
      type: object
      properties:
        caseId:
          type: string
          format: uuid
          readOnly: true
        status:
          allOf:
            - $ref: '#/components/schemas/AlertStatus'
          readOnly: true
          description: >-
            Case lifecycle state; the only authoritative status, mirrored onto
            every member alert


            * `OPEN` - Open

            * `IN_REVIEW` - In Review

            * `CLOSED` - Closed

            * `ESCALATED` - Escalated
        outcome:
          readOnly: true
          nullable: true
          description: >-
            Structured disposition set on close, distinct from the lifecycle
            `status`


            * `OK_FALSE_POSITIVE` - OK / False Positive

            * `PENDING` - Pending / Waiting for Reply

            * `ESCALATED` - Escalated

            * `RISKY_SUSPICIOUS` - Risky / Suspicious Activity

            * `FRAUD` - Fraud
          oneOf:
            - $ref: '#/components/schemas/OutcomeA4cEnum'
            - $ref: '#/components/schemas/NullEnum'
      required:
        - caseId
        - outcome
        - status
    PaymentMethod:
      type: object
      properties:
        account:
          type: string
          nullable: true
          description: 'Bank payments: account or IBAN'
        bic:
          type: string
          nullable: true
          description: 'Bank payments: BIC/SWIFT code'
        walletAddress:
          type: string
          nullable: true
          description: 'Crypto transfers: wallet'
        walletUrl:
          type: string
          nullable: true
          description: 'Crypto transfers: the wallet on a block explorer, when known'
        maskedPan:
          type: string
          nullable: true
          description: Card payments, subject only
        lastFour:
          type: string
          nullable: true
          description: Card payments, subject only
        issuer:
          type: string
          nullable: true
          description: Card payments, subject only
        issuerCountry:
          type: string
          nullable: true
          description: Card payments, subject only
    PartyAml:
      type: object
      properties:
        isSanctioned:
          type: boolean
          description: A sanctions screening found a match
        screeningIsConclusive:
          type: boolean
          description: >-
            The party was really screened, so `is_sanctioned` false means clean
            rather than unknown
        monitoringIsConclusive:
          type: boolean
          description: The party is under a live monitoring subscription
        underMonitoringAlert:
          type: boolean
          description: Ongoing monitoring has raised an alert on the party
        idenfyCheckId:
          type: string
          nullable: true
        monitoringId:
          type: string
          nullable: true
        identificationStatus:
          type: string
          nullable: true
        scanRef:
          type: string
          nullable: true
        identificationId:
          type: string
          format: uuid
          nullable: true
        identificationLastSyncedAt:
          type: string
          format: date-time
          nullable: true
        idenfyCheckUrl:
          type: string
          nullable: true
          description: The screening in the iDenfy dashboard
        monitoringUrl:
          type: string
          nullable: true
          description: The monitoring in the iDenfy dashboard
        identificationUrl:
          type: string
          nullable: true
          description: The identification in the iDenfy dashboard
      required:
        - idenfyCheckId
        - idenfyCheckUrl
        - identificationId
        - identificationLastSyncedAt
        - identificationStatus
        - identificationUrl
        - isSanctioned
        - monitoringId
        - monitoringIsConclusive
        - monitoringUrl
        - scanRef
        - screeningIsConclusive
        - underMonitoringAlert
    TransactionRejectionSourceEnum:
      enum:
        - RULE
        - PROFILE_SUSPENDED
      type: string
      description: |-
        * `RULE` - Rule
        * `PROFILE_SUSPENDED` - Profile suspended
    AlertStatus:
      enum:
        - OPEN
        - IN_REVIEW
        - CLOSED
        - ESCALATED
      type: string
      description: |-
        * `OPEN` - Open
        * `IN_REVIEW` - In Review
        * `CLOSED` - Closed
        * `ESCALATED` - Escalated
    OutcomeA4cEnum:
      enum:
        - OK_FALSE_POSITIVE
        - PENDING
        - ESCALATED
        - RISKY_SUSPICIOUS
        - FRAUD
      type: string
      description: |-
        * `OK_FALSE_POSITIVE` - OK / False Positive
        * `PENDING` - Pending / Waiting for Reply
        * `ESCALATED` - Escalated
        * `RISKY_SUSPICIOUS` - Risky / Suspicious Activity
        * `FRAUD` - Fraud
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Retrieve one submitted transaction](https://documentation.idenfy.com/api-reference/transaction-monitoring/ingest/retrieve-one-submitted-transaction.md)
- [Retrieve one alert](https://documentation.idenfy.com/api-reference/transaction-monitoring/alerts/retrieve-one-alert.md)
- [Retrieve one investigation](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/retrieve-one-investigation.md)
- [Retrieve one rule](https://documentation.idenfy.com/api-reference/transaction-monitoring/rules/retrieve-one-rule.md)
- [Retrieve one SAR](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/retrieve-one-sar.md)


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