> ## Documentation Index
> Fetch the complete documentation index at: https://rain-sandbox-trial.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a payment account

> Returns a single payment account by ID.



## OpenAPI

````yaml /openapi.json get /payment-accounts/{paymentAccountId}
openapi: 3.0.3
info:
  title: Issuing API
  description: This is the specification for Rain's Issuing API.
  termsOfService: https://www.rain.xyz/legal/authorized-user-terms
  contact:
    email: support@rain.xyz
  version: 1.3.0
servers:
  - url: https://api-dev.rain.xyz/v1
    description: Sandbox server
  - url: https://api.rain.xyz/v1
    description: Production server
security: []
tags:
  - name: paymentRoutes
    description: >-
      **Endpoint Migration:** The `/v1/automations` endpoints have been renamed
      to `/v1/payment-routes`. The old `/v1/automations` paths remain available
      as deprecated aliases during migration. Update your integrations to use
      `/v1/payment-routes` as the deprecated endpoints will be removed in a
      future release.
  - name: simulate
    description: >-
      Transaction simulation endpoints for testing integration flows in
      non-production environments. These endpoints let you trigger transaction
      events programmatically to automate integration tests and verify webhook
      handling without depending on external systems or staging real deposits.
      **Sandbox only** — all simulation endpoints return `404 Not Found` in
      production.
  - name: raindrops
    description: >-
      Rewards and points management endpoints. Custom API keys need
      `raindrops:read`/`raindrops:write` for general rewards endpoints and
      `raindrops-travel:read`/`raindrops-travel:write` for travel redemption
      endpoints.
    x-group: rewards
paths:
  /payment-accounts/{paymentAccountId}:
    get:
      tags:
        - paymentAccounts
      summary: Get a payment account
      description: Returns a single payment account by ID.
      operationId: getPaymentAccount
      parameters:
        - name: paymentAccountId
          in: path
          description: ID of the payment account to retrieve
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentAccount'
        '401':
          description: Invalid authorization
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                statusCode: 401
                error: Unauthorized
                message: Invalid or missing API key
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                statusCode: 403
                error: ForbiddenError
                message: Forbidden
        '404':
          description: Payment account not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                statusCode: 404
                error: NotFoundError
                message: Payment account not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                statusCode: 500
                error: InternalServerError
                message: Internal server error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaymentAccount:
      $ref: '#/components/schemas/PaymentAccountExternalFiatAccount'
    ErrorResponse:
      type: object
      required:
        - statusCode
        - error
      properties:
        statusCode:
          type: number
          description: Status code indicating the request failed
        error:
          type: string
          description: >-
            Error type name, e.g. 'NotFoundError', 'BadRequestError',
            'InternalServerError'
        message:
          type: string
          description: Human-readable error message describing what went wrong
    PaymentAccountExternalFiatAccount:
      type: object
      required:
        - id
        - type
        - nickname
        - externalFiatAccount
        - createdAt
      properties:
        id:
          type: string
          format: uuid
          description: The unique identifier of the payment account
          readOnly: true
        userId:
          type: string
          format: uuid
          description: User ID (present for individual teams; omit for company teams)
        companyId:
          type: string
          format: uuid
          description: Company ID (present for company teams; omit for individual teams)
        type:
          type: string
          enum:
            - externalFiatAccount
        nickname:
          type: string
          maxLength: 64
          description: A friendly name for this payment account
        externalFiatAccount:
          type: object
          required:
            - currency
            - rail
            - thirdParty
            - beneficiaryFirstName
            - beneficiaryLastName
            - beneficiaryBusinessName
            - beneficiaryType
            - beneficiaryAddress
            - bankName
            - bankAddress
            - accountNumber
            - routingNumber
            - bankAccountType
          properties:
            currency:
              $ref: '#/components/schemas/AutomationFiatCurrency'
            rail:
              $ref: '#/components/schemas/AutomationFiatRail'
              description: The supported rail for this account
            thirdParty:
              type: boolean
              description: Whether this is a third-party account
            beneficiaryFirstName:
              type: string
              maxLength: 255
              description: FirstName of the account beneficiary
            beneficiaryLastName:
              type: string
              maxLength: 255
              description: LastName of the account beneficiary
            beneficiaryBusinessName:
              type: string
              maxLength: 255
              description: Business Name of the account beneficiary
            beneficiaryType:
              type: string
              enum:
                - individual
                - business
              description: Type of beneficiary
            beneficiaryAddress:
              $ref: '#/components/schemas/PaymentAccountPhysicalAddress'
            bankName:
              type: string
              maxLength: 255
              description: Name of the bank
            bankAddress:
              $ref: '#/components/schemas/PaymentAccountPhysicalAddress'
            accountNumber:
              type: string
              minLength: 4
              maxLength: 17
              pattern: ^\d{4,17}$
              description: Bank account number
            routingNumber:
              type: string
              minLength: 9
              maxLength: 9
              pattern: ^\d{9}$
              description: Bank routing number
            bankAccountType:
              type: string
              enum:
                - checking
                - savings
              description: The type of bank account
        createdAt:
          type: string
          format: date-time
          description: When the payment account was created
          readOnly: true
    AutomationFiatCurrency:
      type: string
      enum:
        - usd
      description: Supported fiat currencies
    AutomationFiatRail:
      type: string
      enum:
        - ach
        - wire
      description: Supported fiat payment rails
    PaymentAccountPhysicalAddress:
      type: object
      required:
        - addressLine1
        - city
        - region
        - postalCode
        - countryCode
      properties:
        addressLine1:
          type: string
          maxLength: 255
          description: First line of the address
        addressLine2:
          type: string
          maxLength: 255
          description: Second line of the address
        city:
          type: string
          maxLength: 100
          description: City
        region:
          type: string
          maxLength: 100
          description: State or region
        postalCode:
          type: string
          maxLength: 20
          description: Postal or ZIP code
        countryCode:
          type: string
          maxLength: 2
          description: Two-letter country code
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Api-Key
      in: header

````