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

# Fetch a payment

> Retrieves a payment by its ID.

A **payment** represents a payment made by a clinic client (pet parent). Payments can be made via credit card, cash, check, client credit, or other external payment methods. Each payment records the amount, type, and current status of the transaction. Payments are never deleted.



## OpenAPI

````yaml get /ext/v2/payments/{payment_id}/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/payments/{payment_id}/:
    get:
      tags:
        - Payments
      summary: Fetch a payment
      description: >-
        Retrieves a payment by its ID.


        A **payment** represents a payment made by a clinic client (pet parent).
        Payments can be made via credit card, cash, check, client credit, or
        other external payment methods. Each payment records the amount, type,
        and current status of the transaction. Payments are never deleted.
      operationId: payments_get
      parameters:
        - description: The ID of the payment to fetch
          in: path
          name: payment_id
          required: true
          schema:
            description: The ID of the payment to fetch
            title: Payment Id
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalPaymentDetailSchema'
          description: OK
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalPaymentDetailSchema:
      description: >-
        A payment represents a payment made by a clinic client (pet parent).
        Payments can be made via credit card, cash, check, client credit, or
        other external payment methods. Each payment records the amount, type,
        and current status of the transaction.
      properties:
        amount:
          description: The payment amount in cents.
          title: Amount
          type: integer
        clinic_client_id:
          description: The ID of the clinic client who made this payment.
          title: Clinic Client Id
          type: integer
        clinic_id:
          description: The ID of the clinic associated with this payment.
          title: Clinic Id
          type: integer
        created:
          description: The datetime this object was created.
          format: date-time
          title: Created
          type: string
        currency:
          $ref: '#/components/schemas/Currency'
          description: The currency of this payment.
        id:
          description: The unique identifier for the payment.
          title: Id
          type: integer
        modified:
          description: >-
            The datetime this object was last modified; changes to related
            entities will not update this field.
          format: date-time
          title: Modified
          type: string
        payment_link_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: The ID of the payment link used for this payment, if any.
          title: Payment Link Id
        payment_type:
          $ref: '#/components/schemas/PaymentType'
          description: The method used to make this payment.
        recorded_at:
          description: When this payment was officially recorded.
          format: date-time
          title: Recorded At
          type: string
        status:
          $ref: '#/components/schemas/ClientPaymentStatus'
          description: The current status of this payment.
        void_reason:
          description: The reason this payment was voided, if applicable.
          title: Void Reason
          type: string
        voided_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: When this payment was voided, if applicable.
          title: Voided At
      required:
        - created
        - modified
        - id
        - clinic_client_id
        - clinic_id
        - amount
        - status
        - payment_type
        - recorded_at
        - currency
        - voided_at
        - void_reason
        - payment_link_id
      title: PaymentDetail
      type: object
    Currency:
      enum:
        - USD
        - CAD
      title: Currency
      type: string
    PaymentType:
      enum:
        - CARD_SAVED
        - CARD_READER
        - CLIENT_CREDIT
        - CASH
        - CHECK
        - CUSTOM
      title: PaymentType
      type: string
    ClientPaymentStatus:
      enum:
        - PENDING
        - COMPLETED
        - CANCELED
        - FAILED
        - VOIDED
      title: ClientPaymentStatus
      type: string
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````