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

# Get a payment

> Fetches a single payment by ID.



## OpenAPI

````yaml /api-reference/v2/specs/2026-04-01.json get /payments/{id}
openapi: 3.1.0
info:
  title: Alguna Public API
  version: '2026-04-01'
servers:
  - url: https://api.alguna.io
security:
  - bearerAuth: []
tags:
  - name: Billing Events and Metrics
  - name: Credit Notes
  - name: Credits
  - name: Customer Portal Sessions
  - name: Customers
  - name: Insights
  - name: Invoices
  - name: Payments
  - name: Plans
  - name: Product Bundles
  - name: Products
  - name: Refunds
  - name: Revenue Schedules
  - name: Subscription Changes
  - name: Subscription Versions
  - name: Subscriptions
  - name: Wallet Grants
  - name: Wallets
paths:
  /payments/{id}:
    get:
      tags:
        - Payments
      summary: Get a payment
      description: Fetches a single payment by ID.
      operationId: get-payment
      parameters:
        - in: header
          name: Alguna-Version
          required: true
          schema:
            enum:
              - '2026-04-01'
            type: string
        - in: path
          name: id
          required: true
          schema:
            description: Unique identifier for the payment
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    PaymentResponse:
      properties:
        amount:
          description: Payment amount
          example: '500.00'
          type: string
        amount_received:
          description: Amount received
          example: '500.00'
          nullable: true
          type: string
        amount_refunded:
          description: Amount refunded
          example: '0.00'
          nullable: true
          type: string
        created_at:
          description: Timestamp when the payment was created
          example: '2026-04-01T10:00:00Z'
          format: date-time
          type: string
        currency:
          description: ISO 4217 currency code
          example: USD
          type: string
        customer_id:
          description: Customer ID
          example: cust_01H1VECT
          type: string
        external_id:
          description: Payment processor external ID
          example: pi_3Nf8jD2eZvKYlo2C1FqKpBa3
          nullable: true
          type: string
        external_url:
          description: URL to view the payment in the processor's dashboard
          example: https://dashboard.stripe.com/payments/pi_3Nf8jD2eZvKYlo2C1FqKpBa3
          nullable: true
          type: string
        failed_at:
          description: Timestamp when the payment failed
          example: '2026-04-01T10:00:00Z'
          format: date-time
          nullable: true
          type: string
        id:
          description: Unique identifier for the payment
          example: pay_01H1VECT
          type: string
        invoice_id:
          description: Associated invoice ID
          example: inv_01H1VECT
          nullable: true
          type: string
        paid_at:
          description: Timestamp when the payment was completed
          example: '2026-04-01T10:00:00Z'
          format: date-time
          nullable: true
          type: string
        status:
          description: Payment status
          example: succeeded
          type: string
        updated_at:
          description: Timestamp when the payment was last updated
          example: '2026-04-01T10:00:00Z'
          format: date-time
          type: string
      required:
        - amount
        - created_at
        - currency
        - customer_id
        - id
        - status
        - updated_at
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        status:
          format: int64
          type: integer
      required:
        - status
        - detail
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````