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

# Get payment intent detail



## OpenAPI

````yaml get /v1/payment-intents/{paymentIntentId}
openapi: 3.1.0
info:
  title: ReconLayer API
  version: 0.1.0
  summary: API-first reconciliation platform with dashboard-optional integration.
  description: >
    ReconLayer is designed to work headlessly.


    The dashboard is one consumer of this API, not the platform boundary.


    Organization resolution currently uses the `x-organization-id` header for
    development.

    In production, the intended model is:


    - dashboard requests authenticate through Clerk and the backend resolves the
    organization from the session

    - headless clients authenticate with API keys mapped to an organization

    - each API key can carry scopes for read/write/export/admin permissions


    Client write endpoints also use request-level idempotency.

    The client must generate an `Idempotency-Key` before the first attempt and

    reuse the same key on every retry of that same request.


    The route structure mirrors the domain:


    - `payment-intents` for expected payments

    - `reconciliation-cases` for reconciliation truth and workflow

    - `webhooks` for provider callbacks

    - `outbound-webhook-*` for client callback subscriptions and delivery
    tracking
servers:
  - url: https://api.reconlayer.com
security: []
tags:
  - name: dashboard
  - name: health
  - name: imports
  - name: outbound-webhooks
  - name: payment-intents
  - name: reconciliation-cases
  - name: integrations
  - name: settings
  - name: webhooks
paths:
  /v1/payment-intents/{paymentIntentId}:
    get:
      tags:
        - payment-intents
      summary: Get payment intent detail
      parameters:
        - schema:
            type: string
            minLength: 1
          in: path
          name: paymentIntentId
          required: true
        - schema:
            type: string
            minLength: 1
          in: header
          name: authorization
          required: false
        - schema:
            type: string
            minLength: 1
          in: header
          name: x-organization-id
          required: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/def-29'
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/def-98'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/def-98'
components:
  schemas:
    def-29:
      allOf:
        - $ref: '#/components/schemas/def-26'
        - type: object
          required:
            - direction
            - effectiveDate
            - references
            - metadata
            - reconciliationCase
            - auditEvents
          properties:
            direction:
              type: string
            effectiveDate:
              type:
                - string
                - 'null'
              format: date-time
            references:
              anyOf:
                - {}
                - type: 'null'
            metadata:
              anyOf:
                - {}
                - type: 'null'
            reconciliationCase:
              anyOf:
                - allOf:
                    - $ref: '#/components/schemas/def-27'
                - type: 'null'
            auditEvents:
              type: array
              items:
                $ref: '#/components/schemas/def-28'
      title: PaymentIntentDetail
    def-98:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        message:
          type: string
        issues:
          type: array
          items:
            type: object
            additionalProperties: true
        details:
          type: object
          additionalProperties: true
        upstreamStatus:
          type: integer
      additionalProperties: true
      title: ApiErrorResponse
    def-26:
      type: object
      required:
        - id
        - organizationId
        - externalReference
        - source
        - destination
        - paymentType
        - paymentSubtype
        - stablecoin
        - chain
        - beneficiaryAccount
        - beneficiaryName
        - status
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        organizationId:
          type: string
        externalReference:
          type:
            - 'null'
            - string
        source:
          $ref: '#/components/schemas/def-6'
        destination:
          $ref: '#/components/schemas/def-6'
        paymentType:
          type: string
        paymentSubtype:
          type:
            - 'null'
            - string
        stablecoin:
          type:
            - 'null'
            - string
        chain:
          type:
            - 'null'
            - string
        beneficiaryAccount:
          type:
            - 'null'
            - string
        beneficiaryName:
          type:
            - 'null'
            - string
        status:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      title: PaymentIntentSnapshot
    def-27:
      type: object
      required:
        - id
        - organizationId
        - paymentIntentId
        - status
        - reconciliationStatus
        - expectedAmount
        - actualAmount
        - exceptionType
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        organizationId:
          type: string
        paymentIntentId:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/def-24'
        reconciliationStatus:
          $ref: '#/components/schemas/def-25'
        expectedAmount:
          type:
            - string
            - 'null'
        actualAmount:
          type:
            - string
            - 'null'
        exceptionType:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      title: ReconciliationCaseSnapshot
    def-28:
      type: object
      required:
        - id
        - organizationId
        - paymentIntentId
        - caseId
        - rawRecordId
        - importBatchId
        - eventType
        - actor
        - payload
        - message
        - occurredAt
      properties:
        id:
          type: string
        organizationId:
          type: string
        paymentIntentId:
          type:
            - 'null'
            - string
        caseId:
          type:
            - 'null'
            - string
        rawRecordId:
          type:
            - 'null'
            - string
        importBatchId:
          type:
            - 'null'
            - string
        eventType:
          type: string
        actor:
          type: string
        payload:
          anyOf:
            - {}
            - type: 'null'
        message:
          type:
            - 'null'
            - string
        occurredAt:
          type: string
          format: date-time
      title: ReconciliationAuditEvent
    def-6:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: string
        currency:
          type: string
      title: ApiMoney
    def-24:
      type: string
      enum:
        - open
        - resolved
        - archived
      title: CaseStatus
    def-25:
      type: string
      enum:
        - unreconciled
        - tentatively_reconciled
        - reconciled
      title: ReconciliationStatus

````